Retail Barcodes Explained: EAN-13, UPC-A and What Shops Need

Published 9 October 2026

Every product on a shop shelf carries a retail barcode. They look alike, but there are several types, and the number matters more than the picture. Here's how they work and what you need if you want to sell in shops.

TypeDigitsMostly used
EAN-1313Shops worldwide, books (ISBN-13)
UPC-A12Shops in the US and Canada
EAN-88Small packs
UPC-E6 + 2Very small packs in North America

What is a retail barcode?

A retail barcode is the pattern of bars and numbers printed on a product so that a till can identify it in a split second. The scanner reads the number. The shop's software then looks that number up and finds the product name and the price. The barcode doesn't contain the price itself.

The numbers come from a global system run by GS1. Each product gets a unique number called a GTIN (Global Trade Item Number), and the barcode is just the way it's printed.

The four main retail barcode types

  • EAN-13 has 13 digits. It's the standard in Europe, Asia, Africa and most of the world. Books use it too, as ISBN-13.
  • UPC-A has 12 digits. It's the traditional format in the United States and Canada.
  • EAN-8 has 8 digits. It's a short version for small packs where a full barcode won't fit.
  • UPC-E is a compressed UPC-A for very small packs, mainly in North America.

Not sure whether you need 12 or 13 digits? Read EAN-13 vs UPC-A. Modern tills read all of them, and a UPC-A is simply an EAN-13 with a zero in front.

What isn't a retail barcode

Other formats look similar but have other jobs. Code 128 and Code 39 are for logistics, stock control and labels inside a business. ITF-14 goes on outer cartons and cases. None of these are used at the shop checkout, so if you put a Code 128 on a product and expect the till to read it, you'll be disappointed. Our guide to Code 128 vs Code 39 covers when to use those.

Where retail barcode numbers come from

For products sold in shops, the number should be issued to your business by GS1 through your local GS1 office. You become a member, receive a company prefix, and create a product number for each item from it. This keeps numbers unique worldwide. Many retailers and marketplaces check numbers against GS1's records. For the full picture, see barcodes for products you sell.

This site makes the barcode image. It doesn't issue or register numbers.

Getting the print right

A correct number can still fail at the till if it's printed badly. A few things matter most:

  • Dark bars on a light background, with strong contrast.
  • A clear blank margin on both sides of the barcode.
  • Printed at the right size. Retail barcodes are normally printed at 80% to 200% of their nominal size.
  • A flat, matte surface where possible.

The details are in how to print barcode labels that actually scan.

A checklist before your product goes to a retailer

  1. Confirm which format the retailer or marketplace wants.
  2. Use a number that was properly issued to you.
  3. Make the barcode image and check that the check digit is correct. See how check digits work.
  4. Print a sample on the real packaging material.
  5. Scan it with more than one scanner, including a phone barcode app.

What about QR codes on products?

You may see QR codes on packaging more often now. They're usually used to link to extra information: instructions, recipes or recycling advice. Shops are still set up around the linear barcode at the till, and GS1 has been working with retailers on allowing 2D codes at the checkout in future. For today, if you're selling in shops, you need the standard barcode. A URL QR code can sit beside it. See barcode vs QR code.

Small business questions

Dutch speakers can read streepjescode printen. Need Code 128 instead? See barcode 128.

Do I need a retail barcode to sell online? Often not on your own website, but big marketplaces usually ask for one. Can one barcode cover all sizes? No. Each variant, such as a different size or colour, normally needs its own number. Can I reuse a barcode from another product? No. A number belongs to one product.

Frequently asked questions

What are retail barcodes?

They're the barcodes printed on products so that shop tills can identify them. The common types are EAN-13, UPC-A, EAN-8 and UPC-E.

What is the difference between a retail barcode and Code 128?

Retail barcodes use numbers issued through GS1 and are read by shop tills. Code 128 is a flexible format for your own labels, stock and shipping, and isn't used at the till.

Do I have to buy retail barcodes?

If you sell through shops or large marketplaces, the numbers normally need to come from GS1. For internal use, any correctly formed number works.

Can I make a retail barcode image for free?

Yes. This site makes the image for free. You still need a number that your retailer accepts.

More guides

See all guides