DoraPDF / Blog

Free Barcode Generator: Make EAN-13, UPC-A, Code 128 and ITF-14 Barcodes

By the DoraPDF team · 4 min read · Updated 2026-11-17
Free Barcode Generator: Make EAN-13, UPC-A, Code 128 and ITF-14 Barcodes

Whether you're labelling stock on a shelf, numbering assets in an office, or preparing packaging for a small product, you'll eventually need a barcode. DoraPDF's Barcode Generator creates the most common types online, for free, and lets you download each one as a PNG image.

The tricky part isn't generating a barcode. It's choosing the right type and using the right number. This guide covers both.

The barcode types you can create

Format What it encodes Typical use
CODE128 Any text: letters, numbers, symbols Internal stock labels, shipping and asset tags
EAN-13 12 or 13 digits Retail products in most of the world
UPC-A 11 or 12 digits Retail products in the US and Canada
CODE39 Capital letters, digits and a few symbols Older warehouse, industry and ID systems
ITF-14 14 digits Outer cartons and cases of products

If you enter 12 digits for EAN-13 or 11 for UPC-A, the generator calculates and adds the final check digit for you. If you enter the full number, the check digit must be correct or the tool shows an "Invalid value" warning.

How to make a barcode

  1. Open the Barcode Generator.
  2. Type your Value: a product number, SKU, asset tag or any code.
  3. Choose the Format from the list.
  4. The barcode is drawn instantly on a white background, with the human-readable number printed underneath.
  5. Click Download PNG to save it as barcode.png.

Repeat for each code. Because nothing has to upload, generating dozens of labels one after another is quick.

Which barcode type should you use?

For your own inventory: CODE128

If the barcode will only be scanned inside your own business, CODE128 is usually the best pick. It accepts any text (for example SHOP-A-0042 or LAPTOP-HR-07), it's compact, and virtually every modern scanner reads it. Most point-of-sale and inventory apps let you assign your own codes to products.

For products sold in shops: EAN-13 or UPC-A, with a real number

Here's the important part: generating an EAN or UPC barcode image is easy; getting a valid number is not something a generator can do. Retailers and marketplaces expect product numbers that are registered to your company, usually through GS1, the organisation that manages these codes worldwide. A made-up 13-digit number will scan, but it may clash with another company's product and can be rejected by stores and online marketplaces.

So the right order is: obtain your official numbers first, then use the generator to turn them into barcode images for your packaging.

For cartons: ITF-14

Outer boxes that hold several units often carry an ITF-14 code. It's designed to print well even on corrugated cardboard.

For legacy systems: CODE39

Choose CODE39 only if an existing system or customer specifically asks for it. It's wider than CODE128 for the same content.

Printing tips so barcodes actually scan

Barcode or QR code?

Barcodes hold a short code that points to a record in your system, and they're what most checkout scanners expect. A QR code holds much more (a full web address, Wi-Fi details or contact card) and is read by phone cameras. If you want customers to scan with their phones to open a menu or a website, make a QR code with the QR Code Generator instead.

Putting barcodes to work in a small business

Privacy

Barcodes are generated in your browser. Your product numbers and codes are not sent to a server.

FAQ

Is this barcode generator free for commercial use? Yes. The barcode images you create are yours to use on labels and packaging. Remember that retail EAN/UPC numbers themselves should be officially registered.

Why do I see "Invalid value"? The value doesn't fit the format: for example letters in an EAN-13, the wrong number of digits, or a wrong check digit. Check the length or switch to CODE128.

Can I make an EAN-13 barcode for Amazon or a supermarket? You can make the image here, but use a number registered to your brand. Marketplaces and retailers check product codes.

What size should I print a barcode? Keep the proportions of the downloaded PNG and avoid shrinking it too much. Test-scan a printed sample at your intended size before printing a batch.

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

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

Internal stock labels or retail barcodes? When Code 128 is enough, when you need GS1 EAN/UPC numbers, and how to print labels that scan.

Guide

Free Receipt Generator: Create a Simple PDF Receipt for Your Sales

Make clean PDF receipts for your shop, freelance work or home business: items, tax, discount, PKR/USD/EUR/GBP/AED. Free, no sign-up, private.