UPC Barcode Generator

Type the first 11 digits of a UPC-A and the check digit is added, or all 12 and it is checked. The barcode downloads as SVG or PNG, with its margins kept.

How it works

UPC-A is the 12-digit barcode on products sold in the United States and Canada. The numbers come from GS1 US or GS1 Canada, as part of a company prefix.

The 12th digit is a check digit. Starting from the right of the first 11, the digits are weighted 3, 1, 3, 1 and so on, then added. The check digit brings the total up to the next multiple of 10. For 03600029145 the total is 58, so the check digit is 2.

A UPC-A is drawn with the same bars as an EAN-13 that starts with 0, which is why tills around the world read both. The first and last digits are printed small, outside the bars, and their bars run long like the guard bars.

How to use it

  1. 1 Type the first 11 digits to have the check digit added, or all 12 to have it checked.
  2. 2 Read the full number the page shows, and fix any typo it reports.
  3. 3 Scan the barcode on screen with a phone barcode app to check it.
  4. 4 Download it as SVG for packaging artwork, or as PNG for documents.

Good to know

  • Spaces and hyphens are ignored, so 0-36000-29145-2 works as typed.
  • At 100% size a UPC-A module is 0.33 mm, which makes the code about 37 mm wide with its margins.
  • Leave 9 modules of white space on each side. The drawing includes it; keep artwork out of it.
  • If a retailer asks for an EAN-13, put a 0 in front of your UPC. The bars are identical.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Adding the check digit to a UPC for a new product label

Picture a small hot sauce maker in Texas that has licensed a GS1 US company prefix. Its sheet of product numbers lists the new bottle as 03600029145, which is only 11 digits. That is common: many sheets list the numbers without the check digit and leave it to whoever makes the barcode. The label printer needs the full barcode by Friday.

The maker types the 11 digits in, and the page adds the check digit and shows the full number, 036000291452. Here is how. Reading the 11 digits from the right, 5, 4, 1, 9, 2, 0, 0, 0, 6, 3, 0, the weights alternate 3 and 1: 15 + 4 + 3 + 9 + 6 + 0 + 0 + 0 + 18 + 3 + 0 = 58. The next multiple of 10 is 60, so the check digit is 2. If someone had typed 036000291453, the page would refuse it and say the check digit should be 2.

The barcode shows the first digit, 0, small and to the left, and the check digit, 2, small and to the right. The ten digits between them sit under the bars in two groups of five, 36000 and 29145. The bars for the first and last digits run long, down past the other bars, together with the guard bars at the start, middle and end. That is the standard UPC-A look, and the one a retailer's artwork checklist expects.

The maker downloads the SVG and places it on the label at 100%. Each module is 0.33 mm, so the code is about 31 mm of bars and 37 mm with the 9-module margins on each side. Before the full print run, they scan the on-screen barcode with a phone barcode app, which reads 036000291452, matching the sheet. A Canadian retailer later asks for the EAN-13 form, and that is 0036000291452: the same bars with a 0 in front.

This tool has limits. It makes UPC-A only, not the short UPC-E or the 2 and 5 digit add-ons used on magazines. It checks the arithmetic of a number, not who owns it: only GS1 can tell you whether a prefix is yours. It does not shrink or stretch the code to a print size; that is done in your design software, within the 80% to 200% range retailers allow. And a barcode printed too small, too faint or on a curved bottle can still fail at the till however correct its number is.

Frequently asked questions

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

A UPC-A is a 12-digit number; an EAN-13 is 13 digits. A UPC-A is the same as an EAN-13 that starts with 0, with the same bars, so scanners everywhere read both. UPC-A is printed with its digits grouped differently.

Can I make up a UPC number?

Not one retailers will accept. They expect a number from a company prefix licensed from GS1, and a made-up number can belong to someone else's product. This page draws the barcode for a number you already have.

Does it make UPC-E, the short version?

No. UPC-E is a compressed 8-digit form for small packs, and only some UPC-A numbers can be compressed into it. This page makes UPC-A only.

Is my number uploaded?

No. The check digit and the barcode are worked out by JavaScript in this tab, and nothing you type is sent.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.