Free online tool

Barcode generator

Type your data, pick a barcode type and download a clean PNG or SVG. Check digits are calculated for you, and nothing is sent to a server.

Dark bars on a light background scan best. Check the result with the barcode decoder before you print a batch.

How to make a barcode

Choose the type, type the data, and the barcode draws itself on the right as you type. If the data does not fit the format (a letter in a UPC, an odd number of digits in Interleaved 2 of 5) the preview tells you at once. Download a PNG or SVG, print one copy, and scan it before you print the rest.

Barcode types you can create

TypeHoldsUse it for
UPC-A12 digitsRetail products in the US and Canada
EAN-1313 digitsRetail products everywhere else
EAN-8, UPC-E8 digitsVery small retail packs
ISBN13 digits, optional price add-onBooks
Code 128Any textShipping labels, asset tags, order numbers
GS1-128GS1 fieldsPallet and carton labels with dates and lots
ITF-1414 digitsOuter cartons, printed straight onto cardboard
Code 39, Code 93Capitals and digitsOlder industrial and military systems, name badges
CodabarDigits and a few symbolsLibraries, blood banks, older courier labels
QR CodeUp to about 2,900 charactersLinks, Wi-Fi, contact cards, payments
Data MatrixUp to about 2,300 charactersSmall parts, medicine packs, medical devices
PDF417Up to about 1,800 charactersID cards, tickets, forms
AztecUp to about 3,000 charactersRail and airline mobile tickets

Getting a barcode that scans the first time

Most printed barcodes that fail were fine as files and got damaged on the way to paper. Four habits prevent nearly all of it.

Keep the blank margin on each side. It is called the quiet zone and it is part of the barcode, so do not crop it or let text run into it. Stick to dark bars on a light background: black on white is safest, red bars are invisible to many laser scanners, and light bars on a dark background fail on most. When you resize, drag a corner so the width and height change together. And print on a thermal or laser printer if you can, because inkjet ink bleeds on plain paper and thickens the bars.

Then scan the printed label with the barcode scanner from the distance it will be used at.

Numbers for products you sell

A barcode is only a picture of a number. For internal use you can invent the numbers. For retail, the number must be a GTIN issued under a company prefix that you license from GS1, otherwise retailers will reject it or it will clash with another company’s product. What is a GTIN? and what UPC numbers mean explain how those numbers are built.

FAQ

Barcode generator: questions and answers

Which barcode type should I use?

For products sold in stores, UPC-A in the US and Canada and EAN-13 elsewhere. For shipping labels, asset tags and anything with letters, Code 128. For links and contact details, QR Code. For cartons, ITF-14. For tiny parts and healthcare, Data Matrix. The types of barcodes guide compares them.

Can I use a generated UPC or EAN to sell my product in stores?

The image is fine, but the number has to be yours. Retailers and marketplaces such as Amazon check that a UPC or EAN belongs to a company prefix licensed from GS1. Get your numbers from your national GS1 office first, then generate the barcode here. For internal use, such as your own stockroom, any number works.

Does the generator calculate the check digit?

Yes. Enter 11 digits for UPC-A, 12 for EAN-13, 7 for EAN-8 or 13 for ITF-14 and the last digit is added. If you enter the full number with a wrong check digit, you get an error, so a bad barcode does not reach print.

PNG or SVG: which should I download?

SVG for print. It is a vector file, so it stays sharp at any size, and it is what a packaging designer or print shop will ask for. PNG for documents: it drops straight into Word, Excel, Google Docs and label software. Do not stretch a PNG barcode unevenly, because changing the bar widths makes it unreadable.

How big should I print a barcode?

A UPC-A or EAN-13 at 100% is about 37 mm wide and 26 mm tall, and the standard allows 80% to 200% of that. Keep clear white space on both sides, roughly 3 to 4 mm at full size. QR codes should be at least 2 cm across for scanning at arm’s length. Then test the print with the online barcode scanner.

Are the barcodes free to use commercially?

Yes. Barcode formats are open standards and the images you generate here are yours, with no watermark and no attribution needed. Nothing you type is sent to a server.