Online barcode generator

Create UPC-A, Code 128, EAN-13, ITF-14 and other barcodes, with the check digit calculated automatically. Download as PNG or SVG.

How to use it

  1. Choose the barcode type for your use (Code 128 if you have no specific requirement).
  2. Enter the value; for UPC and EAN you can leave out the last digit.
  3. Adjust bar width, height and colors, keeping dark bars on a light background.
  4. Check the validation message and the check digit.
  5. Download as PNG for digital use or SVG for professional printing.

Barcodes for retail, inventory and shipping labels

QR codes get the attention, but the classic linear barcode still runs warehouses, checkout lanes and shipping docks: every laser scanner reads it, any label printer can print it and no phone is needed. With this tool you can create barcodes in the most common formats, choose bar width, height and colors, and download them as high-resolution PNG or vector SVG for professional printing.

Which format to choose

FormatWhat it encodesTypical use
UPC-A12 digitsRetail products sold in the US and Canada. The barcode you see on almost every grocery item.
Code 128Letters, numbers and symbolsInternal SKUs, shipping labels, packing slips, asset tags. The most versatile and compact option.
EAN-1313 digitsRetail products sold internationally. US scanners read it too.
EAN-88 digitsVery small products where a full code won’t fit.
ITF-1414 digitsOuter cases and shipping cartons (not individual retail units).
Code 39Uppercase letters, numbers, some symbolsOlder industrial, automotive and government systems; ID badges.
CodabarNumbers and some symbolsLibraries, blood banks and older logistics systems.

If you don’t have a specific requirement, use Code 128: it takes any alphanumeric SKU and produces the shortest barcode for the same content.

UPC and EAN: the tool calculates the check digit

The last digit of a UPC, EAN or ITF-14 isn’t part of the product number: it’s a check digit that lets the scanner catch reading errors. It’s calculated by multiplying the digits alternately by 3 and 1 (starting from the right), adding them up and seeing how much is needed to reach the next multiple of ten. You don’t need to do it by hand: type the first 11 digits of a UPC-A and the tool adds the 12th; type all 12 and it checks that the last one is correct and tells you what it should be if it isn’t.

Important: retail UPCs can’t be made up

You can generate any technically valid UPC here, but to sell a product through major retailers, grocery chains or marketplaces like Amazon you need a number officially assigned to you. In the US, these come from GS1 US, which sells individual GTINs (the number behind a UPC) and company prefixes for larger product lines. Using a number that doesn’t belong to you can make your product collide with another company’s in a retailer’s system, or get your listing rejected. Be cautious with cheap “resold” UPCs from third parties: many retailers verify ownership against the GS1 database.

That’s why this generator is ideal when you already have your numbers and just need the image, or for internal use: inventory labels, spare parts, school library books, lab samples or warehouse packages with Code 128.

Tips for a first-time scan

  • Contrast: dark bars on a light background. Laser scanners use red light, so red bars on white, or black bars on red, won’t scan.
  • Margins: leave white space on the left and right. Without that quiet zone the scanner can’t tell where the code starts.
  • Size: a UPC-A at 100% magnification is about 1.47 × 1.02 in (37.3 × 25.9 mm) and can generally be printed from 80% to 200%. Cutting the height (truncating) makes it harder to scan at checkout.
  • Don’t stretch it: if you need another size, use the SVG and scale it proportionally.
  • Thermal printers: on 203 dpi label printers (common for shipping labels), use a whole-number bar width (2 or 3) so each bar lines up with the printer’s dots.

Like every tool on this site, the barcode is drawn in your browser: the values you type are never sent to a server.

Frequently asked questions

Can I use these UPCs to sell on Amazon or in stores?

Only if the number was assigned to you through GS1 (GS1 US in the United States). This tool draws the barcode, but it doesn’t issue official numbers.

What’s the difference between a barcode and a QR code?

A barcode stores a small amount of data (usually a number) in one dimension and is read by laser scanners. A QR code stores much more data in two dimensions and is read by cameras.

What is the check digit?

It’s the last digit of UPC, EAN and ITF-14 codes. It’s calculated from the other digits and lets the scanner detect reading errors.

Which format should I use for inventory?

Code 128: it handles letters and numbers, it’s compact and every scanner reads it.

What resolution is the PNG?

Four times the preview size, enough for sharp labels. For any other size, use the SVG, which is vector.

More tools you might need