Barcode Generator
Choose a format — UPC-A, EAN-13, EAN-8, Code 128, Code 39, ITF-14 or Codabar — type the value and download a PNG or SVG. Check digits are calculated or verified for you. Use Code 128 for internal and shipping labels; barcodes for retail shelves need a number allocated to you by GS1.
Updated
How to use the Barcode Generator
- 1Pick the barcode format you need.
- 2Type the value — the tool tells you immediately if it is not valid for that format.
- 3Adjust bar width, height and whether the text is shown underneath.
- 4Download as PNG or SVG.
How it works
Each format encodes characters as a pattern of bars and spaces of varying widths, and each has its own rules about what it can hold. CODE128 takes any ASCII text and is the workhorse for shipping and internal labels. EAN-13 and UPC-A are the fixed-length retail formats you see on products, and both require a check digit.
The check digit is calculated for you. It comes from a weighted sum of the other digits, and it lets a scanner detect a misread rather than silently returning the wrong product. Type twelve digits for an EAN-13 and the thirteenth is added automatically; type all thirteen and the tool verifies it.
For real retail use, the number itself has to be allocated to you by GS1 — a barcode you invent will scan, but it will not identify your product in any retailer's system. For internal stock control, warehouse labels and asset tags, any value you like is fine.
Tips and common mistakes
- For products sold in shops, get the number from GS1 in your country before generating the barcode.
- Download SVG for printing so the bars stay sharp at any size.
- Print black bars on a white background; red bars cannot be read by most scanners.
- Scan a test print with a real scanner or a barcode app before printing labels in bulk.