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 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 this tool 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 it works

  1. 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.

  2. 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.

  3. 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.

  4. 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.

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

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.

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 generator

Sources & further reading

Related

Published · General information, not legal, tax or financial advice.