UPC Barcode Generator

Turn a 12-digit UPC-A number into a scannable barcode — the check digit is calculated or verified for you.

  • Free
  • UPC-A, 12 digits
  • Check digit verified
  • PNG + SVG
4 006381 333931
Bulk: create many barcodes at once

How to use the UPC Barcode Generator

  1. Enter the UPC number

    Type the 11 digits before the check digit, or all 12 digits printed under an existing barcode. The tool opens on UPC-A with a sample number.

  2. Let the check digit be added or verified

    With 11 digits the 12th is calculated; with 12 it is checked, and a wrong last digit shows an error instead of a barcode that would not scan.

  3. Download at print size

    Save an SVG for packaging and labels, or a PNG for listings and documents. Keep the white margins on both sides.

Your file
  • 11 or 12 digits
On your device

UPC Barcode Generator

The file is read and rewritten by code running in this tab. Nothing is sent to a server.

What you get
  • Barcode
  • PNG or SVG

What the 12 digits of a UPC-A mean

A UPC-A barcode encodes exactly 12 digits: a GS1 company prefix, an item reference chosen by that company, and one check digit. The prefix length varies — a large brand has a short prefix and room for many products, a small business a longer one. Together the first 11 digits identify one product in one size or variant; the 12th only protects against reading errors.

PartExample (036000291452)Who sets it
Company prefix + item reference03600029145GS1 assigns the prefix; the company numbers its items
Check digit2Calculated from the first 11 digits

In the bars, the 12 digits are split into a left and a right half of six digits each, framed by guard bars at the start, middle and end. Each digit is drawn as two bars and two spaces, seven modules wide. Left-half digits use patterns with an odd number of dark modules and right-half digits an even number, which lets a scanner tell which way round it is reading the code.

Work out a check digit by hand

  1. Write the 11 digits: 0 3 6 0 0 0 2 9 1 4 5.
  2. Add the 1st, 3rd, 5th, 7th, 9th and 11th digits: 0 + 6 + 0 + 2 + 1 + 5 = 14. Multiply by 3: 42.
  3. Add the 2nd, 4th, 6th, 8th and 10th digits: 3 + 0 + 0 + 9 + 4 = 16.
  4. Total: 42 + 16 = 58. The next multiple of 10 is 60, so the check digit is 60 − 58 = 2.

The generator does this for you, but the method helps when you need to check a number someone sent you.

Printing UPC barcodes

  • Size: the standard UPC-A symbol is about 37 × 26 mm. GS1 allows it to be scaled roughly between 80% and 200%; going smaller or cutting the height makes scanning less reliable.
  • Margins: keep the white space on both sides of the bars — it is part of the barcode.
  • Colour: dark bars on a light background. Red or orange bars are invisible to many laser scanners.
  • Test it with the barcode scanner or a phone before you print a full run.

Frequently asked questions

How do I turn a UPC number into a barcode?
Type the number in the field above with UPC-A selected. The barcode is drawn as you type; download it as SVG or PNG. Only digits are allowed — UPC cannot hold letters.
How is the UPC check digit calculated?
Add the digits in the odd positions (1st, 3rd … 11th) and multiply by 3, then add the digits in the even positions (2nd … 10th). The check digit is what you need to add to reach the next multiple of 10. For 03600029145: (0+6+0+2+1+5)×3 + (3+0+0+9+4) = 58, so the check digit is 2.
Why does the tool say my 12-digit UPC is invalid?
The last digit does not match the check digit calculated from the first 11, which usually means a typo. Enter just the first 11 digits to see what the check digit should be.
Can I make up a UPC for products I sell?
Not for products sold in shops or on marketplaces. Retail UPCs must come from GS1 (GS1 US in the United States), which assigns company prefixes and single product numbers. A made-up number may belong to another company’s product. For your own stock or shelves, an internal Code 128 barcode is the better fit.
What is the difference between UPC-A and UPC-E?
UPC-A is the full 12-digit barcode. UPC-E is a shortened 8-digit form for small packages that removes certain zeros from a UPC-A number; only some numbers can be compressed that way. Both are available on the main barcode generator.
Is UPC the same as EAN-13?
They are compatible: a UPC-A is an EAN-13 whose first digit is 0. Many scanners report a UPC-A as 13 digits with a leading zero, and shops outside North America scan UPC-A codes without problems.