Basic Structure of a Barcode
- Quiet Zone: blank space at both ends to help scanners find the barcode boundary.
- Start Character: marks the beginning and helps determine the scanning direction.
- Data Characters: the main body that carries the encoded information.
- Check Character: verifies data integrity using algorithms such as mod 10 or mod 43.
- Stop Character: marks the end of the barcode.
How Check Digits Work
A check digit detects errors. For EAN-13, the 13th digit is a check digit calculated from the first 12 digits using weighted sums. If the scanned data does not match the check digit, the scanner rejects the read, greatly reducing misreads.
Different formats use different algorithms: Code39 offers an optional mod 43 check, Code128 uses a mod 103 check, and QR Code uses Reed–Solomon error correction.
Scanning Principles
Scanners illuminate the barcode and measure the difference in reflected light between bars and spaces. The reflected light is converted into electrical signals and then decoded. Laser scanners are good for long distances, while image scanners (CCD/CMOS) can read barcodes displayed on screens.
Print Quality
- Resolution: low resolution blurs bar edges and hurts readability.
- Contrast: the greater the contrast between bars and spaces, the more stable the scan.
- Scaling: keep the bar/space ratio when resizing.
- Media and ink: paper and ink combinations affect reflectance.
Always verify with a barcode verifier or an actual scanner before mass printing.
Common Issues
- Barcode won't scan? Check the quiet zone, print sharpness, contrast and size.
- Misreads? Verify the check digit, data length and character set.
- On-screen barcode won't scan? Use an image scanner and increase screen brightness.
Want to try it? Go back to the homepage of Barcode8 tiaoma8.com and use the online generator.