Anatomía del código de barras: barras, espacios, zonas de silencio y dígitos de control
A visual tour of every component in a barcode symbol — start/stop patterns, data characters, quiet zones, and the check digit that prevents errors.
Barcode Anatomy: Understanding Every Component
A barcode is more than just black lines on a white background. Each element serves a specific purpose in ensuring reliable scanning and accurate data capture. This guide walks through every structural component.
Quiet Zones
The quiet zone is the blank space before and after the barcode. It signals to the scanner where the barcode begins and ends. For EAN-13, the left quiet zone must be at least 11 times the X dimension (11X), and the right must be at least 7X. Insufficient quiet zones are the single most common cause of scan failures.
Start and Stop Patterns
Start and stop characters are special fixed patterns at the beginning and end of a barcode. They tell the scanner the symbology type and scanning direction. In Code 128, the start character also indicates which code set (A, B, or C) is active. In Code 39, the asterisk (*) character serves as both start and stop.
Data Characters
The body of the barcode contains the encoded data. Each character is represented by a specific sequence of bars and spaces. In EAN-13, each digit uses two bars and two spaces within a 7-bar or space; the basic unit of barcode width." data-category="Barcode Anatomy & Structure">module space. The encoding pattern varies between L (odd parity), G (even parity), and R (right-side) sets.
Guard Patterns
Some symbologies use guard patterns to delimit sections of data. EAN-13 has three guard patterns: a start guard (101), a center guard (01010), and an end guard (101). These fixed patterns help the scanner synchronize its reading and confirm the barcode's structure.
Check Digit
The check digit is a calculated value appended to the data that allows the scanner to verify the barcode was read correctly. Different symbologies use different algorithms: EAN/UPC use Modulo 10, Code 39 uses Modulo 43, and Code 128 uses Modulo 103. If the computed check digit does not match the encoded one, the scanner rejects the read.
Human-Readable Interpretation
The numbers or characters printed below (or above) the bars are the human-readable interpretation (HRI). They allow manual data entry when a barcode cannot be scanned. GS1 specifications define exact positioning, font size, and formatting for HRI text.
Bar Height (Bearer Bars)
Bar height affects scanning reliability, especially for handheld scanners. Taller bars give the scanner more latitude to find a clean scan line. ITF-14 requires bearer bars, thick frames around the barcode that prevent ink spread from causing misreads on corrugated cardboard.
Module Width (X Dimension)
The X dimension is the width of the narrowest bar or space in the symbol. It determines the barcode's overall size and the minimum scanner resolution needed. Typical X dimensions range from 0.25mm for small labels to 1.02mm for warehouse barcodes.