Barcode Generator
Private: drawn on your device, never sent anywhere
Make a real, scannable EAN-13, UPC-A, EAN-8 or Code 128 barcode and take it away as SVG for print or PNG for a screen. The check digit is worked out for you, the quiet zones are built in, and the finished size is quoted in millimetres at 300 dpi so a label fits the first time.
About these barcodes
A barcode is not a picture of stripes, it is a number written in a code with rules about widths, parity and blank space. Get one rule wrong and the symbol still looks convincing on screen while no till in the country will read it. So this tool draws from the encoding tables in the standard, works out the check digit itself, and keeps the quiet zones inside the image where they cannot be cropped off by accident.
EAN-13 is the retail barcode on almost everything sold outside North America, and UPC-A is the twelve digit North American form of the same symbol, which is why a UPC-A here is encoded as an EAN-13 with a leading zero. EAN-8 exists for packages too small for thirteen digits. Code 128 is the logistics and internal label code: it carries letters, digits and punctuation rather than a fixed length number, and it packs runs of four or more digits two to a symbol so a long numeric label comes out close to half as wide. None of the four carries a link or a block of text: for that you want a QR code instead.
The output is SVG, because bars have to stay sharp at whatever size they are printed and a vector never blurs. The PNG is that same SVG drawn to a canvas at the exact pixel size shown, for a screen, a slide or a marketplace upload that will not take SVG.
How to make a barcode
- Pick the format. EAN-13 for retail, UPC-A for North America, EAN-8 for small packs, Code 128 for anything with letters.
- Type the number. Leave the check digit off and it is calculated for you; type it in and it is checked, and you are told the right one if it does not match.
- Set the module width, the width of the narrowest bar. Four pixels is 0.34 mm at 300 dpi, which is the nominal size of a retail barcode. Go below two only for a screen.
- Set the bar height. Taller is easier to scan at an angle, and a retail symbol is normally about 22 mm tall.
- Take it away: SVG to print or place in artwork, PNG for a screen, Copy for the SVG markup to paste straight into a page.
- Print it at 100 percent, on white, with nothing inside the blank margin either side, then scan it before you order a thousand labels.
Common questions about barcodes
What is the check digit and why does it change my number?
Will these actually scan at the till?
Can I invent my own retail barcode number?
What can Code 128 hold?
Why does EAN-13 show the first digit outside the bars?
Is my number uploaded anywhere?
Next