Barcode Generator: Code 128, EAN-13, UPC and ITF-14 Barcodes
By FindMySum · Last reviewed
This barcode generator draws Code 128, EAN-13, UPC-A, UPC-E, EAN-8, Code 39 and ITF-14 barcodes and lets you download them as SVG or PNG. Pick the type, type the data, and the barcode updates as you type, in your browser: nothing is uploaded, and the check digit is worked out for you.
How to make a barcode
- Choose the barcode type. Products for shops use EAN-13 or UPC-A; labels and inventory use Code 128.
- Type the data. For number types you can leave off the last digit and the check digit is added; if you type it, it is checked.
- Download the SVG for print and design work, or the PNG for documents and label software. Set the bar height and the PNG's pixels per module under More options.
- Print a test copy and scan it with the scanner or app that will read it in practice.
A worked example
Type 400638133393 with EAN-13 selected. The weighted sum of those 12 digits is 89, so the check digit is 1 and the barcode encodes 4006381333931. The symbol is 95 modules wide: a start guard, six digits on the left, a centre guard, six on the right and an end guard. The first digit isn't drawn as bars at all: it is carried by the pattern of odd and even parity among the left six digits, which is why it is printed in the margin.
Choosing between Code 128 and Code 39
Both encode letters and digits, but Code 128 packs more into less space, has a built-in check character and switches to a compact double-digit mode for runs of numbers. Code 39 needs no check character and is easy to read by older equipment, but only has capital letters and is roughly twice as wide. Unless a system asks for Code 39, use Code 128.
Common mistakes
Inventing retail numbers. A correct check digit doesn't make a number yours; use numbers from your GS1 membership.
Cropping the quiet zone. The white margins are part of the barcode.
Stretching the image. Scaling a PNG by a non-whole factor blurs or drops thin bars. Download a fresh PNG at the size you need, or use the SVG.
Coloured or low-contrast bars. Scanners use red light, so red bars disappear. Print black bars on white.
To check a GTIN without drawing it, use the GTIN check digit calculator; for links and text, make a QR code instead.