Free tools
Barcode generator: EAN-13, UPC-A and Code 128
Make an EAN-13, UPC-A or Code 128 barcode and download it as SVG or PNG. Retail check digits are worked out for you, or checked if you type them.
Runs in your browser. Nothing you type or open on this page is uploaded; it works with your connection switched off once the page has loaded.
The PNG has the bars only; add any text in your own layout.
How to use it
- Pick the barcode type: EAN-13 or UPC-A for a product's retail number, Code 128 for anything else (order numbers, asset tags, shipping labels).
- Type the number or text. For EAN-13 and UPC-A you can leave off the last digit and it is calculated; if you type it, it is checked.
- Download the SVG for print (it stays sharp at any size) or the PNG for documents.
- Print a test and scan it with a phone or your scanner before printing a batch.
Need this in bulk, or from code?
The same job is one HTTP call to our API: GET /v1/barcode. 100 calls a day free with no key; paid plans from $9 a month. One key
works for every API.
Questions
Which type do I need?
Retail products sold in shops use EAN-13 (most of the world) or UPC-A (the US and Canada), and the number itself comes from GS1. For your own labels (stock, assets, tickets, order numbers) Code 128 takes letters and digits and is read by practically every scanner.
Can I make up an EAN or UPC number for my product?
Not for selling through retailers. They expect numbers issued by GS1 to your company, and a made-up number can clash with someone else's product. This tool draws the barcode for a number you already have; it does not issue numbers.
What is the check digit?
The last digit of an EAN-13 or UPC-A number is calculated from the others, so a scanner can catch a misread. Type 12 digits for EAN-13 (or 11 for UPC-A) and we add it; type all 13 (or 12) and we check it, and tell you the right one if it is wrong, since that usually means a typo elsewhere.
What can Code 128 hold here?
Up to 80 printable ASCII characters: letters, digits, spaces and punctuation. Runs of digits are packed two to a symbol, which keeps number-heavy codes short. Accented letters and control characters are not accepted.
Is anything uploaded?
No. The barcode is drawn by this page in your browser.
How big should I print it?
Keep the white space either side of the bars: scanners need it. For retail codes, GS1 recommends around 37 mm wide at 100% size and allows roughly 80% to 200%; much smaller than that and some scanners struggle.