Invoice Number Generator
Pick a format, see the next five numbers it produces, and check it before it becomes the system you are stuck with. Building the format is the easy part; the constraint that shapes it is that the series has to run in order with nothing missing.
Rules differ by country. This tool performs the calculation you ask for. What you are entitled to charge, and how it must be presented, is set by your contract and your local law — check both before relying on a figure here.
What this tool does
An invoice number is an identifier and an audit control at the same time. Most tax regimes require the numbers within a series to run sequentially with no gaps, precisely so that a missing document is visible. Unique is not the same as sequential — a random six-digit number is unique on every invoice and tells an inspector nothing about whether one has been removed.
The format is worth deciding carefully because changing it later leaves a visible seam in the records. This one assembles a format from tokens, shows the run it actually produces, and names the choices that cause trouble: no counter at all, a per-client prefix that quietly creates several parallel series, or punctuation that breaks a filename on the way into an accounting system.
How it works
Choose the tokens
{SEQ:4} is the counter, padded to four digits. {YYYY}, {MM} and {DD} come from the invoice date, {CLIENT} and {PROJECT} are reduced to letters and digits. Anything unrecognised is printed literally, so a mistyped token appears in the preview instead of silently vanishing.
Set where the counter starts
A series does not have to begin at 1, and beginning at 1 tells every customer they are your first. Starting at some modest round number is ordinary; jumping the counter later to imply volume is what creates the gaps you then have to explain.
Read the preview, not the format string
Five consecutive numbers show whether the padding, the separators and the date part behave the way you assumed. Nearly every format mistake is obvious in the run and invisible in the pattern that produced it.
Take the warnings seriously
No counter means the numbers never increment. A client or project prefix means one series per client, each of which has to stay sequential on its own. Slashes, colons and quotes are legal on paper and break PDF filenames and CSV imports.
Worked example
A studio moves off the generator’s random default to a year-prefixed sequential format, picking up from 42.
Inputs
- Format
- INV-{YYYY}-{SEQ:4}
- Starting number
- 42
- Invoice date
- 15 July 2026
Result
- First
- INV-2026-0042
- Next
- INV-2026-0043
- Then
- INV-2026-0044
- Warnings
- None
Why it matters: The padding is what makes this hold up. At four digits the series stays sortable to 9,999 documents, so INV-2026-0042 and INV-2026-1042 line up correctly in a folder listing and a spreadsheet. An unpadded counter sorts 10 before 9 the moment you pass single digits, and every system downstream inherits that ordering.
Best practices
- Settle the format before the first invoice and keep it. One documented change mid-year is defensible; three look like the records were rebuilt.
- Pad the counter to at least three digits so numbers sort correctly in folders, spreadsheets and accounting imports.
- Keep a single series unless there is a real reason for more. Every extra series is another counter somebody has to keep gap-free.
- Never reuse a number, even for a corrected document. Cancel with a credit note carrying its own number and a reference back to the original.
- Record the last number used somewhere other than the invoices themselves. Reconstructing a counter from a folder of PDFs is how gaps get introduced in the first place.
Common mistakes
Choosing random numbers because they look tidier
Random identifiers are unique and unordered, so nothing about them reveals whether a document is missing — which is the exact property an audit tests. It is why a random default is perfectly fine on a one-off draft and wrong as a system a business adopts.
Leaving a hole when an invoice is cancelled
A cancelled invoice keeps its number and is voided or credited; the number is not recycled and the next document does not take it. An unexplained gap has to be accounted for, and "we deleted that one" is the least useful available answer.
Starting a series per client without meaning to
A client prefix creates a separate series for every customer. That is permitted, but each of those now has to be sequential and gap-free by itself. Most people who pick it are thinking about tidy filing rather than about maintaining six independent counters.
Restarting the counter each year without a year in the number
Resetting to 1 every January is normal and expected — provided the year appears somewhere. Without it, this year’s 0001 collides with last year’s, and two entirely different documents share an identity in both parties’ records.
Frequently asked questions
Do invoice numbers have to be sequential?
In most tax regimes the numbers within a series must run in order with no gaps, so that a missing document shows up. Several regimes explicitly allow multiple parallel series provided each one is sequential in itself. The wording differs by country — check the rule where you invoice.
Can I start at any number?
Generally yes: there is no requirement to begin at 1, and plenty of businesses start at 100 or 1001. What matters is that the counter moves forward one step at a time from wherever it starts, and that it never goes backwards.
What if I skip a number by accident?
Document it rather than conceal it. A short note recording why the number was never used is normally accepted; inventing a document to fill the hole is not, and turns a clerical slip into something much harder to explain. The problem is an unexplained gap, not a gap.
Can I put the client name in the number?
You can, and it makes filing easier to scan. Understand the trade first: a client token splits your numbering into one series per customer, and each of those has to stay sequential on its own — six clients means six counters, not one.
Should the date be part of the number?
A year earns its place, because it lets you restart the counter annually without collisions. A full date makes numbers long without adding much, since the invoice already carries its date as a field of its own.
Can two invoices ever share a number?
No. The number is the document’s identity for you, for the customer’s accounts payable, and for anyone auditing either side. Duplicates make two documents impossible to distinguish in every system that touches them, including purchase-order matching and payment allocation.
Turn the answer into an invoice
The result above transfers straight into the invoice generator — dates, amounts and terms already filled in. Free, no account needed.
Open the invoice generatorSources & further reading
- Invoicing and taking payment from customers — GOV.UK
- VAT record keeping — invoices — GOV.UK
Related
Published · General information, not legal, tax or financial advice.