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

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:
| Format | Use it for | Digits (without check digit) |
|---|---|---|
| Code 128 | Your own labels, bins and assets | Any length |
| EAN-13 | Products for shops outside North America | 12 |
| UPC-A | Products for the US or Canada | 11 |
| EAN-8 | Small products with little label space | 7 |
| ITF-14 | Outer cartons and cases | 13 |
| QR code | A link or text for phone cameras | A 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.

Make yours now — free, no sign-up.
Open the Barcode GeneratorFor 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:

- Keep the quiet zone. The white margin around the bars is part of the barcode. Never crop it or print over it.
- Do not shrink it too far. Bars that blur together will not scan. Print at 3× or 4× PNG, or use SVG, which stays sharp at any size.
- Black on white. Coloured or inverted bars (white on black) confuse scanners, and glossy surfaces reflect the scanner light.
- Test before the big print run. Scan the first label with a phone camera. If it reads instantly, the rest will too.
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