Barcode generator
Create EAN-13 or Code 128 barcodes with checksum, PNG export.
- Instant
- Free
- Private (processed locally)
- No sign-up
Two standards, one tool
Whether you label a product or a parcel, the right format matters. This tool generates EAN-13 and Code 128, computes the check digit for you and draws the bars on a canvas, exportable as PNG.
-
Choose the format
EAN-13 for 13 digits, Code 128 for text.
-
Enter the data
The check digit is computed automatically.
-
Export
Download the PNG, ready to print.
EAN-13 vs Code 128
| Criterion | EAN-13 | Code 128 |
|---|---|---|
| Content | 13 digits | ASCII text |
| Checksum | Modulo 10 | Modulo 103 |
| Use | Retail products | Logistics, labels |
| Example | 978020137962 → …624 | CLIC-TOOLS |
Everything is computed locally. Print sharp, without stretching, and keep white margins for a reliable scan.
Frequently asked questions
What is the difference between EAN-13 and Code 128?
EAN-13 encodes exactly 13 digits and is used for retail products (the code on packaging). Code 128 encodes variable-length ASCII text (letters, digits, symbols) and is used in logistics, labeling and parcel tracking.
How is the EAN-13 check digit computed?
From the first 12 digits: sum the odd-position digits, plus three times the even-position ones, then round up to the next ten. For example, 978020137962 gives check digit 4, so the full code is 9780201379624.
Does Code 128 also have a checksum?
Yes: a control character computed modulo 103 from the start code and each symbol’s position. The tool adds it automatically, which ensures a reader will accept the code.
Will the barcode be scannable?
Yes, if printed at a sufficient size with good margins (quiet zones) on both sides. Export the PNG, print it sharp and without stretching, and keep clear space around the bars.