How to make a barcode
- 1
Pick the type
Selling in shops? UPC-A for the US and Canada, EAN-13 everywhere else. For shipping, stock and asset tags, Code 128.
- 2
Enter your number
Type or paste it. For retail codes we add the check digit, or tell you if the one you have is wrong.
- 3
Watch the scan test
A real scanner engine reads your barcode as you type. Green means it scans.
- 4
Download
PNG for labels and documents. SVG, PDF and EPS stay sharp at any size, ready for packaging and print shops.
Which barcode do you need?
| Type | Holds | Used for |
|---|---|---|
| UPC-A | 12 digits | Products sold in the US and Canada |
| EAN-13 | 13 digits | Products sold everywhere else, and books (ISBN) |
| EAN-8 | 8 digits | Small packs with no room for EAN-13 |
| Code 128 | Any letters, digits and symbols | Shipping, warehouses, inventory, asset tags, Amazon FNSKU labels |
| Code 39 | A-Z, 0-9 and a few symbols | Automotive, defense, ID badges, older systems |
| ITF-14 | 14 digits | Outer cartons and shipping cases |
| Data Matrix | Up to about 1,500 characters | Small parts, electronics, healthcare |
Not sure? If the product is sold in shops, it needs a UPC or EAN. For everything else (your own stock, bins, assets, tickets, library books) Code 128 is the safe choice.
Where retail barcode numbers come from
A barcode is just a picture of a number. Anyone can draw it, and this tool does that for free. The number is the part that matters.
For UPC and EAN barcodes on products sold in shops, the number has to be licensed from GS1, the non-profit that runs the retail barcode system, through the GS1 office in your country. Large retailers and Amazon check numbers against GS1’s database, so “cheap UPC codes” resold online can get your listing rejected: the number belongs to someone else’s company.
If the barcode is only for your own use (stock counts, asset tags, shelf labels), you don’t need GS1. Make up your own numbering and use Code 128.
Print it so it scans
- Dark bars on a light background. Black on white is best. Laser scanners use red light, so red, orange and yellow bars look invisible to them. The generator warns you about colors that won’t scan.
- Keep the quiet zone. The blank space on both sides is part of the barcode. Don’t put text, borders or other artwork there.
- Don’t squash retail barcodes. UPC and EAN can go down to 80% of their standard size. Below that, and with cut-down bars, scanners at the till struggle.
- Print at 100%. Turn off “fit to page” when printing a PNG. Our PNGs use whole pixels per bar, and odd scaling makes bars uneven. PDF and EPS files don’t have this problem.
- Test the printed label with your scanner or a phone app before you print thousands. You can also upload a photo to our online scanner.
Free, with no catches
Barcodes are made in your browser, so we never see your numbers. Basic PNG downloads need no account, and a free account unlocks SVG, PDF, EPS and large images. There’s no watermark and nothing expires: a barcode is just bars, so it works forever.
Putting a code on packaging that people will scan with their phones? That’s a job for a QR code. Dynamic QR codes let you change where they point after printing.