Sequential barcode generator
Set a prefix, a start number, a count and the number of digits, and the generator below fills the list and draws every barcode in the run. The sequence builder is already open and set to Code 128. One run holds up to 500 numbers.
How the sequence builder works
Open Or build a numbered sequence under the list box. It has four fields:
| Field | What it does | Allowed values |
|---|---|---|
| Prefix | Text put in front of every number, such as ASSET- | Up to 20 characters, or empty |
| Start at | The first number of the run | 0 to 999,999,999 |
| How many | How many numbers to make | 1 to 500 |
| Digits | Pads each number with leading zeros to this many digits; 0 means no padding | 0 to 12 |
Fill the list replaces whatever is in the list box with the new run and draws the barcodes at once. With the prefix BIN-A-, start 1, count 5 and 3 digits you get BIN-A-001 to BIN-A-005. The list stays editable afterwards, so you can delete numbers you do not need or add a few by hand before you download.
The prefix has to suit the barcode type you pick. Code 128 takes any printable text. Code 39 takes capitals, digits, space and - . $ / + %, so a prefix with an underscore fails there.
Choose the number of digits once
Padding is not decoration. Spreadsheets and file lists sort text character by character, so ASSET-10 comes before ASSET-2. With 4 digits the same items read ASSET-0002 and ASSET-0010 and sort correctly.
The builder never cuts a number short. With 3 digits, a run that starts at 998 gives 998, 999, 1000, 1001: the run is no longer one length, sorting breaks again and the barcodes change width. Pick enough digits for the largest number you expect to reach, with room to spare. 4 digits allow 9,999 items and 6 allow 999,999.
In Code 128 an even number of digits also gives a shorter barcode, because digits are stored in pairs. These widths come from the generator:
| Value | Digits | Width in modules |
|---|---|---|
ASSET-0001 | 4 | 134 |
ASSET-00001 | 5 | 156 |
ASSET-000001 | 6 | 145 |
Six digits print narrower than five. The Code 128 page explains why.
Planning a numbering scheme
A sequence is only useful if everyone reads the numbers the same way. A scheme for a small business can fit on one line per prefix:
| Prefix | Used for | Digits | First number |
|---|---|---|---|
ASSET- | Laptops, tools, furniture | 4 | ASSET-0001 |
BIN-A- | Bins in aisle A | 3 | BIN-A-001 |
BOX- | Storage or archive boxes | 6 | BOX-000001 |
RMA- | Return labels | 6 | RMA-000001 |
- One prefix per kind of thing. Anyone who scans
BOX-knows it is a box before they look it up. - Keep meaning out of the number. Do not build the room, owner or supplier into an asset number. Things move and owners change, and the label then tells a lie. Store those facts against the number in your spreadsheet.
- Avoid letters people misread in prefixes that will also be typed by hand: O and 0, I and 1, S and 5.
- Ask what reads the codes. Some systems limit length or characters. Check before you print the first run, not after.
For where each kind of label goes and how to track them, see inventory barcode labels for a small business.
Runs longer than 500
Split a long run into batches of up to 500: start at 1 with a count of 500, then start at 501, then 1001. Download each batch before you fill the next one, because filling replaces the list.
The files in each ZIP are numbered from 001 in list order, followed by the value, such as 001-ASSET-0501.svg. A second batch therefore also starts at 001. The values in the names differ, but put each ZIP in its own folder so that two files with the same leading number are never mixed up when you place them in label software.
Avoiding duplicates across print runs
Duplicates usually come from two people printing from the same prefix, or from someone starting a new run at 1 again. A short run log prevents both. Keep it next to your item list:
| Date | Prefix | First | Last | Count | Printed by | For |
|---|---|---|---|---|---|---|
| 3 Nov | ASSET- | 0001 | 0120 | 120 | Office | Laptops and screens |
| 4 Nov | ASSET- | 0121 | 0180 | 60 | Office | Workshop tools |
- Start each new run at the last number plus one. Write the run in the log before you print it, not after.
- Let one person or one sheet own each prefix. If two sites print their own labels, give each site its own prefix, such as
LDN-andMAN-. - When a label is damaged, reprint the same number. Do not give the item a new one.
- Never reuse the number of an item you have sold, scrapped or lost. Old records still point to it.
- Before printing, paste the run next to your existing numbers in a spreadsheet and check for repeats with
=COUNTIF(A:A,A2)>1.
Numbered EAN-13 codes for in-store use
The builder also works for retail formats. Use a digit prefix and set the digits so that each line has 12 digits, then switch the barcode type to EAN-13 and the generator adds each check digit. With the prefix 200123, 6 digits and a start of 1, the first three lines are 200123000001, 200123000002 and 200123000003, and the barcodes read 2001230000011, 2001230000028 and 2001230000035. Notice that the check digit changes from line to line, so the printed numbers do not end in a neat sequence.
Numbers that start with 2 are for use inside one company or region only, and your till supplier may reserve part of that range for weighed items, so ask before you print. For products sold elsewhere, use your own GS1 company prefix as the prefix; the EAN-13 barcode generator page explains how its digits fit together.
Frequently asked questions
How many barcodes can one run have?
Up to 500. For a longer run, make several batches: start at 1, then 501, then 1001, and download each one before filling the next.
Can I count in steps of 10 or count down?
The builder counts up by one. For other steps, make the list in a spreadsheet, for example =SEQUENCE(50,1,10,10) for 10, 20, 30 and so on, and paste it into the list box.
Can I put text after the number?
Not in the builder, which only adds a prefix. Build the list in a spreadsheet with a formula such as ="BOX-"&TEXT(A2,"0000")&"-L" and paste the results.
My numbers start with zeros. What do I type in Start at?
Type the number without the zeros, such as 42, and set Digits to the full length, such as 6. The builder writes 000042.
Will reprinting a run give exactly the same barcodes?
Yes. The same values with the same barcode type and settings always produce the same bars, so a reprinted label matches the original.