Generators
Barcode Generator — CODE128 & EAN-13
Two barcode families cover nearly everything: CODE128, the flexible workhorse for labels, inventory and internal tracking; and EAN-13, the retail standard on products worldwide — with its check digit computed correctly, which is where homemade barcodes usually fail.
Last updated: November 2026 · Runs 100% in your browser — files never leave your device.
Which format, when
| CODE128 | Any letters/numbers, any length. Internal labels, asset tags, warehouse and library systems, courier labels. |
|---|---|
| EAN-13 | Exactly 12 digits from you + 1 check digit = the 13 on every retail product. For selling through shops/marketplaces — but see the GS1 note below. |
Printing that scans
Barcodes are read by contrast and quiet zones: print black on white, keep clear space on both sides of the bars, and do not shrink an EAN below about 3.5 cm wide for retail scanners. The PNG download is high-resolution; scale it in your label software rather than stretching it.
CODE128 anatomy (for the label-curious)
A CODE128 barcode encodes its data as patterns of bars and spaces of four widths, beginning with a start character, carrying a built-in checksum (which is why a damaged label often refuses rather than misreads — the code would rather fail honestly), and ending with a stop pattern. The human-readable digits under the bars are a courtesy, not part of the code. When you design labels, leave the quiet zones — the blank margins at both ends — as sacred as the bars: scanners find the code by its silence first. The PNG from this page includes proper margins; cropping them in a design tool is the number-one cause of 'the barcode doesn't scan' in home-printed labels.
Frequently asked questions
Why does EAN-13 need 12 digits, not 13?
The 13th digit is a check digit computed from the other 12 — the tool adds it. If you type 13 digits, it uses your first 12 and computes the proper check.
My CODE128 has letters. Is that valid?
Yes — CODE128 encodes the full ASCII set, which is why inventory systems love it. EAN is digits-only by design.
Can I make a QR instead?
For customer-facing uses (links, payments, Wi-Fi), yes — the QR generator holds far more data and scans from any angle.