01 / Shops
EAN-13 and UPC-A
The codes on products sold in shops. EAN-13 is used worldwide, UPC-A mainly in the US and Canada. Numbers only.
Free tool
Type a number or text and get a barcode for a product, a shelf label, a parcel or a stock list. EAN-13, UPC-A, Code 128, Code 39, ITF-14 and more. Check digits are added for you, every code is read back to check it scans, and many codes can be made at once from a list or by counting up. Download PNG, SVG, JPG or a print-ready PDF, including a sheet of labels. No account, no watermark.
Need a custom tool, app or website? Contact us →
Size
Text
Colours
Scanners need dark bars on a light background. Keep strong contrast.
Your settings and values are kept in this browser for next time.
Barcodes are made in your browser. What you type is never uploaded.
Which one
01 / Shops
The codes on products sold in shops. EAN-13 is used worldwide, UPC-A mainly in the US and Canada. Numbers only.
02 / Your own use
Letters, numbers and symbols in a compact code. A good pick for stock, assets, tickets and shipping labels.
03 / Cartons
14 digits for outer boxes and cases, readable even on rough cardboard.
Guide
A barcode generator turns a number or a short text into the black and white bars a scanner reads. This one makes twelve types, from EAN-13 and UPC-A for shop products to Code 128 for stock and shipping labels. It adds check digits for you, reads each code back to check it scans, can make up to 500 barcodes from a list at once, and saves PNG, SVG, JPG or PDF files, with a PDF sheet of labels for a batch.
| Type | What it holds | Used for |
|---|---|---|
| EAN-13 | 13 digits, the last a check digit | Products sold in shops around the world |
| UPC-A | 12 digits, the last a check digit | Products sold in shops, mainly in the US and Canada |
| EAN-8 and UPC-E | 8 digits | Small packs with little room for a full code |
| Code 128 | Any keyboard letters, numbers and symbols | Stock, assets, tickets, shipping labels, your own systems |
| Code 39 and Code 93 | Capital letters, numbers, spaces and the symbols -.$/+% | Older label and ID systems that ask for them |
| ITF-14 | 14 digits, the last a check digit | Outer cartons and cases of products |
| ITF | An even number of digits | Warehouses and some industrial labels |
| Codabar | Digits and a few symbols, with A, B, C or D at each end | Libraries and blood banks |
| MSI | Digits only | Shelf labels in some shops |
| Pharmacode | A whole number from 3 to 131070 | Medicine packaging lines |
If you are making codes for your own use, such as tagging equipment or tracking stock, Code 128 is the easy choice. It takes letters and numbers and stays short. If your scanner, shop system or a customer asks for a type, use that one.
EAN-13, UPC-A, EAN-8 and ITF-14 end in a check digit worked out from the other digits, so a scanner can spot a misread. Here is EAN-13 for the 12 digits 590123412345:
So the full number is 5901234123457. Type the 12 digits and the tool adds the 7. Type all 13 and it checks your last digit. If it does not match, the page says the value does not fit, which usually means a digit was typed wrong.
Keep the bars dark and the background light. Red bars, pale colours and light bars on a dark background often fail on laser scanners, which see red light.
Choose Many from a list and paste up to 500 values, one per line. Each one is drawn below. Lines that do not fit the type are left out and listed in the note, so you can fix them. The ZIP names each file after its value, such as STOCK-42.png, which makes them easy to match to your list later. If a value appears twice, the second file gets -2 on the end.
To number a batch, type the first value in Or count up from, such as STOCK-0001, choose How many and a Step, and click Make the list. The last group of digits counts up and keeps its leading zeros, so you get STOCK-0001, STOCK-0002 and so on.
Choose Many from a list, set Save as to PDF, and pick the Sheet (A4 or Letter) and how many labels go Across. The PDF puts the codes in rows, as many as fit on each page, with more pages for a long list. Each code keeps its on-screen size, or shrinks to fit its label, so print at 100% (actual size) rather than "fit to page". Print one page on plain paper first and hold it over your label sheet to check the spacing.
Need to read a barcode instead? Use the barcode scanner. For a link or Wi-Fi details that phones can read, make a code with the QR code generator.
Questions
The picture is a correct EAN or UPC barcode, but shops need the number inside it to be yours. Retail numbers come from GS1, the organisation that hands out company prefixes; a made-up number can clash with another company's product. Get your numbers from GS1 in your country, then make the barcodes here.
EAN, UPC and ITF-14 end in a digit worked out from the others, so a scanner can tell when it misread a bar. Type 12 digits for EAN-13 (or 11 for UPC-A) and the last digit is added for you. If you type all 13, the tool checks that the last one is right.
SVG and PDF are drawn from shapes, so the bars stay sharp at any size: use SVG in a design app and PDF to print straight away. PNG works everywhere; 4x is enough for most labels.
Yes. Choose "Many from a list", paste one value per line (from a spreadsheet column, for example), and download one ZIP with a file for each.
The page reads each new code back in every browser and says whether it scans, or what it read instead. MSI and Pharmacode cannot be read back here. Print one and test it with your own scanner before printing many.
Yes. Choose Many from a list, set Save as to PDF, and pick A4 or Letter and 2, 3 or 4 labels across. Print at actual size.
Yes. In Many from a list, type a start value such as STOCK-0001 in Or count up from, choose how many and the step, and click Make the list.
Yes, with no limit and no watermark.
Each type only takes certain characters and lengths. EAN-13 takes 12 or 13 digits, Code 39 takes only capital letters, numbers and a few symbols. Check the hint under the fields, or switch to Code 128, which takes almost anything.
Yes. Type it in Text under the code instead of the value. The bars still hold the value; only the printed line changes.
No. A barcode is a single row of bars that holds a short number or text. A QR code is a square grid that holds much more, such as a full web address, and phones read it with the camera.
Print it large enough that the thinnest bars are clean and sharp on your printer, and keep the quiet zone clear. Print a test, scan it with the scanner you will use, then print the rest.
Code 128, EAN-13, UPC-A, EAN-8, UPC-E, Code 39, Code 93, ITF-14, ITF, Codabar, MSI and Pharmacode. If you are not sure, Code 128 takes almost any text.