Generate official 13-digit retail barcodes online for free. Instant high-resolution SVG or PNG download. 100% GS1 compliant, no sign-up.
The EAN-13 barcode (International Article Number) is a 13-digit global standard used for identifying retail products at any point of sale. Originally introduced in 1978, it serves as a superset of the UPC-A standard, ensuring universal compatibility across global retail scanners and supply chain management systems.
Today, EAN-13 is governed by GS1, a non-profit organization that develops and maintains global standards for business communication. Every time you scan a product at a grocery store, you are interacting with an EAN-13 barcode. It provides a unique "fingerprint" for a product, ensuring that a specific SKU (Stock Keeping Unit) can be accurately tracked through supply chains, warehouses, and checkout systems across international borders without collision.
An EAN-13 number is composed of four distinct parts, each serving a critical role in global commerce and automated data capture:
Representing the country office of the GS1 organization where the manufacturer is registered. For instance, prefixes 500-509 represent the UK, while 890 represents India.
A unique identifier assigned by GS1 to the company producing the item. Larger companies often have shorter prefixes to accommodate more product codes.
The specific product identifier assigned by the company. This ensures that a bottle of sparkling water has a different ID than a bottle of still water from the same brand.
The final digit is a mathematically calculated checksum used to verify the integrity of the scan. It prevents "substitution errors" where a distorted bar might be read as the wrong number.
Scanning hardware is highly sensitive, but environmental factors (smudges, poor lighting, low print resolution) can cause errors. To prevent incorrect data entry, EAN-13 utilizes a weighted Modulo-10 algorithm to calculate the 13th digit.
Worked Example: Calculating EAN-13 Checksum
Payload Data: 400638133393
Final EAN-13 Code: 4006381333931
| Symbology | Digit Count | Global Adoption | Primary Use Case |
|---|---|---|---|
| EAN-13 | 13 Digits | World-wide (Default) | Standard retail products at POS |
| UPC-A | 12 Digits | US & Canada Focus | North American retail logistics |
| EAN-8 | 8 Digits | Global (Compact) | Small items (cosmetics, chewing gum) |
In the fashion industry, EAN-13 barcodes are used to distinguish not just between shirt styles, but between every unique combination of size, color, and fit. This allows global brands to maintain real-time inventory visibility across thousands of retail locations.
While serialization often uses 2D Matrix codes, EAN-13 remains the secondary standard for over-the-counter (OTC) medications. It ensures that consumer products like aspirin or vitamins can be sold in standard pharmacies world-wide using existing POS scanners.
Platforms like Amazon, eBay, and Google Shopping require EAN-13 codes (often referred to as GTIN-13) to list products. This allows these platforms to group listings from different sellers for the same exact product, improving the buyer experience.
Ready to create retail-ready identifiers? Use our barcode generator below to create high-resolution EAN-13 codes. For deeper insights into logistics technology and metrology, explore our comprehensive collection of barcode guides.
Technical Standards
Choosing the wrong barcode symbology for your use case is a systemic error that propagates throughout the entire supply chain. The two most commonly confused standards are Code 128 — a variable-length alphanumeric workhorse — and UPC-A — a fixed-length numeric retail identifier. The table below details the precise engineering differences.
| Parameter | Code 128 | UPC-A |
|---|---|---|
| Character Set | Full 128 ASCII (all printable + control chars via Subsets A, B, C) | Numeric only (digits 0–9) |
| Data Capacity | Up to ~48 chars (Subset C) / ~30 chars (Subset B) per ISO label | Exactly 12 digits (11 data + 1 Mod-10 check digit) |
| Variable Length | Yes — symbology grows with payload | No — always exactly 95 modules wide |
| Checksum Algorithm | Modulo-103 (weighted sum of symbol values) | Modulo-10 (alternating x1 / x3 weights) |
| ISO Standard | ISO/IEC 15417 | ISO/IEC 15420 + GS1 General Specifications |
| Quiet Zone | 10 modules each side | 9 modules left / 7 modules right |
| Min Bar Height | 15% of barcode length or 5mm, whichever is greater | 69.24% of total width (~25.91 mm at 100% magnification) |
| Primary Use Case | Shipping labels, GS1-128 / SSCC, healthcare NPI | US/Canadian consumer retail point-of-sale |
The efficiency of Code 128 depends on its three character subsets. Subset A handles ASCII control characters (0x00–0x5F). Subset B covers printable ASCII (0x20–0x7F). Subset C is the most compact — it encodes two numeric digits per symbol character, halving the physical footprint for purely numeric payloads. Encoders automatically switch between subsets using START, CODE A/B/C, and SHIFT control characters.
A UPC-A symbol encodes a 12-digit GTIN-12: a 1-digit Number System Character (0–9, indicating product type), a 5-digit GS1 Company Prefix, a 5-digit Item Reference, and a 1-digit Modulo-10 check digit. The physical symbol is always 95 modules wide (3 guard bars + 42 numeric modules per half + 5 centre guard modules), making it one of the most dimensionally stable symbologies in use.
Industry Compliance
The GS1 General Specifications (currently v24.0) govern every barcode that enters a retail supply chain. They are not suggestions — non-compliant symbols are rejected by retailer receiving systems, which perform automated quality gates before product acceptance. The rules below are the most frequently violated.
Every GS1 company prefix (6-11 digits) must be licensed from your national GS1 Member Organisation. Using an unregistered prefix constitutes a violation of the GS1 System and will cause your product to be rejected by most major retailers.
GS1-compliant barcodes must be printed within 80%-200% of nominal size. At 80% the X-dimension is 0.264 mm; at 200% it is 0.660 mm. Printing below 80% makes the symbol unscannable with standard POS hardware.
The quiet zone is a mandatory white area surrounding the barcode. For EAN-13 and UPC-A it is 7x the X-dimension on the right and 11x on the left. Omitting it causes adjacent graphics to be read as part of the barcode, producing a misread.
Bars must be printed in a dark ink on a light background (reflectance difference > 37.5%). Red inks or warm tints reflect the POS scanner's red laser and produce the same signal as white space — the barcode becomes invisible to the scanner.
The OCR-B typeface below the symbol is mandated by GS1 General Specifications. It enables manual data entry during scanner failure and is required on all primary product packaging.
Glossy coatings can cause specular reflection that overloads scanner photodiodes. Matte or semi-matte finishes are preferred. UV-reactive inks used on some packaging may fluoresce and reduce contrast under scanner illumination.
Before entering the supply chain, symbols must be graded by an accredited verifier. The grading scale (4.0-0.0 / A-F) assesses: Minimum Reflectance, Symbol Contrast, Modulation, Defects, Decodability, and Decode. Retail target grade: 1.5 / C or better.
Hardware Troubleshooting
A barcode that renders perfectly on screen can fail in production for entirely different reasons. The following are the five root causes responsible for the majority of field failures, documented with precise engineering detail and actionable remediation steps.
A standard desktop laser printer outputs 300-600 DPI. At 300 DPI each dot is 0.085 mm. An X-dimension of 0.33 mm requires ~4 dots per module. If bar-to-space transitions fall between dot boundaries, bars gain 0.085 mm of ink bleed per edge — effectively fattening bars and shrinking spaces beyond the tolerance window.
Print thermal/laser at 600 DPI or higher for standard labels; use 203-300 DPI industrial thermal-transfer printers only with fonts calibrated to the print head pitch. Always verify with ISO/IEC 15416 before production runs.
Expert FAQ
Answers to the most technically substantive questions from engineers, print professionals, and retail operations teams using the barcode generator.
Code 128 has no fixed upper limit by specification, but practical label widths constrain it. Using Subset C (numeric pairs), you can encode approximately 48 digits in a standard 100 mm wide label at 0.33 mm X-dimension. Mixed alphanumeric content (Subset B) typically fits 30-35 characters in the same space. Encoding very long strings produces a physically wide barcode that is impractical to print and scan.
This node has been audited for mathematical precision and memory isolation by the MyUtilityBox engineering team. All logic executes locally in browser V8 to ensure zero data leakage. Last Verified: April 2026.