How to Make a Barcode for Your Product: The Complete Guide (2026)

How to make a barcode for your product — free barcode generator
Click the image to open the free Barcode Generator.

A barcode is a small thing that causes big problems when it is wrong — a shipment refused, a product that will not scan at the till, a listing rejected. This guide walks through the whole job properly: the number, the format, the generation, and the printing.

Step 1: Get the right number

The bars are the easy part. The number underneath them is what matters. For anything sold in a shop or on Amazon, the number must be issued by GS1, the global registry, under your own company prefix. A made-up number, or one bought cheap from a reseller, can be rejected — or it may already belong to another product.

For internal use — stock bins, assets, library books, event tickets — any valid number will do. The barcode itself does not care who issued it; only shops and marketplaces check.

Step 2: Pick the right format

The format decides how many digits the number has and where it can be scanned. The common ones:

FormatUse it forDigits (without check digit)
Code 128Your own labels, bins and assetsAny length
EAN-13Products for shops outside North America12
UPC-AProducts for the US or Canada11
EAN-8Small products with little label space7
ITF-14Outer cartons and cases13
QR codeA link or text for phone camerasA whole sentence, not just a code

If you are unsure, Code 128 is the safe choice for anything that stays inside your own business, and EAN-13 is the safe choice for a product going on a shop shelf outside North America.

Step 3: Generate the barcode

Type the number without its check digit — 12 digits for EAN-13, 11 for UPC-A, 7 for EAN-8, 13 for ITF-14 — and the generator adds the check digit automatically. The check digit is the last digit, calculated from all the others so a scanner can catch a misread. If you type the full number and the last digit is wrong, you will get a warning showing the correct digit.

A real Code 128 barcode for TEST-12345 made with the free generator
A real Code 128 barcode, made with the free generator — click it to make your own.

Make yours now — free, no sign-up.

Open the Barcode Generator

For a whole product list, use the bulk option: paste one code per line (up to 60) and download every barcode at once, or all of them together as one print-ready sheet to cut into labels.

Step 4: Print it so it scans

Most scanning failures are printing failures, not barcode failures. Four rules cover almost all of them:

Diagram showing the quiet zone — the white margin around a barcode
The quiet zone is part of the barcode. Click the image to open the generator.

Common problems

It will not scan at all: check the quiet zone first, then the size, then the contrast. One of those three is almost always the cause.

It scans, but the wrong number appears: the check digit is wrong, or the number was typed with an extra digit. Regenerate it from the number without the check digit.

It scans on your phone but not at the till: shop scanners are pickier about size and contrast than phone cameras. Print larger, on matt paper, and test again.

Barcodes vs QR codes

A barcode holds a short code — a product number, a stock code. A QR code holds a whole sentence: a link, Wi-Fi details, a block of text. If a phone camera needs to read it, use a QR code. If a shop scanner needs to read it, use a barcode. The generator on this site does both.

Written with AI assistance and reviewed by Amir Hameed