Works on this device
Order Number Generator
Make a list of order numbers by a rule you can see: text before the number, a date part, a running or random number, and a check digit if you want one. You can also check the check digit of numbers you already have.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use this generator
- Choose running numbers, numbers with a random part, or a check of numbers you have.
- Type the text before the number, such as PO- for purchase orders, and choose a date part and a separator.
- For running numbers, type the first number and the number of digits. For a random part, choose its length and characters.
- Choose a check character if you want one. Choose Generate, then copy the list, download it as a text file, or download the table as a CSV file for Excel.
How an order number is built
- Text before: such as PO-, SO- or WO-.
- Date part: the year (2026), the year and month (202611), the full date (20261102 or 261102), or the year and the day of the year (26306).
- Running number: a number with leading zeros to a fixed width, such as 00001. It shows the order of the orders.
- Random part: digits or letters chosen by the secure random generator of your browser. It hides how many orders you have and is hard to guess.
- Check character: Luhn mod 10, GS1 mod 10, ISO 7064 MOD 11-2 (a digit or X) or ISO 7064 MOD 97-10 (two digits). It is worked out from the digits after the text before, and finds most typing mistakes.
The chance of a repeat with a random part
Two random parts can be the same by chance. For n orders and N possible random parts, the chance of at least one repeat is about 1 − exp(−n(n − 1) ÷ (2N)), the birthday bound. A list made here never repeats, because a random part that is already in the list is drawn again; the chance is for the orders you expect over time.
With a date part, only orders with the same date part can clash, so type the orders you expect for one date part.
Worked example
With PO-, the year 2026, a hyphen and 5 digits, the numbers run PO-2026-00001, PO-2026-00002 and so on. With 5 digits there is room for 99,999 numbers in a year.
With a Luhn check digit, the digits 2026 and 00001 give the check digit 4, so the first number is PO-2026-000014. If someone types PO-2026-000023, the check finds the mistake: the check digit of 202600002 is 2, not 3.
A random part of 8 digits has 100,000,000 possible values. Among 5,000 orders the chance that two get the same random part is about 12%. With 10 digits it is about 0.12%.
Limits you should know
- The page does not keep a counter between visits and cannot see the numbers in your system. Start each new list after your last number, and let your system refuse a number that is already used.
- A check character finds most typing mistakes, but not all. A correct check character does not prove that an order exists.
- Random parts are not a security feature. Do not use an order number as a password or as proof of payment.
- Up to 1,000 numbers at a time.