Skip to content
QRCodeBarcode

Barcode generator

Free barcode generator

Create EAN-13, UPC-A, Code 128 and Code 39 barcodes with automatic check digits and real millimetre sizes. Download print-accurate SVG or a 300 DPI PNG — free, no sign-up.

1Choose a format and enter your number

Retail products sold worldwide. 12 digits + 1 check digit.

check digit is calculated for you

This tool doesn't issue GTINs. To sell through retailers and marketplaces, license your numbers from GS1 — we check the check digit, not ownership. Get GS1 numbers

Size and style · optional

Size (magnification)100% · X 0.330 mm

Digits under the bars help when a scan fails.

Bar colour
Background

Which barcode format should I use?

You want to…UseNotes
Sell products in shops worldwideEAN-13Requires a GS1 GTIN
Sell in the US or CanadaUPC-ARequires a GS1 GTIN
Label stock, SKUs, orders, shippingCode 128Letters, numbers, symbols
Tag assets for an older systemCode 39Uppercase and a few symbols
Link to a web page or menuQR codeQR generator

Printing barcodes that scan

  • Print at 100 %. Turn off “fit to page” — scaling changes bar widths.
  • Keep the quiet zones. The white margins left and right of the bars are part of the barcode; our files include them.
  • Dark bars on a light background. Red, orange and yellow bars are invisible to most checkout scanners.
  • Don't squash it. Reduce height only if you must; EAN/UPC can be scaled from 80 % to 200 % as a whole.
  • Test a sample. We decode every code on screen, but ink, paper and printer matter. We don't certify print quality.

Need hundreds? Use the bulk barcode generator with a CSV file.

Frequently asked questions

Which barcode do I need to sell in shops?

Retailers scan EAN-13 (most of the world) or UPC-A (US and Canada). Both need a GTIN licensed from GS1. For your own stockroom, shipping or SKUs, Code 128 is the usual choice.

Can I make up my own EAN-13 number?

Not for selling through retailers or marketplaces — they check GTINs against GS1 data. Numbers starting with 20–29 are reserved for in-store use, such as weighed items in your own shop.

Why is my barcode not scanning?

The usual suspects: it was scaled when printing, the margins (quiet zones) were cropped, the bars are red or orange, or it was printed too small. Print the SVG at 100 % and test before a big run.

Is SVG or PNG better for barcodes?

SVG. It's a vector file with exact millimetre dimensions, so bars stay crisp at any size. Our PNGs are 300 or 600 DPI with whole-pixel bar widths for when a vector isn't possible.