How to use it
- Choose the barcode type. Use Code 128 for your own labels and stock, and EAN-13 or UPC-A for retail products.
- Type the text or number. For EAN and UPC you can leave out the last digit and the check digit is worked out for you.
- Adjust the bar width, height and colors if you need to. The preview updates as you type.
- Download a PNG or an SVG. For many barcodes, choose Many (batch), paste one value per line and download them all as a ZIP file.
Which barcode type to use
| Type | Holds | Used for |
|---|---|---|
| Code 128 | Any keyboard character (ASCII), any length | Shipping labels, asset tags, stock and inventory. The best default for your own codes: compact and read by every scanner. |
| EAN-13 | 13 digits, last one a check digit | Retail products worldwide, and books (ISBNs starting 978 or 979). |
| UPC-A | 12 digits, last one a check digit | Retail products in the US and Canada. A UPC-A is an EAN-13 with a leading 0, so scanners everywhere read both. |
| EAN-8 | 8 digits, last one a check digit | Small packs where an EAN-13 will not fit, such as gum and cosmetics. |
| Code 39 | A–Z, 0–9, space and - . $ / + % | Older systems, ID badges, and automotive and military parts. Wider than Code 128 for the same text. |
| ITF-14 | 14 digits, last one a check digit | Outer cartons and cases of retail products (the GTIN-14). Prints well on corrugated cardboard. |
Where retail barcode numbers come from
The tool draws a barcode for any valid number, but it cannot give you a number that stores will accept. Retail EAN and UPC numbers are product identifiers (GTINs) issued by GS1, a non-profit with an office in each country. You license a single number or a company prefix from your local GS1, and that makes the number yours and unique worldwide. Large retailers and Amazon check numbers against the GS1 database, so numbers bought cheaply from resellers or made up can get your listings rejected.
For codes used only inside your own business, such as shelf labels, stock locations or loyalty cards, you do not need GS1. Use Code 128, or EAN-13 numbers starting with 2, which GS1 reserves for in-store use and which never clash with real products.
How the check digit works
EAN, UPC and ITF-14 numbers end in a check digit that lets the scanner catch misreads. Starting from the rightmost digit before the check digit, multiply digits alternately by 3 and 1, add them up, and take the amount needed to reach the next multiple of 10. For 400638133393 the weighted total is 89, so the check digit is 1 and the full EAN-13 is 4006381333931. If you type all the digits and the last one does not match, the tool tells you which digit it should be, which usually means there is a typo somewhere.