DoraPDF / Blog

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

By the DoraPDF team · 4 min read · Updated 2026-11-25
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:

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:

How to make and print the labels

  1. Open the Barcode Generator.
  2. Type the value, such as your SKU or a GS1-issued number.
  3. Choose the format. The barcode updates as you type, with the value printed in readable text underneath.
  4. Click Download PNG.
  5. 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

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

Guide

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.

Guide

Free 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.

Guide

How 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.