Barcode Generator (EAN-13, UPC, Code 128)
Generate standard-compliant, scannable barcodes in EAN-13, UPC-A, and Code 128 formats. Includes high-resolution PNG/SVG export and built-in checksum validation.
About
In the high-stakes world of retail logistics and supply chain management, a barcode is more than just lines on a package; it is the fundamental data link between physical inventory and digital systems. A non-scannable barcode can lead to chargebacks from major retailers, stalled shipments at distribution centers, and manual entry errors at the point of sale. Accuracy and adherence to GS1 standards are non-negotiable.
This tool generates strictly compliant 1D barcodes for the most common global standards: EAN-13 (International Retail), UPC-A (North American Retail), and Code 128 (Logistics & Shipping). Unlike simple font-based generators, this engine calculates the mandatory Check Digits (Modulo 10 or Modulo 103) and adheres to quiet zone requirements, ensuring your codes scan correctly on the first pass.
Formulas
For retail barcodes like EAN-13 and UPC-A, the accuracy of the scanner relies on the Modulo 10 Check Digit. This ensures that a single typing error does not result in a valid but incorrect scan.
The algorithm weights positions alternatively by 1 and 3:
For Code 128, a more complex Modulo 103 checksum is used, involving weighted sums of the internal values of every character relative to its position in the string.
Reference Data
| Standard | Structure | Character Set | Checksum Method | Primary Use Case |
|---|---|---|---|---|
| EAN-13 | 13 Digits | Numeric (0-9) | Modulo 10 | Global Retail Products (excl. USA/Canada) |
| UPC-A | 12 Digits | Numeric (0-9) | Modulo 10 | North American Retail (USA/Canada) |
| Code 128 | Variable Length | Full ASCII (128 chars) | Modulo 103 | Logistics, Shipping Labels, ID Cards |
| EAN-8 | 8 Digits | Numeric (0-9) | Modulo 10 | Small Packages (Gum, Cigarettes) |
| ITF-14 | 14 Digits | Numeric (0-9) | Modulo 10 | Outer Cartons & Packaging Boxes |
| ISBN | 13 Digits (978 prefix) | Numeric (0-9) | Modulo 10 | Books & Publications |
| Code 39 | Variable Length | Alphanumeric (Limited) | Modulo 43 (Optional) | Automotive, Defense, Legacy ID |
| GS1-128 | Variable + App IDs | Full ASCII | Modulo 103 | Advanced Supply Chain Tracking |