Generate Code 128 and EAN-13 barcodes with SVG / PNG export
Optimized automatically: switches to Code Set C for digit runs of 4+ to keep the barcode compact.
Barcodes turn printed data into a machine-readable optical signal. Code 128 is the dominant flexible 1D barcode (used in shipping, warehousing, and IDs); EAN-13 is the global retail standard (groceries, books, pharmacies). This tool implements both encoders per ISO/IEC 15417 (Code 128) and ISO/IEC 15420 (EAN-13), complete with the check-digit algorithm and quiet-zone margin.
Code 128 for internal / shipping / asset barcodes (most flexible — all ASCII). EAN-13 for retail (books = ISBN-13, grocery = GTIN-13).
Print at 100% (never scale down), keep a quiet zone (10× module width) around it, and make sure contrast between fore- and background is high. Avoid stretching: if you must resize, use the SVG and scale proportionally.
No — use our dedicated QR Code Generator. QR is a 2D code and belongs in a separate tool for clarity.
The 13th digit is a mod-10 weighted checksum of the first 12. If you enter 12 digits, we compute and append it. If you enter 13, we render as-is.
Yes — ALL and all are different barcodes. Case matters in Code Set B.