Which barcode format to use
Different jobs expect different formats:
- Code 128: any letters, numbers and symbols, packed tightly. The best choice for stock labels, shipping, tickets and anything internal.
- EAN-13: 13 digits, the standard retail barcode in most of the world.
- UPC-A: 12 digits, the retail barcode in the US and Canada. Scanners read it as an EAN-13 with a leading 0.
- EAN-8: 8 digits, for packs too small for an EAN-13.
- Code 39: capitals, numbers and a few symbols. Older and wider than Code 128, but still required by some industrial and government systems.
Check digits, explained
The last digit of an EAN or UPC number is a check digit, worked out from the others. Scanners recalculate it on every scan, so a misread bar is caught instead of ringing up the wrong product.
To work it out, the digits are multiplied by 3 and 1 in turn, starting from the right, and added up. The check digit is whatever brings the total up to the next multiple of 10. Type one digit fewer than the full length and the tool adds it; type the full number and the tool checks it.
Do you need to buy barcode numbers?
To sell in shops or on marketplaces like Amazon, yes. Retail EAN and UPC numbers come from GS1, the body that runs the system, with a prefix tied to your company. A made-up number can belong to someone else's product, and big retailers check.
Drawing the barcode is the free part: once you have your numbers, any generator, this one included, makes the picture. For anything that stays inside your business, like stock, assets or tickets, you don't need GS1 at all. Use Code 128 with your own codes.
Printing barcodes that scan
Print dark bars on a light background; black on white is safest. Red bars often don't scan, because many scanners use red light.
Keep the blank margin on both sides, called the quiet zone, and don't squash the barcode to fit. If it's too wide, lower the bar width rather than stretching it. Download the SVG for print, so the bars stay sharp at any size.
Frequently asked questions
How do I make a barcode for free?
Pick a format, type your number or text, and download the PNG or SVG. There's no sign-up or watermark, and everything runs in your browser.
What's the difference between UPC and EAN?
UPC-A has 12 digits and is used mainly in the US and Canada. EAN-13 has 13 and is used elsewhere. Modern scanners read both, and a UPC is an EAN-13 with a 0 in front.
Can I make my own UPC or EAN number?
Not for selling in shops. Retail numbers have to be licensed from GS1 so they're unique. For internal stock or labels, use Code 128 with any code you like.
What is a check digit?
The last digit of an EAN or UPC, calculated from the others so scanners can catch misreads. This tool adds it if you leave it off, and tells you if a full number's check digit is wrong.
Which barcode works for letters?
Code 128 takes letters, numbers and symbols, and makes the shortest barcode. Code 39 takes capitals and numbers only. EAN and UPC are digits only.