Barcode Symbology Guide: Code 128, EAN-13, Quiet Zones & Check Digits
Barcodes are optical machine-readable representations of data, encoded as patterns of parallel lines and spaces of variable widths. Choosing the right symbology depends on whether your items are sold in commercial retail checkout registers (EAN/UPC) or managed internally within warehouses and shipping logistics (Code 128).
Code 128 vs. EAN-13 / UPC-A
Compare the core capabilities of the two most dominant linear 1D barcode standards:
| Feature | Code 128 | EAN-13 / UPC-A |
|---|---|---|
| Primary Domain | Warehouse, shipping, logistics, internal assets | Global retail point-of-sale checkout scanners |
| Supported Characters | Full 128 ASCII (letters, numbers, punctuation) | Numeric digits only (0-9) |
| Code Length | Variable alphanumeric length | Strictly 13 digits (EAN) or 12 digits (UPC) |
| Check Digit Method | Modulo 103 checksum | Modulo 10 weighted sum (odd × 1, even × 3) |
| Registration Required? | None (100% free internal use) | Yes, official barcodes require GS1 registration |
The Critical Importance of "Quiet Zones"
A barcode’s "Quiet Zone" is the clean, unprinted white space immediately preceding the first bar and following the final bar.
- Laser and optical image scanners require this blank buffer to calibrate ambient background reflection before decoding bar pulses.
- For Code 128, the quiet zone must measure at least 10 times the width of the narrowest bar module (or 0.25 inches).
- Cropping or printing graphics into the quiet zone causes scanning failure at register checkpoints.
Ready to try it?
Open the Barcode Generator and follow the steps above.
Related tools and guides
Frequently asked questions
Can I generate free UPC barcodes to sell products in stores?
While you can generate the visual pattern for free, retail stores like Walmart, Target, and Amazon require authentic company prefix numbers registered officially with GS1.
Why did my printed barcode fail to scan?
Common causes include insufficient quiet zones, low print resolution (< 300 DPI), curved or wrinkled packaging surfaces, or poor optical contrast between the bars and background.