Free barcodes in your browser — no sign-up, no upload.

What Barcode Do I Need?

The right barcode depends on who will scan it. A till, a warehouse scanner and a library system want different things — pick by the reader, not by what looks familiar.

The decision in 30 seconds

If you are…UseWhy
Selling a product in shops (outside US/Canada)EAN-13The retail standard; number allocated by GS1
Selling a product in shops (US/Canada)UPC-AThe retail standard there; number allocated by GS1 US
Selling a very small product in the USUPC-E or EAN-8Compressed forms for packs too small for the full code
Labelling stock, bins or assets in your own warehouseCode 128Any SKU text, dense, read by every handheld scanner
Shipping cartons to retailersITF-14GTIN-14 for the case; prints well on corrugated board
Publishing a bookISBN (EAN-13)ISBN-13 starting 978/979, issued by your ISBN agency
Running a libraryCodabarTraditional library standard; also used by blood banks and photo labs
Labelling for automotive / defence / legacy systemsCode 39Specified by name in older standards; otherwise use Code 128

Retail vs warehouse: the one rule that matters

Retail barcodes (EAN-13, UPC-A, EAN-8, UPC-E) encode a GTIN — a globally unique product number allocated by GS1. The number is the product's identity in every retailer's system, and the barcode is just the printed form of it. Warehouse barcodes (Code 128, Code 39, Code 93, Codabar) encode whatever text you choose — a SKU, an order number, a shelf location. They are only meaningful inside your own operation, and no retailer will accept one as a product barcode. Mixing the two up is the most expensive mistake in this guide: printing a Code 128 of your SKU on retail packaging does not give you a sellable product, and printing a made-up EAN-13 does not give you a GTIN.

Libraries, blood banks and Codabar

Codabar is the old standard for library book labels and blood-bank bags, where its start/stop letters (A–D) and tolerance for rough printing mattered more than density. New library systems usually accept Code 128 as well, but if you are replacing labels in an existing library system, match what the system already reads — do not change symbologies mid-collection. Generate Codabar on the main generator (choose Codabar; bare digits get A…A start/stop letters added automatically).

What about QR codes?

A QR code is a different kind of thing: a 2D code that holds far more data (a web address, a serial number, an expiry date) and is read by phones as well as scanners. For a product on a shelf, the linear barcode is still what the till scans. The industry is moving toward printing both — GS1's Sunrise 2027 initiative aims for retail checkouts to be able to read GS1 2D codes (QR with GS1 Digital Link, or GS1 DataMatrix) by the end of 2027 — but the linear EAN/UPC is not being switched off, and during the transition a 2D code is printed in addition to the linear barcode, never instead of it. See barcode vs QR code: which to use.

Checklist before you print

  1. Who scans it — a till, a warehouse handheld, or a phone? That decides the symbology.
  2. Is the number yours? Retail numbers come from GS1; ISBNs from your ISBN agency. Internal codes are yours to invent.
  3. Does the check digit verify? Use the check digit calculator or any generator on this site — a wrong check digit is caught before printing, not at the till.
  4. Does it fit at 80% magnification or larger, with quiet zones? See the label sizes & printing guide.
  5. Have you test-scanned a real print? Always, before a production run.

Related

Frequently asked questions

I sell on Amazon — which barcode do I need?

Two different ones, for two jobs: a GTIN (EAN-13 or UPC-A from GS1) identifies the product, and an FNSKU label (usually Code 128) identifies your stock inside Amazon's warehouses. See how to get a barcode for Amazon and retail.

Can I use Code 128 on a product I sell in shops?

No. Shops expect EAN-13 or UPC-A with a GS1 number. Code 128 is for your own warehouse, shipping and internal labels.

What barcode do libraries use?

Traditionally Codabar. New systems often accept Code 128 too, but match the system you already have.

What is the difference between EAN-13 and UPC-A?

Geography and length: EAN-13 (13 digits) is the retail standard outside North America; UPC-A (12 digits) is the standard in the US and Canada. A UPC-A number with a leading 0 is the same product as an EAN-13.