Barcoding order numbers for a small warehouse, and why digits matter
Picture a small online shop that packs a few hundred orders a week. Each order has a number such as ORDER20240001, and the packer wants to scan it from the packing slip instead of typing it. Code 128 is the natural choice: every common scanner reads it, and it holds both letters and digits. The question is how wide the barcode will be on a slip that has little spare room.
Code 128 measures width in modules, the thinnest bar or space. In code set B, each character is one 11-module pattern. Written entirely in set B, ORDER20240001 is 13 characters, plus a start pattern, a check pattern and a 13-module stop pattern, plus 10 modules of quiet zone each side: 198 modules in all. This page sees that the last eight characters are digits. It writes ORDER in set B, switches to set C, and packs 20240001 as four pairs: 20, 24, 00, 01. The result is 165 modules, about 17% narrower.
Narrower matters because the scanner needs each bar to be wide enough to see. At 0.33 mm per module, a common size for label printers, 165 modules print at about 54 mm wide, while 198 would need 65 mm. On a slip with a 60 mm space, only the packed version fits at that bar size. The shop could also drop the word ORDER entirely: a code of digits only, such as 0123456789, is all set C and needs just 110 modules.
The packer downloads the SVG and adds it to the slip template. Because the file is one unit per module, the label software can scale it to exactly 0.33 mm per module without blurring the edges. They print a test slip and scan it with the handheld scanner from different angles before switching the whole workflow over.
This tool has limits. It makes Code 128 only, which is right for internal labels but not for retail products, where tills expect EAN-13 or UPC-A with a GS1 number. It accepts printable ASCII and nothing else, so no accents, tabs or the special FNC codes that GS1-128 shipping labels use. Codes longer than 80 characters are refused, because they print too wide for most labels. And it cannot promise that a code prints well: bars printed too thin, too faint or on glossy stock can fail on any scanner.