Guides

How to Make a Barcode: Code 128 vs EAN-13 vs UPC (Free)

Most barcode problems come from choosing the wrong type or printing it too small. Here is how to pick the format and make one that scans.

By · · 2 min read

Contents
  1. How to make a barcode in 3 steps
  2. Which barcode type should you use?
  3. Do I need to buy barcodes for products?
  4. What is the check digit?
  5. Printing barcodes that scan first time
  6. Barcode or QR code?

You can make a barcode in under a minute — the work is choosing the right type. A shipping label, a product on a shop shelf and an asset tag on a laptop all use different barcodes.

Make one now: our free barcode generator creates Code 128, EAN-13, UPC-A, Code 39 and ITF-14 barcodes and downloads them as SVG or PNG.

How to make a barcode in 3 steps

  1. Choose the barcode type (see the table below).
  2. Type the number or text. The preview updates as you type and shows an error if the data does not fit the type.
  3. Download as SVG for printing (stays sharp at any size) or PNG for documents and web pages.

Which barcode type should you use?

TypeWhat it holdsUse it for
Code 128Letters, numbers and symbols, variable lengthShipping labels, inventory, internal stock codes
EAN-1313 digits (last one is a check digit)Retail products sold outside the US and Canada
UPC-A12 digits (last one is a check digit)Retail products sold in the US and Canada
Code 39Capital letters, numbers, a few symbolsOlder industrial and government systems, ID badges
ITF-1414 digitsOuter cartons and cases of products

For your own stock, asset tags or shipping, Code 128 is almost always the right choice.

Do I need to buy barcodes for products?

To sell in shops and on most large marketplaces, EAN and UPC numbers must come from GS1, the organisation that issues company prefixes in each country. A generator draws the barcode, but it cannot give you a registered product number. For internal use (stock rooms, libraries, asset tracking) you can use any numbers with Code 128.

What is the check digit?

The last digit of EAN-13 and UPC-A is calculated from the other digits, so a scanner can tell when it misread one. Enter the first 12 (EAN) or 11 (UPC) digits and the generator adds the check digit for you.

Printing barcodes that scan first time

  • Keep the quiet zone: leave blank space on both sides of the bars; text or borders too close stop scans.
  • Do not shrink too far: retail barcodes have minimum sizes; very small prints fail on cheap scanners.
  • Black bars on white: red bars are invisible to most laser scanners, and low contrast fails.
  • Print a test and scan it with a phone or the real scanner before printing a full batch.

Barcode or QR code?

Barcodes hold a short number and are read by retail and warehouse scanners. QR codes hold much more (a web address, Wi-Fi details) and are read by phone cameras. Need one? Use the QR code generator.

Frequently asked questions

Is this barcode generator free for commercial use?

Yes. The barcode image is yours to use; for retail product numbers you still need GS1-issued numbers.

What is the difference between EAN-13 and UPC-A?

UPC-A has 12 digits and is used mainly in the US and Canada; EAN-13 has 13 digits and is used in most other countries. Scanners in shops read both.

Which format is best for printing?

SVG, because it is a vector image and stays sharp at any size.

Why won't my barcode scan?

Usually it is printed too small, too close to other text (no quiet zone), with low contrast, or the scanner is set up for a different barcode type.

#barcode#ecommerce#inventory