Make a UPC-A Barcode From Your 11 or 12 Digits

Type the first 11 digits and the 12th, the check digit, is added. Type all 12 and it is checked. Download a PNG, or an SVG sized for print.

  • Free, no sign-up
  • GS1 print sizes
  • PNG and SVG
  • Made in your browser

1Enter 11 or 12 digits

11 digits (the check digit is added) or 12 digits (it is checked).

Your barcode

Your number, digit by digit

Size and style options

Bars are always black, because scanners need strong contrast. The standard white margin is part of the barcode: leave it on unless you are placing the image in your own layout with space around it. For retail print, choose Extra tall to keep GS1's proportions.

Make many at once

Put one value on each line. It uses the barcode type and options chosen above and downloads one ZIP with a file for every line (up to 200 lines).

Barcode type for this list: UPC-A

What the 12 digits of a UPC-A mean

A UPC-A barcode holds a 12-digit GTIN-12. After the first digit comes your company prefix from GS1 US, usually 6 to 10 digits long, then the item number you assign, and finally the check digit. All 12 digits are in the bars; the first and last are printed outside them in smaller type.

What the first digit of a UPC-A tells you
First digitUsed for
0, 1, 6, 7, 8, 9Regular product numbers from GS1 US
2Items weighed and priced in the shop, such as meat and cheese
3Medicines (US drug codes)
4A shop's own in-store numbers
5Coupons

How the UPC-A check digit is calculated

Multiply the first 11 digits by 3 and 1 in turn, starting with 3, add the results, and find how much is needed to reach the next multiple of 10. That amount is the check digit. The working below uses the number you typed.

UPC-A or EAN-13?

A UPC-A is an EAN-13 with a leading 0, so scanners around the world read both. Print what your GS1 office gave you: a 12-digit number from GS1 US or GS1 Canada as UPC-A, and a 13-digit number from any other GS1 office as EAN-13 with the EAN-13 generator.

UPC-A barcode size for print

Shop scanners read UPC-A from 80% to 200% of the standard size. The whole symbol includes a white margin of 9 bar widths on each side; keep it clear of text and edges. Download the SVG and scale it to a width below.

UPC-A sizes from 80% to 200%
SizeThinnest barWidth with marginsBar height
80% (smallest)0.264 mm29.83 mm18.28 mm
90%0.297 mm33.56 mm20.57 mm
100% (standard)0.330 mm37.29 mm22.85 mm
120%0.396 mm44.75 mm27.42 mm
150%0.495 mm55.94 mm34.28 mm
200% (largest)0.660 mm74.58 mm45.70 mm

Worked out from GS1's bar width of 0.330 mm and bar height of 22.85 mm at 100% (GS1 General Specifications, as published by GS1 UK).

Small packs and UPC-E

UPC-E squeezes certain UPC-A numbers into a 6-digit barcode for very small packs by leaving out zeros. Only some numbers can be compressed that way, and this page doesn't make UPC-E. Ask GS1 US whether your number qualifies before you design a small pack.

Frequently asked questions

Is this UPC barcode generator free?

Yes, with no sign-up and no watermark. The number must still be yours: UPC numbers come from GS1 US or GS1 Canada.

How do I get a UPC number?

License one from GS1 US, or GS1 Canada. GS1 US offers single numbers for a few products and company prefixes for many; check their current prices. A generator can't issue a number.

Do I type the check digit?

Either way works. Type 11 digits and it is added; type 12 and it is checked, and you're told the right digit if yours is wrong.

Why are the first and last digits outside the bars?

All 12 digits are in the bars. By convention the first digit, the number system, and the last, the check digit, are printed outside in smaller type so the rest stands out.

Can a UPC-A be scanned outside the US?

Yes. A UPC-A is an EAN-13 with a leading 0, so shop scanners around the world read it.

What's the smallest UPC-A I can print?

80% of the standard size: 29.83 mm wide including the margins, with a thinnest bar of 0.264 mm.

Can I make many UPC barcodes at once?

Yes. Paste one number per line, up to 200, and download a ZIP of PNG or SVG files. Lines with a wrong length or check digit are listed so you can fix them.

Can I put a random UPC on my product?

No. A random number isn't registered to you and may belong to a real product. Use Random for tests and mock-ups only.

More on barcodes

Guides