Invoice Number Generator
An invoice number is the unique reference that identifies one invoice — the code your customer quotes when they pay, and the one you use to find the document later. Most businesses use a sequential series such as INV-0042.
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 useful constraint is that the series stays easy to sort and reconcile.
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 the invoice number generator does
An invoice number is an identifier first. A sequential series is easier to sort, search and reconcile than unrelated random identifiers. Unique is not the same as orderly: a random six-digit number can identify a document while still making the wider run hard to review.
The format is worth deciding carefully because changing it later creates extra reconciliation work. 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 to number invoices
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 makes the run harder 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 consistent on its own. Slashes, colons and quotes are legal on paper and break PDF filenames and CSV imports.
Invoice number examples
Each example is the 42nd invoice in its series, dated 15 July 2026, for a client called Acme and a project called Brand. Every format here can be built with the tool above — paste it into the format field to preview the run.
| Format | Example | When it fits |
|---|---|---|
| {SEQ:4} | 0042 | The simplest series. Fine for a small business running one sequence, though the number says nothing about what kind of document it is. |
| INV-{SEQ:4} | INV-0042 | A prefix marks the document type, so invoice numbers never collide with quotes or receipts kept in their own series. |
| INV-{YYYY}-{SEQ:4} | INV-2026-0042 | Lets you restart the counter each January, because the year keeps this year’s 0001 apart from last year’s. |
| INV-{YYYY}{MM}-{SEQ:3} | INV-202607-042 | Groups numbers by month for filing. If the counter resets monthly, the month is the only thing keeping numbers unique. |
| {CLIENT}-{YYYY}-{SEQ:3} | ACME-2026-042 | Easy to scan by customer, but it creates one series per client, and each needs its own consistent counter. |
| {PROJECT}-{SEQ:3} | BRAND-042 | Suits agencies that bill per engagement. The same trade-off applies: every project becomes a separate series. |
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 maintain.
- Avoid reusing a number for a different document; duplicates make payment matching and record review harder.
- Record the last number used somewhere other than the invoices themselves. Reconstructing a counter from a folder of PDFs is how numbering mistakes get introduced in the first place.
Common mistakes
Choosing random numbers because they look tidier
Random identifiers are unique and unordered, so they are awkward to review as a run. They are fine for a one-off draft, but a business system is easier to manage when the main counter is sequential.
Leaving a hole when an invoice is cancelled
A cancelled invoice is easier to trace when its number is kept with a void or credit record. Recycling the number for something else makes later matching harder.
Starting a series per client without meaning to
A client prefix creates a separate series for every customer. That may be useful, but each series now needs its own consistent counter. 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
What is an invoice number?
It is the unique reference assigned to one invoice. It lets you and your customer refer to the same document without ambiguity — in a payment reference, on a remittance, or in either side’s accounting records. It is usually sequential and often carries a short prefix such as INV.
How many digits should an invoice number have?
There is no universal length. What matters is padding the counter to a fixed width — three or four digits is common — so numbers sort correctly in folders and spreadsheets. Four digits covers 9,999 invoices in one series; add the year if you plan to restart the counter annually.
Where does the invoice number go on an invoice?
Near the top, usually beside the issue date in the invoice details, so it is one of the first things a customer’s accounts team sees. Ask customers to quote it as their payment reference, and include it in the PDF file name so the document is easy to find later.
Is an invoice number the same as a PO number or a receipt number?
No. A purchase order number is issued by the buyer to authorise a purchase; you quote it on your invoice so their system can match the two. A receipt number belongs to a separate series that records payments received. Keep each in its own sequence and reference the others where they apply.
Should invoice numbers be sequential?
A sequential series is usually easier to track, sort and reconcile. Legal requirements differ by country, so check the rule where you invoice before treating any format as compliant.
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?
Record what happened so the sequence is understandable later. The practical problem is an unexplained gap, not the fact that a mistake happened.
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 needs its own consistent counter.
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.
How do I create an invoice number?
Choose a short prefix, optionally add the year, and finish with a counter padded with zeros, such as INV-2026-0001. Add one for every invoice you issue and never reuse a number. The generator above previews the next numbers your format will produce.
Can an invoice number be random?
It can, but a sequential number is easier to live with. Random references are hard to sort, make a missing invoice impossible to spot, and some tax authorities expect a continuous sequence. If you would rather not reveal how many invoices you send, start the sequence at a higher number instead.
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
Other tools
Templates
Published · Last reviewed · General information, not legal, tax or financial advice.