Serial Number Generator

Generate a run of sequential numbers from a start value and a step — then dress them up with a prefix, suffix and zero padding. Big-integer based, so long IDs stay exact.
Start:   Step:   How Many:   Target Length:
Prefix:   Suffix:   Separator:
Generated Number
Serial Number Download CSV
Group Serial Number

Introduction to the tool and how to use it

The Serial Number Generator produces a whole run of consecutive numbers in one pass, such as sequential numbers from 000001 to 000010, device codes starting at SN-1001, or a downward series starting from 99.
Note: internally it advances with BigInt arithmetic, so it is not bound by JavaScript floating-point precision; long numbers of 16 digits or more still increment exactly by 1. If the start value or step is a non-integer (such as 1.5 or abc), the tool warns and outputs nothing.

How to use

  1. Fill in the start value, the numeric value of the first code; it may be very large (for example 202509300001).
  2. Fill in the step, the gap between neighboring codes; default is 1; enter -1 for a decreasing series.
  3. Fill in the count, how many codes to generate (cap 2000).
  4. Fill in the target length, how many digits to pad on the left with zeros; entering 6 pads 7 into 000007; entering 0 means no padding; if the number is already longer than the target, it prints as-is.
  5. Set prefix and suffix as needed, for example prefix SN- and suffix A, producing SN-000001A.
  6. Set the separator; the default \\n means one per line, and changing it to a half-width comma joins everything into one line.
  7. Click start; results print in the text box and the table below (index / serial number, copy in place), and the table can be downloaded as CSV.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?