Back to Articles

How to Get a Barcode for Your Product: UPC & EAN Guide for Small Businesses

If you want to sell your product in a shop or on a big marketplace, sooner or later someone will ask for a barcode. Many small business owners then discover that a barcode is really two things: a unique product number, and the black-and-white image of it. You make the image yourself, for free. The number is the part that needs care. Here is how it all works.

Do you actually need a retail barcode?

It depends on where you sell. You need an official product barcode if you plan to:

  • Sell in supermarkets, chain stores, pharmacies or most independent shops with checkout scanners.
  • List new products on large marketplaces such as Amazon, Walmart or Google Shopping, which check product numbers.
  • Work with distributors or wholesalers who manage stock by barcode.

When you don't need one

If you sell only from your own website, at markets, or directly to customers on social media, you usually don't need an official barcode at all. Many handmade and local businesses never buy one. You can still use free barcodes on your own labels to track stock, which we cover below.

Try the free Barcode Generator

It runs in your browser, with no sign-up.

Open Barcode Generator

UPC vs EAN: which one do you need?

Both are retail product barcodes, and modern scanners read both:

  • UPC-A has 12 digits and is traditionally used in the USA and Canada.
  • EAN-13 has 13 digits and is used in most other countries.
  • A UPC number can be written as an EAN-13 by adding a 0 in front, so the two systems work together.
  • Both belong to the same family of product numbers, called GTINs (Global Trade Item Numbers).

Where real product numbers come from: GS1

Product numbers have to be unique worldwide, so no two products in the world share a barcode. GS1 is the not-for-profit organization that manages these numbers, with an office in most countries (GS1 US, GS1 UK and so on). When you buy from GS1, the numbers are registered to your business.

GS1 usually offers two options. Small sellers with one or a few products can often buy single GTINs. Businesses with a growing range buy a company prefix, which lets them create a block of numbers, usually with a yearly fee. Prices differ by country and change over time, so check your local GS1 website for current pricing.

Remember that every different version of a product needs its own number. A t-shirt in three colors and four sizes is twelve products, so it needs twelve numbers.

What about cheap barcodes from resellers?

You'll find websites selling barcodes for a few dollars each. These are usually old numbers originally issued to another company. They may scan, but they are not registered to your business. Big marketplaces such as Amazon check product numbers against the GS1 database, and may reject listings whose barcode belongs to someone else. Some retailers also refuse them.

If you only sell in places that don't check, a reseller number may work for a while. If you plan to grow into retail or marketplaces, buying from GS1 from the start saves you from relabeling everything later.

Free barcodes for stock and internal use

For your own warehouse, shelves, equipment, library or event tickets, you don't need GS1 at all. Make up your own codes, such as your product SKU, and print them as Code 128 barcodes. Code 128 can hold letters and numbers, so a code like "TSHIRT-RED-M" works perfectly.

Any USB or Bluetooth barcode scanner, and many free phone apps, can read them. This alone can save hours of manual counting. Our article on EAN-13 vs UPC-A vs Code 128 explains the differences in more detail.

Create the barcode image

Once you have your number, making the barcode image takes a minute with our free Barcode Generator:

  • Choose UPC-A or EAN-13 for retail products, or Code 128 for internal labels.
  • Enter your number. For UPC-A and EAN-13, the last digit is a check digit that the tool calculates for you.
  • Keep the bars black on a white background, and leave the numbers visible underneath.
  • Download SVG for packaging and labels, so it stays perfectly sharp at any size. Use PNG for quick tests.

Printing tips so it scans at the checkout

A correct number can still fail if it's printed badly. Follow these rules:

  • Size: a standard UPC-A is about 37 x 26 mm (1.47 x 1.02 inches). Retailers usually accept roughly 80% to 200% of that size. Don't make it smaller to fit a design.
  • Height: don't cut the bars shorter than the standard height, a common design mistake.
  • Quiet zone: leave clear white space on both sides of the barcode.
  • Contrast: dark bars on a light background. Red bars, and barcodes on dark or shiny packaging, often fail.
  • Placement: a flat side, away from seams, folds and edges.
  • Test: scan a printed sample with a phone app and, if you can, a real checkout scanner before printing thousands of labels.

Try the free Barcode Generator

It runs in your browser, with no sign-up.

Open Barcode Generator