Skip to content
Number Buffet

Invoice numbers

Build invoice references from a pattern like INV-{YYYY}-{SEQ:5} — gapless, sequential and reproducible from the link.

4 min read

Settings

Quick presets

Fields: {SEQ:5} zero-padded counter, {YYYY} and {YY} year, {MM} month, {DD} day, {Q} quarter, {N:4} random digits, {A:3} random letters, {X:6} random letters and digits. Write {{ and }} for literal braces.

Any whole number up to 30 digits. Arithmetic here is arbitrary-precision, so continuing a series from 90071992547409910001 stays exact.

Leave at 1 for a gapless series. A larger step deliberately leaves gaps, which is the opposite of what most tax rules want.

Used by {YYYY} and {YY}. Taken as a parameter, never from the system clock, so the output never changes under you.

Used by {MM} and, divided into thirds, by {Q}.

Used by {DD}. Checked against the month and the Gregorian leap rule, so 29 February only works in a leap year.

Only matters if the pattern uses {N}, {A} or {X}. The same seed always gives the same random fields.

Fine-tune the look

Pick a preset next to the image first — these controls adjust it.

Frame

A border drawn inside the edge of the image.

Advanced

Results

50 values

INV-2026-00001, INV-2026-00002, INV-2026-00003, INV-2026-00004, INV-2026-00005, INV-2026-00006, INV-2026-00007, INV-2026-00008, INV-2026-00009, INV-2026-00010, INV-2026-00011, INV-2026-00012, INV-2026-00013, INV-2026-00014, INV-2026-00015, INV-2026-00016, INV-2026-00017, INV-2026-00018, INV-2026-00019, INV-2026-00020, INV-2026-00021, INV-2026-00022, INV-2026-00023, INV-2026-00024, INV-2026-00025, INV-2026-00026, INV-2026-00027, INV-2026-00028, INV-2026-00029, INV-2026-00030, INV-2026-00031, INV-2026-00032, INV-2026-00033, INV-2026-00034, INV-2026-00035, INV-2026-00036, INV-2026-00037, INV-2026-00038, INV-2026-00039, INV-2026-00040, INV-2026-00041, INV-2026-00042, INV-2026-00043, INV-2026-00044, INV-2026-00045, INV-2026-00046, INV-2026-00047, INV-2026-00048, INV-2026-00049, INV-2026-00050

50 references from "INV-{YYYY}-{SEQ:5}", counting up by one from 1. These are test fixtures: well-formed references that belong to no ledger and carry no tax significance.


Make an image

Turn on JavaScript to style and download these numbers as an image. The values themselves are listed above.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

About invoice numbers

The habit of giving every piece of paper a number belongs to double-entry bookkeeping, and the oldest surviving records of that practice are Italian. A ledger kept for Giovannino Farolfi & Company, a firm of Florentine merchants headquartered in Nîmes whose most important customer was the Archbishop of Arles, covers 1299–1300 and is the earliest surviving set of records in full double entry; the name of the merchant who kept it, Amatino Manucci, survives with it.

Luca Pacioli, a Franciscan friar and collaborator of Leonardo da Vinci, put the method into print. His Summa de arithmetica, geometria, proportioni et proportionalità (Venice, 1494) devotes a treatise — Particularis de computis et scripturis — to what he called the Venetian method: a memorandum, a journal and a ledger, with every entry cross-referenced between them. He is often called the father of accounting, and the careful version of the claim is that he was the first to publish a detailed description, not the first to write one: Benedetto Cotrugli, a Ragusan merchant and ambassador to Naples, had described double entry in a treatise composed in 1458 that went unprinted until 1573, by which time its printer had cut and garbled the relevant passages. What Pacioli insisted on was that entries be dated, ordered and traceable, because an account nobody can trace is an account nobody can audit. Werner Sombart's later claim that double-entry bookkeeping made modern capitalism possible has been argued over by economic historians ever since and is not a settled result.

Numbering became law much later. Article 226 of Council Directive 2006/112/EC, the EU VAT Directive, lists the details a VAT invoice must carry, and point (2) asks for "a sequential number, based on one or more series, which uniquely identifies the invoice". Member states wrote the rule into their own codes; Germany's Umsatzsteuergesetz, in §14(4), calls it a fortlaufende Nummer — a running number assigned once and only once. The purpose is completeness rather than tidiness. If a series has no gaps, a missing invoice is visible to anyone who counts, and a business cannot quietly drop a sale from its records. Whether a gap by itself invalidates a series is a question of national case law, not of the Directive, and several tax authorities now certify billing software instead of reconstructing sequences after the fact.

Key properties

  • Article 226(2) of Council Directive 2006/112/EC requires a VAT invoice to carry "a sequential number, based on one or more series, which uniquely identifies the invoice".
  • The phrase "based on one or more series" is what makes per-year or per-branch prefixes lawful: INV-2026-00001 and CN-2026-00001 are two series, each sequential within itself.
  • Nothing in the Directive fixes a format — the prefix, the separators, the field widths and the starting value are all the issuer’s choice.
  • Ledgers kept in full double entry survive from 1299–1300, nearly two centuries before Luca Pacioli published the first detailed printed description of the method in 1494.
  • The pattern fields are {SEQ:n} for the padded counter, {YYYY} and {YY} for the year, {MM}, {DD} and {Q} for month, day and quarter, {N:n} for random digits, {A:n} for random letters and {X:n} for random letters and digits.
  • The counter is held as an arbitrary-precision integer, so a series continued from 90071992547409910001 increments exactly; the same value in a double-precision number would round to the nearest representable integer.
  • Year, month and day are inputs rather than clock readings, so the same link renders the same references indefinitely.
  • A gapless series is an audit control, not a privacy measure: two invoices from the same series disclose how many were issued between them.

Where they turn up

  • VAT invoices across the European Union, and in the United Kingdom under rules inherited from the same Directive, must carry a uniquely identifying sequential number.
  • Digital tax audits routinely run a gap analysis over invoice series — a run of numbers with holes in it is the cheapest possible red flag, which is the whole reason the sequence is required.
  • Accounting packages auto-increment the next number on a new invoice and keep credit notes in a separate series, so that a refund never consumes a sales number.
  • European e-invoicing formats such as Peppol BIS Billing 3.0 and Italy’s Sistema di Interscambio treat the invoice number as a mandatory field in the document schema.
  • Forensic accountants apply Benford’s law to invoice amounts, not to invoice numbers: a sequential series is uniform by construction and would fail the test trivially without anything being wrong.
  • QA and demo environments need references that look plausible in a PDF or a list view without pointing at a real transaction, which is what this page produces.

How to use this generator

The generated values appear at the top, with a copy button beside them. To turn them into an image, pick a look from the style presets under Make an image, choose an export size, and download as PNG, JPEG or WebP. Everything is rendered in your browser, so nothing you generate is sent to a server.

The address bar updates as you work, so the link always reproduces exactly what you see — handy for sharing a specific sequence or saving a configuration for later. Use Copy to take the values as plain text, or Export data for CSV, JSON, NDJSON, SQL or XML.

Sources

Historical summaries on this page draw on the openly licensed references listed above. Spotted an error? Tell us and we will fix it.