Enter your data and select barcode format
Your barcode will appear here
Create high-quality barcodes instantly. Support for all major formats. Download as PNG, SVG, or PDF. Completely free.
Enter your data and select barcode format
Your barcode will appear here
Generate professional barcodes in milliseconds. No waiting, no processing delays.
Support for EAN-13, UPC-A, Code 128, Code 39, ITF-14, and more industry standards.
Download as PNG, SVG vector, or PDF. Print-ready quality for all formats.
No registration required. Your data never leaves your browser. Completely private.
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.
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):
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 |
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):
211412, Start B: 211214, Start C: 211232) and Stop character (2331112) possess mathematically asymmetric bar/space patterns, an optical scanner instantly identifies whether the laser beam swept left-to-right or right-to-left. If read in reverse, the scanner's firmware automatically reverses the bit sequence in memory prior to decoding.NUL, CR, LF, ACK, and BEL).00 through 99) as a single 11-module character. For example, the 10-digit number 1234567890 requires only 5 character symbols instead of 10! RedoHub's generator automatically optimizes subset selection to minimize total printed label width.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.
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 | × 1 | 5 × 1 = 5 | 5 |
| Pos 2 | 9 | × 3 | 9 × 3 = 27 | 32 |
| Pos 3 | 0 | × 1 | 0 × 1 = 0 | 32 |
| Pos 4 | 1 | × 3 | 1 × 3 = 3 | 35 |
| Pos 5 | 2 | × 1 | 2 × 1 = 2 | 37 |
| Pos 6 | 3 | × 3 | 3 × 3 = 9 | 46 |
| Pos 7 | 4 | × 1 | 4 × 1 = 4 | 50 |
| Pos 8 | 1 | × 3 | 1 × 3 = 3 | 53 |
| Pos 9 | 2 | × 1 | 2 × 1 = 2 | 55 |
| Pos 10 | 3 | × 3 | 3 × 3 = 9 | 64 |
| Pos 11 | 4 | × 1 | 4 × 1 = 4 | 68 |
| Pos 12 (Rightmost Payload) | 5 | × 3 | 5 × 3 = 15 | 83 |
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.
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:
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.
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. |
When mass-printing barcodes on industrial packaging or thermal label printers (e.g., Zebra, Honeywell, Sato), selecting the correct digital asset format is critical:
<rect> or <path> elements). When sent to a printer, the RIP (Raster Image Processor) translates the vector edges directly to the printer's native dot grid without anti-aliasing blur, guaranteeing laser-sharp edges and 100% first-pass read rates.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.
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.
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).
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.
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.