Invoice Number Generator

Generate sequential invoice numbers with a custom prefix, date token, numeric counter, and suffix. Choose your separator, padding, and step size, then copy individual numbers or download the whole batch as TXT or CSV. Everything runs in your browser — no uploads, no signup.

Build your format

A short code that identifies your company or the document type.

Preview INV-202410-0001

Generated numbers

What is an invoice number generator?

An invoice number is the unique identifier printed on every invoice you send. It is how you, your customer, and — if it comes to it — a tax auditor refer to a specific document years later. An invoice number generator produces these identifiers in a consistent pattern so you never have to think about them one at a time.

Most accounting systems expect you to supply your own invoice numbering sequence. Small businesses, freelancers, and consultants often do this in a spreadsheet, which is fine until two invoices accidentally get the same number. A pattern-based generator removes that risk: you pick the format once, generate a batch, and use the numbers one after another.

This tool gives you full control over the format. You can put a date token at the start, put a company prefix before that, add a suffix at the end, and pad the counter to any width. Every generated number is unique within the batch, and the counter advances by whatever step you choose.

How to use the generator

  1. Enter a prefix (optional). Most businesses use a short code like "INV", "INV-", or their company initials. This makes it obvious what the number refers to when someone reads it out of context.
  2. Choose a date token (optional). Adding the year and month makes it easy to spot how old an invoice is. YYYYMM is the most common choice for small businesses; YYYYMMDD is useful if you generate many invoices per day.
  3. Pick a separator. A hyphen is the most readable. Some accounting systems disallow certain characters, so check your software's rules if you're importing numbers into a system.
  4. Set the starting number. If you're picking up where you left off, use the Continue button — it will pre-fill the field with the number immediately after your last generated one.
  5. Set the padding. Padding means the counter is left-padded with zeros to a fixed width. Four digits gives you 0001 through 9999; five digits gives 00001 through 99999. Pick a width big enough that you won't outgrow it in a year.
  6. Pick a step size. A step of 1 gives consecutive numbers. A step of 10 or 100 leaves gaps that some businesses use to separate invoice series, or to leave room for manual insertions later.
  7. Set the quantity. Up to 200 numbers per batch. Each generated number is saved locally so you can come back and continue from the right place.
  8. Generate and copy. Click Generate, then copy individual numbers or the whole batch. Download as TXT for simple lists, or CSV for Excel and Google Sheets.

Invoice numbering best practices

Keep it sequential

Most tax authorities recommend gapless sequential numbering. If a number is missing, it looks like an invoice was lost or deleted — which invites questions you'd rather not answer.

Anchor it to time

Including the year (and often the month) in the number makes it easy to sort invoices chronologically and to see at a glance which tax period a document belongs to.

Never reuse a number

Once an invoice number has been assigned, it belongs to that invoice forever. If you cancel an invoice, keep the number and issue a credit note — do not reissue the original number to a different customer.

Be consistent

Pick a format and stick with it. Mixed formats across a single tax year cause accounting headaches, and some jurisdictions require a single continuous series per business entity.

Back up your log

Keep a spreadsheet or export of every invoice number you've issued, alongside the customer name, invoice date, and total. This is what auditors ask for, and it's much easier to maintain if you never had to reconstruct it.

Prefix for clarity

If you issue multiple document types — invoices, quotes, credit notes — give each a different prefix. INV, QTE, and CRN tell everyone what the document is before they read a single line of it.

Date token reference

Each token is replaced at generation time with the current date. The generated batch uses the same date for every number, so all invoices created today share the same YYYYMM segment.

TokenExample (18 Oct 2024)Best for
YYYY2024Annual invoice series
YYYYMM202410Monthly invoice series — the most common choice
YYYY-MM2024-10Readable version of YYYYMM
YYYYMMDD20241018High-volume invoicing where daily batches are common
YYYY-MM-DD2024-10-18When the date needs to be visible in the number itself
YY24Compact format for short invoice numbers
YYMM2410Compact monthly series
MMYY1024Regional format (used in some US workflows)
DDMMYY181024Regional format (common in the UK and India)

A note on legal requirements

Invoice numbering requirements vary by country. The EU, UK, India, Australia, and most US states all have their own rules about whether invoices must be numbered sequentially, whether gaps are allowed, and what other identifiers (tax ID, VAT number, business registration) must appear on the document. Check your local regulations before finalizing a format.

This tool generates the number itself — it does not check that your format is compliant with your jurisdiction. If you are unsure, the safest approach is a simple, gapless, sequential series with a consistent prefix, no gaps, and a separate log of every number you have issued.

Frequently asked questions

It is a small tool that produces sequential invoice numbers using a pattern you define. You set a prefix, a date token, a numeric counter, and a separator, and the generator outputs a batch of ready-to-use numbers that you can copy into your invoices or accounting software.
Not legally in most jurisdictions, but sequential numbering makes auditing simpler, prevents gaps that draw tax authority scrutiny, and makes it obvious when an invoice is missing. Many tax authorities strongly recommend a gapless sequence.
Yes. Choose a date format from the dropdown and the generator will embed the current year, month, or full date in each number. The date tokens cover YYYY, YYYYMM, YYYYMMDD, YYMM, and a few regional variants.
Yes, if you keep the same browser and do not clear local storage. After each generation the tool saves the last number used, and a Continue button appears so you can pick up right after it.
Yes. Use the CSV download button to export a file that opens directly in Excel or Google Sheets. Each number is on its own row with an index column so you can filter or sort.
Yes. Once the page has loaded, generation runs entirely in your browser. No internet connection is needed after the initial page load, and nothing you generate is sent anywhere.