Barcode Generator

The barcode is drawn as you type. Download it as a PNG or SVG at print size.

Barcode type

English letters, digits and common punctuation. The usual choice for SKUs and serial numbers.

Type or paste your text.

Example: Code 128 barcode for Type hereExample

52.2 × 16.6 mm (2.05 × 0.65 in)PNG 1232 × 392 px at 600 dpi

Size
Bar height

Which type to use

If a store, marketplace or customer asks for a barcode, check which type they need. If the barcode is for your own use, such as inventory, assets or tickets, choose Code 128.

Code 128
Holds English letters, digits and common punctuation, up to 80 characters here. Long runs of digits are packed two to a symbol, which keeps the barcode short.
UPC-A
The 12-digit product barcode of US and Canadian stores. Type 11 digits to have the 12th worked out, or all 12 to have it checked.
EAN-13
The 13-digit product barcode used in most other countries, and for ISBNs on books.
Code 39
Holds capital letters, digits, spaces and - . $ / + %, up to 40 characters here. It is wider than Code 128 for the same text, so use it when a system asks for it.
ITF-14
The 14-digit barcode on cartons of barcoded products, drawn with its frame. For a carton of several units, use the number assigned to the carton.

How the check digit works

The last digit of a UPC-A, EAN-13 or ITF-14 is worked out from the others, so a complete number with one wrong digit fails the check. For 03600029145: starting from the right, add every other digit (5 + 1 + 2 + 0 + 6 + 0 = 14) and multiply by 3 (42). Add the digits in between (4 + 9 + 0 + 0 + 3 = 16). The total is 58, and it takes 2 to reach the next multiple of ten, so the check digit is 2 and the whole number is 036000291452.

Before you print

Keep the white margins
The blank space at each end of the bars is part of the barcode. The files include it, so do not crop it or let text or graphics run into it.
Do not stretch it
Change the size here, or scale width and height together. Squeezing it sideways changes the bar widths a scanner measures.
Print it at its size
Set the image in your document to the size shown under the barcode. The SVG is sized in millimeters, and the PNG is 600 dpi with every bar edge on a whole pixel, so the bars in the PNG have no blurred edges.
Black on white, then test
Dark bars on a light, matte background scan best. Print one and scan it before you print a batch.

Where product numbers come from

A UPC-A or EAN-13 on a product for sale is not a number you make up. GS1, the organization that manages product numbers worldwide, licenses them so no two products share a number. This page draws the barcode for a number you already have; it cannot issue or register one. If a store or marketplace asks for a UPC, EAN or GTIN, get your numbers from GS1 US (gs1us.org) or the GS1 office in your country (gs1.org). A book’s EAN-13 is its ISBN-13, which comes from your country’s ISBN agency rather than GS1. For barcodes used only inside your own business you can number things any way you like.

How these barcodes are checked

Each type is tested by generating barcodes and reading them back with an independent decoder: every character the page accepts for Code 128 and Code 39, every pair of digits, every digit in every position of a UPC-A, EAN-13 and ITF-14, and samples of each type at all four sizes. Check digits are tested against the examples GS1 publishes. Your printer and label still matter, so scan a printed sample before a large run.

Barcode questions

Is this barcode generator free?

Yes. There is no account, no watermark and no limit on how many barcodes you make.

Why won’t my barcode scan?

The usual causes are cropped margins, a barcode stretched in one direction, a print too small or too faint for the scanner, a glossy or curved surface, or a scanner that is not set to read that type. Try a larger size, print on matte paper, and check that the scanner reads the type you chose. If you test with a phone, use a barcode scanner app that reads the type you chose. If it scans but the store does not recognize the product, check the number against your product records. The store also needs that number in its product catalog.

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

They are one system. A UPC-A has 12 digits and an EAN-13 has 13, and a UPC-A has the same pattern of bar and space widths as the EAN-13 made by putting a 0 in front of it, with the digits printed in different places. Stores in the US and Canada expect UPC-A; most other countries expect EAN-13.

Can I make a QR code here?

No. This page makes linear barcodes, the kind with vertical bars. A QR code is a different kind of code and needs a QR code generator.

Can I make many barcodes at once?

No. This page makes one barcode at a time.

Is what I type sent anywhere?

No. The barcode is drawn in your browser, so what you type is not uploaded to make it, and it is not saved.