Generate Barcodes for Products and Inventory: Which Type and How to Print

When small businesses start to grow, stock gets harder to track by eye. Barcodes fix that: scan, and the right item appears in your inventory sheet or point-of-sale app. But before you generate barcodes for your products, you need to answer one question that decides everything else: are these barcodes for your own inventory, or for selling through other retailers and marketplaces? The answer changes which barcode type you use and where the numbers come from.
Two very different jobs
Internal inventory barcodes live inside your business: shelf labels, bin locations, stock items, equipment tags, files. You decide the codes, such as TSHIRT-RED-M or BIN-A-04, and only your own scanners read them. You can make as many as you like, for free.
Retail product barcodes (EAN-13 in most of the world, UPC-A mainly in the US and Canada) are read by shops and marketplaces you do not control. Their numbers must be globally unique, which is why they are issued through GS1, the organisation that manages these numbers. Large retailers and marketplaces such as Amazon generally expect valid GS1-issued numbers for most products. Requirements differ by retailer and country, so always check the rules of the place you are selling.
The Barcode Generator makes the barcode image in both cases. What it cannot do is issue official numbers: if you need a retail EAN or UPC, get the number from GS1 first, then turn it into a barcode.
Which barcode format to use
The generator supports five formats:
- CODE128: any text, letters and numbers, compact. The best default for internal inventory and SKU labels.
- CODE39: an older format that encodes capital letters, numbers and a few symbols. Use it only if your existing scanner or software expects it.
- EAN-13: 12 or 13 digits. The standard retail product barcode in most countries.
- UPC-A: 11 or 12 digits. The retail standard in the US and Canada.
- ITF-14: 14 digits, used on outer cartons and shipping cases.
For EAN-13 and UPC-A, you can enter the number without the last digit and the check digit is calculated for you. If you enter the full number and the check digit is wrong, or the number has the wrong length, the tool shows an "Invalid value" warning instead of a barcode, which catches typos before you print.
Planning your internal codes
A little planning saves a lot of re-labelling later:
- Keep codes short. Shorter values make narrower barcodes that fit small labels and scan more reliably.
- Make them meaningful but consistent. A pattern like
CATEGORY-COLOUR-SIZE(for exampleTS-RED-M) is readable by humans too. - Avoid characters that look alike. Mixing O and 0, or I and 1, causes mistakes when someone types a code by hand.
- Keep a master list. A spreadsheet with code, product name, location and stock count is the heart of the system. The barcode only points to a row in that list.
How to make and print the labels
- Open the Barcode Generator.
- Type the value, such as your SKU or a GS1-issued number.
- Choose the format. The barcode updates as you type, with the value printed in readable text underneath.
- Click Download PNG.
- Repeat for each product.
To print several labels on one sheet, place the PNGs into a document or label template in your word processor, or combine them into pages with Images to PDF and print.
Printing tips so they scan first time
- Do not squash or stretch the image. Scale width and height together. Distorted bars are the most common reason for failed scans.
- Keep the white margin. The empty space on both sides (the quiet zone) is part of the barcode.
- Use black on white. Coloured or low-contrast prints may not be read.
- Print sharp. A laser printer or a thermal label printer gives the cleanest edges. Avoid blurry inkjet prints on glossy paper.
- Test before printing a batch. Scan one label with your actual scanner or phone app, then print the rest.
Where QR codes fit in
Barcodes are made for scanners and hold short codes. A QR code can hold a web link, which is better for customers: put one on packaging that links to instructions, a warranty page or your shop. Make those with the QR Code Generator, and keep barcodes for stock control and checkout.
Common problems and fixes
"Invalid value for EAN13". The number is the wrong length, contains letters, or has a wrong check digit. Enter 12 digits and let the check digit be added.
My scanner reads nothing. Check the size and contrast, make sure the margin is not cropped, and confirm the scanner supports the format you used.
The barcode is too wide for my label. Shorten the value, or use CODE128 instead of CODE39, which is usually more compact.
Privacy
Barcodes are created in your browser. Your product codes and SKUs are not uploaded to our server.
FAQ
Can I make my own EAN-13 numbers? You can generate an image from any 12 or 13 digits, but for selling in retail stores and marketplaces you normally need numbers issued by GS1 so they are unique worldwide.
Which format is best for a small shop's own stock? CODE128. It accepts letters and numbers and stays compact.
Can a phone scan these barcodes? Yes, many phone scanner and inventory apps read CODE128, EAN-13 and UPC-A.
Is the Barcode Generator free for commercial use? Yes, with no limit and no watermark.
Try the tools from this guide — free
Keep reading
QR Codes for Wi-Fi, Restaurant Menus and Business Cards: A Practical Guide
Make a Wi-Fi QR code guests can scan to connect, a menu QR code for tables, and a QR for your business card. Free, printable PNG, no sign-up.
GuideFree Barcode Generator: Make EAN-13, UPC-A, Code 128 and ITF-14 Barcodes
Create CODE128, EAN-13, UPC-A, CODE39 and ITF-14 barcodes online and download them as PNG. Learn which barcode type to use and how to print it well.
GuideHow to Make a QR Code for Your Business (WiFi, WhatsApp, Links)
Create free QR codes that let customers join your WiFi, message you on WhatsApp or open your website.