Pattern codes
- {YYYY}
- The four-digit year, from today's date: 2026.
- {YY}
- The two-digit year: 26.
- {MM}
- The month, two digits: 11 for November.
- {DD}
- The day of the month, two digits.
- {NNNN}
- The counter. Each N is one digit of padding, so {NNN} gives 007 and {NNNNN} gives 00007.
Generating a run of numbers
Type a pattern or pick one
Four are offered:
INV-{YYYY}-{NNNN},{YY}{MM}-{NNN},ACME{NNNNN}andINV/{YYYY}/{MM}/{NNN}. Any other text you type is kept as it is.Set where to start
The next counter value you need, for example the number after your last invoice.
Set how many
From 1 up to 1,000 numbers in one go.
Copy or download
Copy puts the list on your clipboard; Download saves
invoice-numbers.txt, one number per line.
Example: continuing an existing sequence
A printing firm (fictional) moving from a spreadsheet to accounting software needs to carry on from invoice 117 without gaps. With the default pattern and a start of 118, the next four numbers are below. The same run with a shorter year-and-month pattern starting at 7 gives month-based numbers instead.
Pattern: INV-{YYYY}-{NNNN}. Start at: 118. How many: 4
Pattern: {YY}{MM}-{NNN}. Start at: 7. How many: 3
(generated in November 2026)INV-2026-0118 INV-2026-0119 INV-2026-0120 INV-2026-0121 2611-007 2611-008 2611-009
A numbering scheme that will not cause trouble
- Every invoice number is unique and never reused, even for a cancelled invoice; cancel it with a credit note instead.
- The sequence runs in order, so a missing number has an explanation.
- Credit notes and pro formas have their own prefix, so they are not mistaken for invoices.
- The counter is wide enough for a busy year: four digits allow 9,999 invoices before the pattern looks odd.
- If the year is in the number, decide whether the counter restarts each year, and stick to it.
Questions people ask
What should an invoice number look like?
Anything unique that you use consistently. HMRC requires VAT invoices to carry a unique identifying number that follows on from the last, but does not prescribe a format. A short prefix, the year and a counter, such as INV-2026-0118, is easy to read, sorts correctly and shows at a glance which year an invoice belongs to.
Do invoice numbers have to be sequential?
For VAT invoices, HMRC expects a unique number in a sequence, and gaps should be explainable. For businesses not registered for VAT the rules are less specific, but sequential numbering is still good practice and makes your records easier for an accountant or HMRC to follow.
Can I restart the counter each year?
Yes, if the year is part of the number, so INV-2026-0001 and INV-2027-0001 are still unique. Many small businesses do this. Without the year in the pattern, restarting would create duplicates, so keep counting. The invoice generator on this site restarts automatically when the year in the pattern changes.
Which date does the pattern use?
Today's date on your computer, when the list is generated. If you are producing numbers for invoices dated in another month or year, type that part of the pattern by hand, for example INV-2027-{NNNN}, so the numbers match the invoice dates.
Where your data goes
Numbers are generated from your pattern by the page's own code. The pattern and list are not stored or sent anywhere.
Checked against the tool on