How to make a barcode
- Pick the type. EAN-13 or UPC-A for products in shops, ITF-14 for cartons, Code 128 for your own stock codes.
- Type the number. For EAN and UPC you can leave out the last digit: we work out the check digit. If you type it and it’s wrong, you’re told and offered the right one.
- Check the size under Size and look. The defaults are the standard 100% size for retail codes.
- Download an SVG or PDF for print and packaging artwork (sharp at any size), or a PNG for documents and label software.
For many codes, paste the list into the box below the generator and download a ZIP or a PDF sheet of labels. Print the sheet at 100% (“Actual size”), not “Fit to page”, so the bars keep their size.
Which barcode type to choose
| Type | Holds | Use it for |
|---|---|---|
| EAN-13 | 13 digits (12 + check digit) | Retail products almost everywhere outside North America; books (ISBN starts 978/979) |
| UPC-A | 12 digits (11 + check digit) | Retail products in the US and Canada |
| EAN-8 | 8 digits | Very small packs where an EAN-13 doesn’t fit (numbers issued by GS1 on request) |
| ITF-14 | 14 digits | Outer cartons and cases of products (printed on corrugated board, with the frame around it) |
| Code 128 | Letters, numbers and symbols | SKUs, stock locations, asset tags, tickets, shipping and internal labels |
| Code 39 | A–Z, 0–9 and a few symbols | Older warehouse, ID-badge and industrial systems that ask for it |
Where the numbers come from
A barcode is only a picture of a number. For shop products the number itself has to be yours: EAN, UPC and ITF-14 numbers are issued through GS1, usually by licensing a company prefix from your country’s GS1 office, or they come from the manufacturer of the product. Marketplaces such as Amazon point sellers to GS1 for new products. For anything inside your business, make up your own codes and use Code 128.
Print it so it scans
- Keep the white margin (quiet zone) at both sides: on an EAN-13 that’s 11 bar-widths on the left and 7 on the right. This page includes it.
- Dark bars (black is best) on white or a light background. Red bars don’t scan, because scanners use red light.
- Don’t shrink an EAN-13 much below 80% or cut its height; bigger scans more reliably (GS1 UK size guide).
- Test a printed code with a phone scanner app before printing a whole run.
Why it’s made on your device
Product numbers, stock lists and asset tags are business data. The barcodes are drawn in your browser from the numbers you type; nothing is sent to a server, and there’s no account to make.
Frequently asked questions
Can I make up my own EAN or UPC number?
Not for products you sell in shops or on marketplaces. EAN and UPC numbers for retail come from GS1, the organisation that runs them: you license a company prefix and number your products with it, or get the number from the manufacturer. A made-up number can clash with another company’s product. For your own stock, shelves, assets or tickets, use Code 128 with any code you like.
Which barcode type should I use?
EAN-13 for retail products in most of the world, UPC-A for the US and Canada, EAN-8 for very small packs, and ITF-14 for outer cartons. For anything inside your business (SKUs, stock bins, library books, asset tags, tickets), use Code 128: it holds letters, numbers and symbols and is short. Code 39 is for older systems that ask for it.
What size should a barcode be when printed?
An EAN-13 at 100% is about 37.3 mm wide including its quiet zones, with bars 22.85 mm tall; the narrowest bar is 0.33 mm. GS1 allows it smaller or larger in proportion (roughly 80% to 200%), but bigger scans more easily. Don’t squash the height unless the pack is too small, keep the white margins, and print dark bars on a white or light background.
Why won’t my barcode scan?
The usual causes are: printed too small, the printer scaled the page (print at 100% or Actual size), the white margin at the sides was cut off, bars in a light or red colour, a shiny or curved surface, or a wrong check digit. This page works out the check digit for you and warns when it doesn’t match.