Skip to content
BizMathKit

Invoice Number Generator

Build an invoice numbering format with a prefix, an optional date and a padded sequence, then copy or download your next invoice numbers.

Letters for your business or client, e.g. INV or ACME.
Zero-padded, 1–12.
Up to 500.
Sets the date part. Today by default.
Your next invoice number
—
Restart the sequence when the date part changes

Spreadsheet formula (Excel or Google Sheets)

Invoice dates in column A from row 2. Paste into B2 and fill down.

="INV"&"-"&TEXT(A2,"yyyy")&"-"&TEXT(1+(ROW()-2)*1,"0000")
Step by step

How to set up invoice numbers

  1. Pick a short prefix: INV for every invoice, or a client or project code.
  2. Choose a date part if you want the year or month in each number.
  3. Enter the next number you’ll use and how many digits to pad it to.
  4. Choose how many numbers you need (up to 500) and the invoice date that sets the date part.
  5. Copy the list, download it as a CSV, copy the spreadsheet formula, or paste the first number into the invoice generator.
The format

How the number is built

Each part is joined with the separator you choose. The sequence is padded with zeros so numbers line up and sort correctly in a spreadsheet: 0009 comes before 0010, where 9 would sort after 10.

Invoice number = Prefix · Date part · Padded sequence + Suffix
Prefix
letters for your business, a client or a project
Date part
the year or month the invoice is issued, or nothing
Padded sequence
your running count, filled with leading zeros
Worked example
INV-2026-0042
Prefix INV, the year, a hyphen and four digits. The 42nd invoice of 2026 is INV-2026-0042, and the next is INV-2026-0043.

Common invoice number formats

  • Simple sequence: 1001, 1002, 1003. Easy, and fine for a small business.
  • Year + sequence: 2026-0001. Restart each January and you can still tell every invoice apart.
  • Month + sequence: 2611-001. Useful if you bill in monthly batches.
  • Client + sequence: ACME-0001. Shows each client’s billing history at a glance.

Rules that keep numbers clean

Never reuse a number, even for a cancelled invoice. Keep the format short enough to read out on a phone call, and avoid characters like spaces, slashes or the letter O next to zeros that confuse bank references. Pick enough digits for a few years of invoices: four digits gives you 9,999 before the number grows a digit, and this tool keeps counting rather than cutting a number short.

Date parts

Restarting the count each year

If your format includes the year or month, you can start the sequence again at 1 when the period changes, because the date part keeps each number unique: INV-2026-0001 and INV-2027-0001 never clash. Without a date part, keep one unbroken sequence for the life of the business. Either way, the number should only go up. Your accountant, and in VAT countries the tax office, will expect to see every number in order with no unexplained gaps.

FAQ

Common questions

What is an invoice number?
It’s a unique reference you put on every invoice so you and your customer can point to exactly one bill. It ties a payment to the right invoice, stops the same bill being paid twice and makes your books easy to check.
Is there a legal format for invoice numbers in the US?
No. US law doesn’t set a format and doesn’t require numbers at all, but missing or repeated numbers make your records harder to trust if you’re ever audited. Most countries with VAT or GST do require a unique, sequential number on tax invoices, so if you sell abroad, check the local rules.
What number should my first invoice be?
Any number you like. Many businesses start at 0001 or 1001 so the very first invoice doesn’t look like a first. What matters is that every number after it is used once and in order.
Should I put the date in my invoice numbers?
It helps if you look invoices up by period. A year part such as INV-2026-0001 tells you at a glance when a bill was issued. If you restart the sequence each year, the year keeps every number unique.
Can I use a separate sequence for each client?
Yes. Put a short client code in the prefix (ACME-0001, ACME-0002) and keep one sequence per client. Make sure two clients never share a code, or numbers will clash.
How do I create an invoice number?
Pick a prefix (INV or a client code), decide whether to add the year or month, choose how many digits to pad the count to, and start at any number you like. Then give each new invoice the next number in the sequence and never reuse one. The generator above builds the format and lists the next numbers, and the spreadsheet formula carries it on in Excel or Google Sheets.
Can I use random invoice numbers?
You can, but a sequence is easier to work with. With sequential numbers a missing invoice shows up as a gap, records sort in the order they were issued, and customers can quote a number that tells you roughly when the bill went out. Random numbers lose all of that, and they can repeat unless you check every new one against the old ones. Countries with VAT usually require a sequence; see the Avalara guide in the sources.
What if I void or skip an invoice?
Don’t reuse the number. Keep the voided invoice marked “void” in your records so the sequence has no unexplained gap.

Related tools

Built and checked by BizMathKit
Checked by hand against Avalara on sequential invoice numbering for VAT and IONOS on invoice numbering and audits. How we check formulas. Last updated . Runs in your browser — nothing you enter is sent anywhere.