Barcode generator
Type a number or some text and the barcode draws as you type. Choose Code 128 for labels, stock codes, and anything with letters, or EAN-13, UPC-A, or EAN-8 for a product number, with the check digit worked out. Download it as an SVG or a PNG.
How to use it#
- Choose the barcode under Type. Code 128 takes any text typed on an English keyboard; EAN-13, UPC-A, and EAN-8 take a product number.
- Type what the barcode should hold. For a product number, leave off the last digit and it is worked out for you.
- Untick Print the text under the bars if you only want the bars.
- Download the SVG, or pick a PNG size and download the PNG.
Which barcode to choose#
Code 128 is the one to use when you choose the contents yourself: a stock code, an order number, a shelf label, an asset tag, or a URL. It holds plain ASCII text, upper and lower case letters and punctuation included (letters with accents need a QR code), and packs long runs of digits two to a bar pattern, so a number-only code stays short. Every modern scanner reads it.
EAN-13 is the barcode on products sold almost everywhere outside North America, UPC-A the one in the US and Canada, and EAN-8 the short version for packs too small for EAN-13. Books use EAN-13 too: an ISBN-13 is printed as an EAN-13. These take a number of a fixed length, not text. Code 39 is older and holds only capital letters, digits, and a few symbols; choose it when a system or a form asks for it by name.
Product numbers and check digits#
The number in a retail barcode is not something you can make up. To sell through shops, the number has to come from GS1, the organisation that issues company prefixes, or from a reseller of those numbers, so that it is unique worldwide. This tool draws a barcode for a number you already have; it does not issue one. For a barcode used only inside your own business, such as on shelves or stock, use Code 128 and any code you like.
The last digit of an EAN or UPC is a check digit, worked out from the others so a scanner can catch a misread. Type the number without it and it is added, shown in the settings column. Type it with the check digit and it is checked: a wrong last digit brings up a message giving the right one, and Download waits until it is fixed, since a code with a bad check digit will not scan.
Printing a barcode that scans#
Print in black on white. A scanner reads the contrast between bars and gaps, so a barcode in a light colour or on a coloured background often fails. Leave the white margin either side of the bars: it is part of the code, and a scanner needs it to find where the code starts. The SVG is drawn from shapes rather than pixels, so it prints sharp at any size; use it for print and for label software that takes vector files. To check a downloaded code reads, open it in the barcode scanner.
For a PNG, choose a size that will not need stretching. Scaling a PNG by an odd amount makes some bars a pixel wider than others, and a barcode is read from those widths. Small draws each narrow bar 2 pixels wide, for a small label; Medium and Large leave room to shrink the picture in a document without losing detail.
Frequently asked questions#
Can I make a barcode for a product I want to sell?
#
You can draw it here once you have the number. Shops and marketplaces want a number issued by GS1 in your country, which links it to your company; a made-up number may already belong to someone else. Once you have the number, type it in as EAN-13 or UPC-A and download the barcode.
What is the difference between EAN-13 and UPC-A?
#
A UPC-A number is twelve digits and an EAN-13 is thirteen. Any UPC-A is also an EAN-13 with a 0 in front, and scanners everywhere read both. Use UPC-A if your number has twelve digits and the product is sold in the US or Canada; otherwise EAN-13.
Can a barcode hold a link or a lot of text?
#
Code 128 can hold a link, but the barcode gets wide quickly, and phone cameras read a QR code far more easily. For a link, Wi-Fi details, or anything longer than a short code, use the QR code generator instead.
Why does Code 39 change my letters to capitals?
#
Code 39 has no lower-case letters, so they are written as capitals, and characters it does not have, such as "@" or "_", stop the barcode with a message. Code 128 holds upper and lower case and every symbol on an English keyboard.
Is anything I type sent anywhere?
#
No. The barcode is drawn in this tab, and the SVG and PNG are made here too. Nothing you type is uploaded.