Barcode generator

Type a number or a code, choose the kind of barcode, and download it as an SVG that prints at an exact size or a PNG at 300 or 600 dpi. Check digits are worked out for you, and everything is made in your browser.

  • Free
  • No sign-up
  • Nothing uploaded
Loading the tool…
  • 7 kinds: EAN, UPC, ITF-14, Code 128, Code 39
  • Check digits added and verified
  • Exact bar width and height in mm
  • SVG and PNG at 300 or 600 dpi

How to make a barcode

Four steps, start to finish.

  1. 1

    Choose the kind

    EAN-13 or UPC-A for retail products, ITF-14 for cartons, Code 128 or Code 39 for labels and inventory.

  2. 2

    Type what it holds

    For EAN and UPC, type the number without its last digit and the check digit is added. Type it with the check digit and it is verified.

  3. 3

    Set the print size

    Pick the bar width (X-dimension) and the bar height in millimetres. The size with its margins is shown under them.

  4. 4

    Download and test

    Save an SVG for print or a PNG at 300 or 600 dpi, then scan a printed copy before you print a batch.

Which barcode do you need?

The barcodes the tool makes
KindHoldsUsed for
EAN-1313 digitsRetail products around the world
UPC-A12 digitsRetail products in the US and Canada
EAN-88 digitsSmall packs with little room for a code
UPC-E8 digits (a shortened UPC-A)Small US packs
ITF-1414 digitsOuter cases and cartons
Code 128Letters, digits and symbolsShipping labels, inventory, serial numbers
Code 39Capitals, digits and a few symbolsAsset tags and older scanners

If a shop, a distributor or a marketplace asked for a barcode on your product, they usually mean an EAN-13 or a UPC-A carrying your product's GTIN (Global Trade Item Number). For a carton of several products, the GTIN-14 goes in an ITF-14. For anything that stays inside your own business, such as stock labels, asset tags or tickets, Code 128 is the usual choice: it holds letters as well as digits and stays compact.

The number in a retail barcode

A retail barcode is only as good as the number in it. That number, the GTIN, identifies your product in shops' and marketplaces' systems, and it must be unique. GS1 UK says it plainly: if you sell your products in store or online, you need a barcode number, and GS1 is the only authorised provider of unique GTINs. GS1 US issues them in the United States, one at a time or in blocks.

This tool doesn't issue numbers: it draws the barcode for a number you already have. Get the number from GS1 (or from the retailer, for their own-brand codes), then come here to make the barcode at the size you need.

Check digits

The last digit of an EAN, UPC or ITF-14 number is a check digit, worked out from the others so that a scanner can catch a misread. Leave it off and the tool works it out and adds it; type it and the tool checks it, and tells you the right digit if it doesn't match. A UPC-E's check digit comes from the full UPC-A number it stands for, which the tool works out too.

Getting the print size right

A barcode is measured in modules: the width of its narrowest bar, called the X-dimension. The tool lets you pick it from 0.25 mm to 1 mm, and the bar height in millimetres, then shows the size of the whole code with its quiet zones. The SVG is drawn in millimetres, so it prints at exactly that size from a design or label program. The PNG gives every bar a whole number of pixels at 300 or 600 dpi, so the edges stay sharp; the tool shows the bar width that results.

  • Keep the quiet zones. The white space at each end tells the scanner where the code starts and stops. Don't crop it or print over it.
  • Dark bars on a light background. GS1 US asks for dark bars and advises against red or reddish ones: scanners use red light, and red bars can look like the background. The tool warns you about pale, inverted or red bars.
  • Don't stretch a retail code out of shape. GS1 US notes that a UPC's height and width are linked, and that shrinking or enlarging the art can stop it scanning. Change the X-dimension here instead and download it again.
  • ITF-14 comes with bearer bars, a thick frame around the code and its quiet zones. The tool draws it for you.

Before you print a whole run of labels or packaging, print one and scan it with the scanner, app or till that will read it. For labels with your logo and product details around the code, place the SVG on a design in Layquil's editor.

Updated

Barcode generator: common questions

What people ask before they use it.

Is the barcode generator free?

Yes, with no account and no limit. The barcodes you download carry no mark of ours.

Can I use these barcodes on products I sell in shops?

The barcode itself, yes, as long as the number in it is yours to use. Retail barcodes carry a GTIN, which GS1 issues; this tool draws the code for the number you have but doesn't issue numbers.

What's the difference between EAN-13 and UPC-A?

UPC-A holds 12 digits and is used mainly in the US and Canada; EAN-13 holds 13 and is used around the world. A UPC-A is the same as an EAN-13 that starts with 0.

Which barcode should I use for inventory or shipping labels?

Code 128 is the usual choice: it holds letters, digits and symbols and stays compact. Code 39 is older and wider, but some scanners and systems still ask for it.

Should I download SVG or PNG?

SVG for print: it prints at the exact size you set and stays sharp. PNG for documents and programs that don't take SVG, at 300 or 600 dpi.