Invoice number generator - build numbers from a pattern

Describe your numbering once, for example INV-{YYYY}-{0001}, and this invoice number generator returns the next number or a batch of up to 100. Paste your last invoice number to continue the sequence.

  • Free
  • No sign-up
  • Runs in your browser
Tokens: {YYYY} year, {YY} two-digit year, {MM} month, {DD} day, and a counter such as {0001} (the number of digits sets the padding).
Paste it and the tool continues the sequence if it matches the pattern and the date above.

Enter a pattern with a counter, a start number and how many numbers you need.

Runs in your browser — nothing you enter is sent to our servers.

How to use Invoice Number Generator

  1. Type a pattern. The default is INV-{YYYY}-{0001}. Use {YYYY}, {YY}, {MM} and {DD} for the date and a counter such as {0001}.
  2. Set the start number, how many numbers you need (1 to 100) and the date used for the date tokens. It defaults to today.
  3. Or paste your last invoice number into "Last invoice number" so the tool finds the next one, if it matches the pattern.
  4. Read the next-number preview and the batch list, then use "Copy all" or download a .txt file.

Features

  • Tokens for a 4-digit year, a 2-digit year, month and day
  • A counter written as zeros plus 1, such as {0001}, where the zeros set the padding width
  • Custom start number and a batch of 1 to 100 numbers
  • Choose the date used for the date tokens
  • Optional "last invoice number" field that works out the next number
  • Copy all numbers or download them as a .txt file
  • Runs in your browser, with no daily limit

Examples

InputResult
Pattern INV-{YYYY}-{0001}, start 42, date 2026-10-01, count 3INV-2026-0042, INV-2026-0043, INV-2026-0044 — {0001} has four digits, so 42 is padded to 0042.
Pattern {YY}{MM}-{000}, start 7, date 2026-10-01, count 22610-007, 2610-008 — {YY} is 26, {MM} is 10 and {000} pads to three digits.
Pattern INV-{YYYY}-{0001}, last number INV-2026-0099Next number: INV-2026-0100 — The counter part is read from your last number and increased by one.

Limitations

  • The pattern must contain a counter such as {0001}.
  • It does not remember the numbers you already used. Keep your own record so you never reuse one.
  • It does not check your country's rules. Some require unbroken sequential numbering or specific content, so ask your tax authority or accountant.
  • The "last invoice number" shortcut only works if that number matches the pattern you typed.
  • Not legal or tax advice.

Learn more

An invoice number identifies one invoice so that you, your client and your accountant can find it again. A good scheme is unique, easy to read and increases over time. Many businesses combine a short prefix, the year and a counter, such as INV-2026-0042, so the year is visible and the counter restarts or continues in a predictable way.

Padding the counter with zeros keeps numbers the same length and sorted correctly in spreadsheets and folders. Without padding, 10 sorts before 2 in a text sort. Choose a width that will last, for example four digits if you expect fewer than 10,000 invoices a year.

Some countries expect sequential numbering without gaps, and some allow several series. This tool only builds numbers from a pattern, so keep your own register and follow the rules that apply to your business.

Frequently asked questions

How should I number my invoices?

Use a consistent pattern with a unique, increasing counter, for example a prefix, the year and a running number. Check local rules for any legal requirements.

What does {0001} mean in the pattern?

It is the counter. The digits show the minimum width, so {0001} gives 0001, 0002 and so on, while {001} gives 001, 002.

Can it continue from my last invoice number?

Yes. Paste the last number into the "Last invoice number" field and, if it matches the pattern, the tool shows the next one.

Does the tool store my invoice numbers?

No. It only calculates numbers from your pattern in the browser. It does not keep a list of what you issued.

Last reviewed: October 1, 2026