Professional Barcode Generator

Create high-quality barcodes instantly. Support for all major formats. Download as PNG, SVG, or PDF. Completely free.

Configure Barcode

Enter your data and select barcode format

Preview

Your barcode will appear here

Enter data and click generate

Download Options

Instant Generation

Generate professional barcodes in milliseconds. No waiting, no processing delays.

Multiple Formats

Support for EAN-13, UPC-A, Code 128, Code 39, ITF-14, and more industry standards.

Export Options

Download as PNG, SVG vector, or PDF. Print-ready quality for all formats.

100% Free & Private

No registration required. Your data never leaves your browser. Completely private.

Industrial 1D Barcode Symbologies: Architecture, Modulo Checksums, and Optical Print Specifications

Written by RedoHub Editorial Team · Last updated: September 12, 2026
Advertisement

Client-Side Vector Rendering Engine

All barcodes generated above are rendered purely within your browser using Scalable Vector Graphics (SVG) paths. No barcode payload data, product identifiers, or serial numbers are ever transmitted across external networks or stored in server logs, guaranteeing absolute operational privacy.

1. The Physics of Optical Linear Scanning & Symbology Fundamentals

A one-dimensional (1D) linear barcode is an optical, machine-readable representation of data where information is encoded across the varying widths and spacings of parallel lines. Unlike two-dimensional (2D) matrix symbologies (such as QR Codes or Data Matrix) which encode data along both horizontal and vertical axes, linear barcodes are scanned along a single horizontal slice.

Optical barcode readers — whether utilizing monochromatic visible red lasers (typically operating at 630 nm to 670 nm wavelengths) or Charge-Coupled Device (CCD) linear image sensors — do not "read" ink colors directly. Instead, they measure the differential reflectance profile (photocurrent waveform) produced as the sensor sweeps across alternating dark elements (bars, which absorb light) and light elements (spaces, which reflect light back into the photodetector):

2. Comparative Architecture of Major 1D Linear Symbologies

Different industrial sectors require distinct trade-offs between character density, alphabet flexibility, fault tolerance, and physical durability. Below is an engineering comparison of the primary symbologies supported by this generator:

Symbology Encoding Density Supported Character Set Checksum Algorithm Start / Stop Framing Primary Industry Application
Code 128
ISO/IEC 15417
Very High (Compaction in Mode C) Full 128 ASCII Set (0–127) + 4 FNC special codes Modulo 103 (Weighted) Asymmetric 11-module start, 13-module stop Global logistics, shipping cartons (GS1-128), asset tracking
EAN-13
ISO/IEC 15420
Fixed Length (13 numeric digits) Numeric only (0–9) Modulo 10 (Weight 3/1) Guard bars (Left 101, Center 01010, Right 101) International consumer retail goods at checkout (Point of Sale)
UPC-A
ISO/IEC 15420
Fixed Length (12 numeric digits) Numeric only (0–9) Modulo 10 (Weight 3/1) Guard bars (Left 101, Center 01010, Right 101) North American retail checkout (United States & Canada)
Code 39
ISO/IEC 16388
Moderate (Discrete 9 elements/char) 43 characters (A–Z, 0–9, - . $ / + % [space]) Optional Modulo 43 Framed by Asterisk (*) US Department of Defense (MIL-STD-129), automotive (AIAG)
ITF-14
Interleaved 2 of 5
High (Pairs interleaved in bars/spaces) Fixed 14 numeric digits Modulo 10 (Weight 3/1) Bearer Bars (Top, bottom, side borders) Corrugated shipping containers, master warehouse packaging

3. Start/Stop Framing and Dynamic Subsets in Code 128

One of the most technically sophisticated linear symbologies is Code 128. Each symbol character is exactly 11 modules wide and consists of precisely 3 bars and 3 spaces (except for the Stop character, which is 13 modules wide with 4 bars and 3 spaces):

4. Mathematical Verification: Step-by-Step Modulo 10 Check Digit Walkthrough

Both EAN-13 and UPC-A mandate a final trailing check digit calculated via the standardized GS1 Modulo 10 algorithm. This mathematical check eliminates manual data entry mistakes and detects scanner bit-inversion errors with over 99.9% reliability.

The Formal GS1 Modulo 10 Check Digit Formula

For an input sequence of n - 1 digits (where n = 13 for EAN-13 or n = 12 for UPC-A), assign alternating positional weights of 3 and 1 starting from the rightmost payload digit (position n - 1) and proceeding leftward to position 1:

WeightedSum = ∑ (d_i × w_i)
CheckDigit = (10 - (WeightedSum mod 10)) mod 10

Worked Example: Verifying the 12-digit payload 5 9 0 1 2 3 4 1 2 3 4 5 to compute its 13th EAN-13 check digit:

Position Digit (d) Positional Weight (w) Calculation Running Sum
Pos 1 (Leftmost)5× 15 × 1 = 55
Pos 29× 39 × 3 = 2732
Pos 30× 10 × 1 = 032
Pos 41× 31 × 3 = 335
Pos 52× 12 × 1 = 237
Pos 63× 33 × 3 = 946
Pos 74× 14 × 1 = 450
Pos 81× 31 × 3 = 353
Pos 92× 12 × 1 = 255
Pos 103× 33 × 3 = 964
Pos 114× 14 × 1 = 468
Pos 12 (Rightmost Payload)5× 35 × 3 = 1583

Final Check Digit Evaluation:
1. Total Weighted Sum = 83
2. Remainder modulo 10: 83 mod 10 = 3
3. Difference from 10: 10 - 3 = 7
4. Modulo 10 safeguard: 7 mod 10 = 7
Therefore, the complete 13-digit EAN-13 barcode sequence is: 5901234123457.

5. Optical Print Specifications & Scanning Reliability

High scannability in industrial environments demands adherence to strict physical printing standards. Scanners frequently fail not because of software bugs, but because of physical optical violations:

The Quiet Zone Requirement (Margin of Silence)

Every barcode requires a completely unprinted, high-reflectance blank margin known as the Quiet Zone immediately preceding the first bar and following the final bar. For Code 128 and EAN-13, the quiet zone must measure at least 10 times the X-dimension (or 0.25 inch / 6.4 mm, whichever is greater). If product packaging artwork, text, or label edges bleed into this margin, optical decoders cannot detect the start character, resulting in a 100% scan failure rate.

Spectral Reflectance and Color Contrast Matrix

Because commercial laser scanners illuminate symbols with red light (650 nm), any ink that reflects red light behaves optically as "white". Therefore, printing red, orange, or yellow bars on a white background renders the entire symbol completely invisible to a laser scanner, even though human eyes can see it clearly!

Bar Color (Absorption) Background Substrate (Reflectance) ISO/ANSI Scan Status Optical Explanation
Black White Optimal (Grade A) Maximum possible optical contrast ratio (>85% reflectance difference).
Dark Navy Blue White Valid (Grade A/B) Blue ink absorbs red laser light strongly, providing reliable contrast.
Dark Forest Green White Valid (Grade B) Green pigments absorb wavelengths above 600 nm cleanly.
Red or Magenta White Fatal Failure (Unscannable) Red ink reflects 650 nm laser light identically to white paper; sensor detects no bars.
Yellow White Fatal Failure (Unscannable) Yellow absorbs violet/blue light, but reflects red light entirely.
Black Dark Blue / Green Fatal Failure (Unscannable) Both bars and background absorb red light, yielding zero relative contrast.

6. Digital File Formats: Why Vector (SVG/PDF) Outperforms Raster (PNG)

When mass-printing barcodes on industrial packaging or thermal label printers (e.g., Zebra, Honeywell, Sato), selecting the correct digital asset format is critical:

Frequently Asked Questions

What is the difference between Code 128 and EAN-13 / UPC-A?

EAN-13 and UPC-A are fixed-length, numeric-only symbologies regulated by GS1 specifically for retail point-of-sale checkout worldwide. In contrast, Code 128 is a highly flexible, variable-length alphanumeric symbology capable of encoding all 128 ASCII characters, making it the universal standard for shipping labels, carton serial numbers, and internal warehouse inventory.

Why does an EAN-13 barcode only have 12 visual symbol characters if it encodes 13 digits?

In EAN-13, the 13th (leftmost) digit is not printed as a dedicated bar pattern. Instead, it is implicitly encoded through the variable parity pattern (Set A odd parity vs Set B even parity) across the 6 digits in the left-hand half of the symbol. Scanners deduce the leading digit by inspecting the parity combination of the decoded left symbols.

Can I print barcodes in custom brand colors like gold or red?

No. Barcodes should almost never be printed in red, orange, yellow, or gold because standard optical scanners utilize red light (630–670 nm). Under red laser illumination, red and warm-toned inks reflect light just as brightly as white paper, causing the scanner to detect no contrast difference at all. Always maintain dark, light-absorbing bars (black, dark navy, dark green) on light-reflecting substrates (white, light yellow).

What are ITF-14 Bearer Bars and why are they necessary?

ITF-14 (Interleaved 2 of 5) barcodes are printed on corrugated shipping cartons. Because carton cardboard is coarse, the code is enclosed within thick black borders called Bearer Bars. These bars equalize printing plate pressure and prevent "short scanning" — an error where a diagonally tilted scanner beam crosses out through the top or bottom of the code, misinterpreting a 14-digit number as a valid shorter 6-digit number.

Why does scaling a PNG barcode cause scanning failures?

Scaling a raster PNG image forces image viewers and printer drivers to resample pixels. This creates blurry, anti-aliased gray pixels along the bar margins, altering the precise mathematical ratios between narrow and wide bars. For industrial printing, always download the SVG or PDF vector format, which snaps cleanly to the printer's native resolution without sub-pixel distortion.