Skip to content
CentNook
Menu

Barcode generator

Type a number or text, pick the barcode type, and download a sharp PNG or SVG ready for labels and packaging. UPC and EAN check digits are worked out for you, and you can make a whole batch from a list.

Make

Enter 11 digits and the check digit is added, or all 12 to have it checked.

UPC-A barcode
UPC-A barcode for 012345678905
0 12345 67890 5 · check digit 5 is correct
Barcode type
UPC-A
Full number
012345678905
Check digit
5 (verified)
Number system 0
Regular product number (GS1 US range)
Size
1.47 × 1.02 in (37.3 × 25.9 mm)
Bar width
100% · 13.0 mil (0.330 mm)
PNG at 300 DPI
452 × 314 px

Sizes are for the SVG, which keeps them exactly. The PNG rounds each bar to whole pixels: at 300 DPI that’s 4 px, or 0.339 mm.

Selling in stores or on marketplaces? Retail UPC and EAN numbers must be licensed from GS1 (GS1 US in the United States) so that they’re unique to your product. This tool draws the barcode for a number you already have; it doesn’t issue numbers. Test-scan a printed sample before a full print run.

Size

100% (0.33 mm bars) is the GS1 standard. Store checkouts accept 80% to 200%.

Units

Leave empty for the GS1 standard height.

Added on every side. The blank quiet zone scanners need is always kept.

Colors

  • Nothing is uploaded
  • Free, no sign-up
  • Works on phone and desktop

How to make a barcode

  1. 1

    Pick the barcode type: UPC-A or EAN-13 for products sold in stores, Code 128 or Code 39 for your own labels.

  2. 2

    Type the number or text. For UPC and EAN you can leave off the last digit, and the check digit is worked out for you.

  3. 3

    Set the size. 100% is the standard for UPC and EAN; pick the DPI of your printer for the PNG.

  4. 4

    Download a PNG for labels and listings or an SVG for packaging artwork. Need hundreds? Switch to a batch from a list.

Features

  • Five barcode types

    UPC-A, EAN-13, EAN-8, Code 128 and Code 39, each drawn to its published pattern with the quiet zones scanners need.

  • Check digits handled

    Leave the check digit off and it’s added. Type it in and it’s verified, with a plain explanation if it doesn’t match.

  • Print-ready sizes

    Sizes in inches or millimeters. SVGs open at their exact size; PNGs snap every bar to whole printer dots.

  • Batch to ZIP

    Paste up to 500 values, one per line, and download every barcode as PNG or SVG files in one ZIP.

Which barcode do you need?

The barcode type follows from where it will be scanned. Store checkouts read the GS1 retail barcodes (UPC and EAN), which hold only digits. Warehouses, offices and repair shops scan their own labels, where Code 128 is the usual choice.

TypeHoldsTypical use
UPC-A12 digitsProducts sold in stores in the US and Canada
EAN-1313 digitsProducts sold in stores elsewhere; books (ISBN)
EAN-88 digitsVery small retail packs
Code 128Any keyboard textShipping labels, inventory, asset tags
Code 39Digits, capitals, space and - . $ / + %Older industrial and government systems

Each format has its own page with more detail: the UPC barcode generator, the EAN-13 barcode generator (including ISBN book barcodes) and the Code 128 barcode generator.

Where UPC and EAN numbers come from

A retail barcode is only as good as the number inside it. UPC and EAN numbers are GTINs (Global Trade Item Numbers), and each one is made of a GS1 company prefix, an item number the company chooses, and a check digit. GS1 is the nonprofit standards body that licenses those prefixes; in the United States that's GS1 US, which also offers single numbers for businesses with only a few products. Prices and options change, so check them on GS1 US's own site.

This generator draws the barcode for a number you already have. It doesn't issue numbers, and it can't tell whether a number is registered to you. Be wary of very cheap numbers resold online: GS1's records still name the company that first licensed them, which can cause trouble with retailers and marketplaces that check.

How the check digit works

The last digit of every UPC and EAN is a check digit, so a scanner can tell when it has misread a bar. Take the UPC 03600029145: starting from the right, the digits in alternate positions add up to 14, and three times that is 42. The other digits add up to 16, for a total of 58. The next multiple of ten is 60, so the check digit is 2 and the full number is 036000291452. Type a full number into the generator and it checks the last digit the same way; a mismatch nearly always means a typo.

Getting it to scan

  • Keep the size in range. UPC and EAN barcodes can be printed from 80% to 200% of the standard size. Code 128 and Code 39 have no fixed size, but bars thinner than about 7.5 mil (0.19 mm) need a sharp printer.
  • Leave the quiet zones blank. The empty space at each end tells the scanner where the barcode starts and stops. The downloads include it; don't crop it off or print text in it.
  • Use dark bars on a light background. Most scanners light the code with red light, so red, orange and yellow bars all but disappear. Black or dark blue on white is safest.
  • Match the printer. Pick 203 or 300 DPI to match a thermal label printer, or 300 to 600 DPI for office and commercial printing, and place the image at 100% rather than stretching it.
  • Test before a print run. Scan a printed sample with the scanner that will be used, or at least a phone app. This page can't certify that a barcode will pass a retailer's verification.

Making many barcodes at once

Choose A batch from a list, paste up to 500 values (one per line, straight from a spreadsheet column) and the generator checks each one. Lines with problems are listed with the reason, and you can remove them in one click. Every barcode in the ZIP is named after its value, so 012345678905.png is the barcode for 012345678905.

Pricing those products? Work out a selling price from your cost with the markup calculator, check what you keep with the margin calculator, and plan a sale with the discount calculator.

Frequently asked questions

How do I make a barcode for free?

Choose the barcode type, type your number or text, and download the PNG or SVG. There’s no sign-up and nothing is uploaded: the barcode is drawn in your browser. For a product you’ll sell in stores, you first need a UPC or EAN number licensed from GS1.

Can I make up my own UPC number?

Not for anything sold in stores. A UPC has to be unique worldwide, so retailers expect numbers licensed from GS1 (GS1 US in the United States), and many marketplaces check codes against GS1’s records. A made-up number may already belong to another company’s product. For your own stock bins, inventory or asset tags, use Code 128, which can hold any text you like.

What is the difference between UPC and EAN?

A UPC-A has 12 digits and is used mainly in the United States and Canada; an EAN-13 has 13 digits and is used almost everywhere else. Checkout scanners read both. A UPC becomes an EAN-13 by adding a 0 in front: 036000291452 is the same product as 0036000291452, and the bars are identical.

Which barcode type should I use?

For products sold in stores, use the type your GS1 number is for: UPC-A in the US and Canada, EAN-13 elsewhere, and EAN-8 only for very small packs. For shipping labels, inventory and asset tags, use Code 128: it holds letters, digits and symbols and stays compact. Use Code 39 when an older system or a customer asks for it.

What size should a barcode be?

For UPC and EAN-13, the standard 100% size is about 1.47 inches (37.3 mm) wide including the quiet zones and about 1.02 inches (25.9 mm) tall including the digits, and store checkouts accept 80% to 200% of that. Code 128 and Code 39 have no fixed size: the width depends on the text and the bar width you pick, so choose bars your printer can print sharply and leave the height at least half an inch.

How is a UPC or EAN check digit worked out?

Starting with the rightmost digit, multiply every other digit by 3, add the remaining digits, and the check digit is whatever brings the total up to the next multiple of 10. For 03600029145, the total is 58, so the check digit is 2.

Is PNG or SVG better for printing?

SVG is a vector file: it stays sharp at any size and opens at its exact size in design apps, so it’s the best choice for packaging artwork. PNG works everywhere, including label software and marketplace listings. Choose your printer’s resolution (often 203 or 300 DPI for thermal label printers) so each bar is a whole number of printer dots.

More free tools