Digit pairs = turbo mode
Code 128’s subset C packs two digits per symbol, so a 30-digit string only needs 15 characters—leaner bars and faster scans.
Code 128 supports a wide range of characters. Choose EAN/UPC for retail codes, ITF-14 for cartons, or Codabar for legacy labels.
Choose the barcode format that matches how the code will be scanned or printed.
| Barcode type | Best for | Input rules | Recommended export |
|---|---|---|---|
| Code 128 | Inventory, shipping labels, SKUs, internal IDs | Text, numbers, and common ASCII characters | SVG for print, PNG for quick sharing |
| EAN-13 | Retail product packaging | 12 digits plus generated check digit, or a valid 13-digit code | SVG for packaging artwork |
| UPC-A | Retail products, especially North America | 11 digits plus check digit, or valid 12-digit UPC | SVG for print |
| EAN-8 | Small retail packaging | 7 digits plus check digit, or valid 8-digit code | SVG for small labels |
| Code 39 | Simple asset tags and older inventory systems | Uppercase letters, numbers, and limited symbols | SVG or high-scale PNG |
| ITF-14 | Cartons, cases, and logistics units | 13 digits plus check digit, or valid 14-digit code | SVG for case labels |
| Codabar | Libraries, labs, blood banks, and legacy logistics labels | Digits and - $ : / . + with A-D start/stop guards | SVG for legacy labels |
This tool creates the barcode image from the data you enter. It does not issue official GTIN, EAN, or UPC numbers. For retail products, marketplaces, and store checkout systems, use a valid number from GS1 or your regional numbering authority.
Use this generator after you already have the number, or for internal labels such as SKUs, warehouse locations, asset tags, shipping references, and test labels.
If a barcode looks correct but does not scan reliably, check these common issues before reprinting a full batch.
Leave clear blank space to the left and right of 1D barcodes. Do not place text, borders, logos, or cut lines inside this space.
Use SVG for print artwork. If exporting PNG, use a higher scale and avoid image smoothing or resizing inside design software.
Use dark bars on a light background. Black bars on white is the safest choice for most scanners.
Retail barcodes need a valid check digit. This tool can calculate or validate check digits, but it does not issue official retail product numbers.
Wrinkles, scratches, glossy laminate, transparent packaging, and curved surfaces can all reduce scan reliability.
No. The generator runs in your browser. Your barcode text, product numbers, CSV rows, and generated SVG/PNG files stay on your device.
The tool supports Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, and Codabar. QR codes are handled by the separate QR Code Generator.
Yes. Enter 12 digits for EAN-13, 11 digits for UPC-A, 7 digits for EAN-8, or 13 digits for ITF-14 and the tool will compute the final check digit. Full-length values are validated before rendering.
Use EAN-13, UPC-A, or EAN-8 for retail product codes, ITF-14 for cartons, Code 128 for compact logistics or inventory labels, Code 39 for simple alphanumeric IDs, and Codabar for legacy library, lab, or logistics workflows.
v1.2 (June 6, 2026)
v1.1 (February 18, 2026)
Code 128 is a compact, high-density symbology for logistics labels, inventory stickers, and internal IDs. EAN-13, UPC-A, and EAN-8 cover retail product codes, ITF-14 is used for cases and cartons, Code 39 handles simple uppercase alphanumeric IDs, and Codabar supports older library, lab, and logistics workflows.
Barcodes turn numbers or text into machine-readable lines that scanners can decode instantly. This tool supports common 1D symbologies: Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, and Codabar. Everything runs locally in your browser, and you can export crisp SVG (best for print) or PNG (for quick digital use).
EAN-13, UPC-A, EAN-8, and ITF-14 use a final digit to help detect errors. The algorithm alternates 1x and 3x weights across the data digits, then chooses the final digit that brings the total to a multiple of 10.
(10 − (sum mod 10)) mod 10.Enter the data digits and this tool will fill the final digit automatically; enter the full code to verify an existing value.
For retail EAN, UPC, or ITF use, obtain valid product numbers (commonly via GS1 or your regional numbering authority). Using made-up numbers can cause conflicts in stores or marketplaces. Remember: the country digits in an EAN identify the number issuer, not necessarily where the product was made.
Tip: keep a small test sheet of barcodes with varying margins and sizes. Scan them with your actual devices to lock in settings before a big print run.
Code 128’s subset C packs two digits per symbol, so a 30-digit string only needs 15 characters—leaner bars and faster scans.
Retail scanners use red light, so red bars can “disappear”. That’s why the safest pick is dark bars on a pale background.
Those blank margins are signal ramps. Trim them too small and scanners lose the start/stop patterns—boost the margin if reads feel finicky.
EAN-13’s final digit flags almost every single-digit error and most swaps. If your pasted code fails here, it likely has a sneaky typo.
The world’s first supermarket barcode scan (1974) was a pack of Wrigley’s gum. Your SVG export is a direct descendant of that beep.