Productivity and Utilities

Document Number Sequence Generator

Set a prefix, a start, a step and the padding to get a ready list of invoice, order or reference numbers.

Your numbers

Letters in front. You can write {YYYY} to place the year inside the prefix.

Four digits, or blank. It goes after the prefix unless you used {YYYY}.

The gap between numbers. 1 for consecutive.

Up to 2,000.

1 to 12.

Result

25 numbers

INV-2027-0001 to INV-2027-0025

First
INV-2027-0001
Last
INV-2027-0025
Characters in each number
13
Next number to use
INV-2027-0026

Numbers

No.Document number
1INV-2027-0001
2INV-2027-0002
3INV-2027-0003
4INV-2027-0004
5INV-2027-0005
6INV-2027-0006
7INV-2027-0007
8INV-2027-0008
9INV-2027-0009
10INV-2027-0010
11INV-2027-0011
12INV-2027-0012
13INV-2027-0013
14INV-2027-0014
15INV-2027-0015
16INV-2027-0016
17INV-2027-0017
18INV-2027-0018
19INV-2027-0019
20INV-2027-0020
21INV-2027-0021
22INV-2027-0022
23INV-2027-0023
24INV-2027-0024
25INV-2027-0025
How this was calculated
  1. Each number = prefix + separator + year (if used) + separator + the counter padded with zeros + suffix.
  2. The counter starts at 1 and goes up by 1 each time, padded with zeros to 4 digits.
  3. If the counter grows past the number of digits you set, it simply gets longer. Pick enough digits to avoid that.
  4. The CSV download lists every number, one per row.
  • Some places have rules about numbering invoices, such as keeping an unbroken order. Check the rules that apply to you. This page only builds the list.

Calculated using SumPanda.com · https://sumpanda.com/document-number-sequence-generator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the document number sequence generator

  1. Enter a prefix such as INV, an optional year and a separator.
  2. Set the first number, the step between numbers, how many you need and the number of digits for zero padding.
  3. Add a suffix if you want one.
  4. Read the first, last and next number, and download the full list as a CSV.

Formula

number k = first number + k x step

padded = the number written with leading zeros to the digits you set

document number = prefix + separator + year + separator + padded + suffix

If the prefix contains {YYYY}, the year is placed there instead of after the prefix. If a number has more digits than the padding, it simply runs longer.

Invoice numbers for 2027

With the prefix INV, the year 2027, a dash as separator, a first number of 1, 4 digits and a count of 25, the list runs from INV-2027-0001 to INV-2027-0025, and the next number to use is INV-2027-0026.

A purchase order list with prefix PO, first number 1001, 5 digits and suffix -A gives PO-01001-A, PO-01002-A and so on. With a step of 10, the lot numbers 10, 20, 30 become LOT0010, LOT0020, LOT0030. At 4 digits, 9999 is followed by 10000, which has five digits.

Choosing a format

A good number is short, readable and sortable. Zero padding makes numbers sort in the right order as text, and a year in the number makes it easy to see when a document was issued. Keep the format the same over time so that old and new numbers line up in a list.

Rules to check

Some places and customers have rules about how invoices are numbered, such as keeping an unbroken sequence. This page only builds the list. It does not track which numbers you have used, so keep a record. To make the invoices themselves, use the Invoice Generator. To make a list of dates, see the Date Sequence Generator, and for random identifiers, the UUID Generator.

Assumptions and limits

  • Numbers are whole and rise by a fixed step.
  • Up to 2,000 numbers are produced at once.
  • The year must be four digits, and no check digit is added.
  • The list is not saved on this page.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

How do I put the year inside the prefix?

Write {YYYY} in the prefix, for example {YYYY}/R with the year 2030 and the separator /. The year is placed where the token is.

What happens when numbers get longer than the padding?

They keep all their digits. A number of 10000 with 4 digits of padding is written as 10000, and the page tells you that some numbers have more digits.

Can I start a new series each year?

Yes. Change the year, set the first number back to 1 and generate a new list. The page does not remember earlier lists.

Is there a limit on length?

Padding can be 1 to 12 digits, a prefix up to 20 characters and a suffix up to 10. The list holds up to 2,000 numbers.