How to make a barcode for your product or stock

A barcode is just a number drawn as bars, so the hard part is picking the right type and the right number. Here is how to choose, make and print barcodes that scan, for shop products and for your own stock.

To make a barcode, open the free Barcode generator, pick the type (EAN-13 or UPC-A for products sold in shops, Code 128 for your own stock codes), type the number and download an SVG or PDF for print or a PNG for documents. The check digit is worked out for you. The part people get wrong isn’t the drawing: it’s using the wrong type, a made-up retail number, or printing it too small. This guide covers all three.

First decide: shop product or your own use?

Barcodes do two different jobs, and the answer decides everything else.

You want to…TypeWhere the number comes from
Sell a product in shops or on a marketplace (outside North America)EAN-13GS1 (your company prefix) or the manufacturer
Sell a product in the US or CanadaUPC-AGS1 US or the manufacturer
Label a very small packEAN-8GS1, issued on request
Label outer cartons of a productITF-14Built from the product’s GTIN by GS1 rules
Track stock, bins, assets, tickets, documents inside your businessCode 128You make it up (for example SKU-10045-BLK)
Feed an older system that asks for itCode 39You make it up (capital letters and digits)

Where retail barcode numbers come from

EAN and UPC numbers are part of one worldwide numbering system run by GS1. Each product needs a number no other product uses, so you can’t safely invent one: a made-up EAN might already belong to someone else’s product. The usual routes are:

  • You make the product: license a company prefix from your country’s GS1 office and number your products with it. Amazon’s own seller guide sends new brands to GS1 for this.
  • You resell someone else’s product: use the barcode the manufacturer already gave it; ask them for the GTIN if it isn’t printed.
  • The barcode is only for your own shelves or till: you don’t need GS1 at all. Use Code 128 with your own codes. Most till and stock software reads it.

Step by step: make the barcode

  1. Choose the type in the Barcode generator.
  2. Type the number. For EAN-13 you can type the first 12 digits: the 13th is a check digit, and the tool works it out. If you type all 13 and the last one is wrong (a common typo), you’re told and offered the right number.
  3. Check the size under “Size and look”. The defaults are the standard size; leave them unless you have a reason.
  4. Download. SVG or PDF for packaging artwork and print (they stay sharp at any size); PNG for Word, label software or a website. PNG is offered at 300 or 600 dpi for print.

The standard (100%) EAN-13 is about 37.3 mm wide including its white margins, with bars 22.85 mm tall and the narrowest bar 0.33 mm wide (GS1 UK size guide). GS1 lets you scale it up or down in proportion, from about 80% to 200% for products in shops, but bigger always scans more easily.

  • Don’t cut the height to squeeze it onto a label unless the pack is truly too small; a squat barcode is harder to scan.
  • Keep the white margins (quiet zones) at both sides: 11 bar-widths on the left of an EAN-13 and 7 on the right. The tool includes them in the file, so don’t crop them off.
  • Black on white is safest. Red bars don’t scan at all, because most scanners use red light.
  • Print at 100% (“Actual size”). “Fit to page” quietly shrinks the bars.

Many barcodes: a sheet of labels

For stock and shelf labels, paste your codes (one per line, straight from a spreadsheet column) into the box below the generator. Add , 10 after a code to print 10 copies. Choose A4 or Letter and how many labels across and down, and download one PDF that prints on plain paper or a sticker sheet. If the labels are too small for the barcode at full size, the tool shrinks the codes to fit and tells you by how much, so you can pick fewer labels per page instead. You can also download every code as its own SVG or PNG in a ZIP.

Test before you print a thousand

Print one sheet, then scan a code with your till scanner or any phone barcode app. Check it reads the right number, not just that it beeps. If it won’t scan, the cause is almost always size, a cropped margin, a light colour or a printer set to scale the page.

Frequently asked questions

Do I have to buy barcodes to sell on Amazon?

For a new product you make yourself, Amazon’s seller guide points you to GS1 for a GTIN (the number behind an EAN or UPC). If your product has no GTIN and isn’t already listed, Amazon offers a GTIN exemption you can apply for with photos of the product and packaging. Check the current rules in Seller Central for your marketplace.

What is the check digit?

The last digit of an EAN, UPC or ITF-14 is worked out from the others, so a scanner can catch a misread. If you type a number with the wrong last digit, scanners will reject it. The barcode generator calculates it for you and warns when it doesn’t match.

Can I use a QR code instead of a barcode?

For links, menus and Wi-Fi, yes: use the QR code generator. For products at a shop till, use the EAN or UPC the till expects. Many products now carry both.

Which file should I send to my printer?

The SVG or the PDF. They are vector files, so the bars stay perfectly sharp at the exact size you chose. A PNG can blur or change size if the designer rescales it.

Selling online too? An invoice generator and the guide on clean product photos help with the next steps.