What each symbology can hold
A barcode is not just digits drawn as stripes; each symbology carries its own character set and length rules. The dropdown offers Code 128 (B) for full ASCII with variable length, the workhorse for logistics and internal numbering; Code 39 for digits, uppercase letters and a few symbols, tolerant of poor printing and common on older warehouse labels; EAN-13 at a fixed thirteen digits with the last one a check digit, standard for retail; UPC-A at twelve for North American retail; and ITF-14 at fourteen for corrugated carton codes. The data field takes the payload, and module width offers two, three or four pixels, which sets physical width and scanning distance.
Steps
- Pick the symbology first: EAN-13 for retail items, Code 128 for internal IDs.
- Enter the data; for EAN-13 supply twelve digits and let the tool compute the check digit.
- Choose module width: four pixels for print, two is enough on screen.
- Press the sample value button to see data that passes validation.
- Reload defaults with the example button, then copy the encoded string.
- Download PNG for bitmaps or SVG for print and scaling.
Check digits, quiet zones, print precision
The last digit of EAN-13 and UPC-A is a modulo-ten check: sum the odd positions, triple it, add the even positions, and take the complement to ten. The tool blocks invalid lengths or characters rather than emitting an unscannable image. Quiet zones matter most: eleven modules on each side for EAN-13, ten for Code 128, and trimming them is the top cause of failed scans. Module width sets resolution, since inkjet printers blur edges at three pixels while 203dpi thermal label printers are safer at four. Height has a floor too, with retail codes recommended at thirteen millimetres or more so the scan line crosses full bars. And data containing spaces or lowercase switches Code 128 character sets, changing length, so never refill the encoded string as raw data.
Common mistakes
Entering all thirteen EAN-13 digits so the tool adds a fourteenth. Placing the code where packaging eats the quiet zone. Printing at two-pixel modules and blurring the bars. Passing lowercase into Code 39. Screenshotting and rescaling, which interpolates module widths. And putting ITF-14 on a retail item that expects EAN-13.
Where generation is not registration
This draws standard one-dimensional codes and does not handle GS1 prefix registration or product barcode filing, which retail goods need from an issuing body. QR, DataMatrix and PDF417 are out of scope, and dense payloads belong to a QR tool. Pharmaceutical traceability, device UDI and food batch rules must follow industry and regulator specifications rather than invented numbering. And treating generated codes as officially registered invites rejection downstream.