Skip to main content

Invoice number generator

Choose a prefix, a separator and how many digits to pad to, and see the next invoice numbers in that format before you commit to it on a real invoice.

Runs in your browser. Nothing you type is sent or saved.

Your numbers

10 numbers, INV-0001 to INV-0010

  1. INV-0001
  2. INV-0002
  3. INV-0003
  4. INV-0004
  5. INV-0005
  6. INV-0006
  7. INV-0007
  8. INV-0008
  9. INV-0009
  10. INV-0010

General information only: this tool does arithmetic on the numbers you enter and is not tax, accounting or legal advice. Rates and rules differ by place and situation, so check what applies to you or ask a qualified professional.

How it works

The parts, in order

Each number is built as prefix, year, month, then the running count, joined by the separator you pick. Parts you leave out disappear along with their separator, and a prefix that already ends in a hyphen, slash, dot or underscore is not given a second one. With the prefix “INV” and a hyphen you get INV-0001, INV-0002, INV-0003.

Padding keeps numbers the same length

Padding adds leading zeros up to the number of digits you choose, so the numbers line up and sort correctly as text. When the count outgrows the padding, the number keeps its extra digits rather than being cut short: with 2 digits, the run goes 98, 99, 100. The generator warns you when that happens, because a list sorted as text will then put 100 before 98.

A year or month in the number does not restart the count

The year and month come from the date you enter. They label the number; they do not reset it. The generator keeps counting from your starting number, so whether the count goes back to 1 each January is a decision you make by changing the starting number yourself. If you do restart, the year has to stay attached to the number everywhere, including in payment references, or two invoices will share a name.

Characters in the prefix

The prefix can hold up to 20 letters, digits, hyphens, underscores, slashes and dots. Anything other than letters, digits and hyphens earns a warning: slashes, dots and underscores are the characters most likely to be stripped or rejected when a client types the number into a bank payment reference or another system.

Invoice numbering formats compared

Any of these works if each number is used once and the numbers run in order. For gaps, cancelled invoices and credit notes, see the full guide to numbering invoices.

Common invoice numbering formats with examples and trade-offs
FormatExampleGood forWatch out for
SequentialINV-0001, INV-0002, INV-0003Almost everyone, especially with one series for the whole business.Nothing in the number tells you the year.
Year-prefixed2026-0001, 2026-0002, 2026-0003Sorting records by year at tax time.Decide once whether the count restarts each January, and never switch halfway.
Client-codedACME-001, ACME-002, ACME-003A handful of clients who each get many invoices.Each client code starts its own series, so the code carries the uniqueness. Renaming a code breaks the run.
Per projectACME-WEB-01, ACME-WEB-02, ACME-WEB-03Long projects billed in stages.Numbers get long and hard to read aloud or fit in a payment reference.

Examples

A plain sequence, the safe default

Prefix “INV”, hyphen, 4 digits, starting at 1: INV-0001, INV-0002, INV-0003. Four digits covers 9,999 invoices before the length changes, which is years of billing for most small businesses.

Year and month, with a count that carries on

Moving to dated numbers at invoice 87, with the year and month from 2026-10 and 3 digits: INV-2026-10-087, INV-2026-10-088, INV-2026-10-089. The count continues from 87 rather than restarting, so every number stays unique even if the date part is dropped somewhere.

Padding that runs out

No prefix and 2 digits, starting at 98: 98, 99, 100. Nothing breaks, but the third number is longer than the first two, and the generator shows a warning so you can choose more padding before you start.

Rules and good practice

Unique, and for VAT invoices sequential (UK example)
Rule

Tax authorities in many places say what an invoice number must do. In the UK, GOV.UK's list of what an invoice must include has “a unique identification number”. For VAT invoices, HMRC's VAT Notice 700 asks for “a sequential number based on one or more series which uniquely identifies the document”. Several series are allowed, which is why a client-coded or year-prefixed format can still comply, as long as each series runs in order. Other countries publish their own rules, so check yours.

Never reuse a number

A cancelled invoice keeps its number, and the next invoice gets the next one. Reusing a number means two documents answer to one name, which is harder to untangle than a gap. If you leave a gap, keep a short note of why, so the run of numbers still accounts for every invoice.

General information, not tax or legal advice. Rules vary by place and change; check the current official guidance.

How Charming numbers invoices

Charming keeps the count for you. A draft has no number; the number is assigned when you issue the invoice, one higher than the last, so deleting a draft never leaves a gap. Each business sets its own prefix and padding, and the default format is INV-0001.

The catch: there is no automatic year or month token, and no separate series per client. To put the year in your numbers, make it part of the prefix (for example INV-2026-) and change the prefix yourself each January. The count carries on from where it was rather than restarting at 1. A new prefix applies from the next invoice you issue, drafts started before the change included. Every invoice already issued keeps the number it was issued with, in Charming's lists, exports and its PDF.

Questions

What number should my first invoice be?
Any number you like. Starting at 1 is the plain choice, and starting higher, such as 1001, is not wrong either; it just does not hide how new you are from anyone who cares. What matters is that every later invoice gets the next number and that no number is ever used twice.
Should invoice numbers restart every year?
They can, if the year is part of every number, so 2026-001 and 2027-001 are different invoices. A count that never restarts is simpler and avoids collisions when the year gets dropped from a payment reference. Pick one approach and keep it; switching partway through a year is what causes duplicates.
Can two clients have invoices with the same number?
Not within one business. An invoice number identifies one invoice across all of your clients, not one per client. The exception is a client-coded format, where ACME-001 and NORTH-001 are different numbers because the code is part of them. Plain 001 for two clients is a duplicate.
Is a random invoice number a good idea?
Usually not. A random number is only unique if you check it against every earlier one, and it loses the order that shows each invoice is accounted for. Rules such as HMRC's for VAT invoices ask for sequential numbers, so this generator makes sequences, not random strings.
Does the generator remember where I left off?
No. Nothing you type is saved, sent or tracked, and the list is gone when you close or reload the page. Keep a note of the last number you used, or let your invoicing software keep the count so it cannot slip.

Let the next number assign itself

Set your prefix and padding once, and every invoice you issue on the free plan gets the next number in the sequence.