Skip to content

UPC Barcode Generator

Turn a 12-digit UPC into a scannable UPC-A barcode.

UPC version

11 digits (we add the check digit) or 12 digits.

2 digits (e.g. a magazine issue) or 5 digits (e.g. a suggested price).

Units
mm
mm

100% of the standard 0.33 mm. Retail scanners accept 80–200%.

Human-readable text
Rotation

Put a tree, a shape or your own picture inside the bars.

SVG and PDF are vectors: sharp at any size, best for print.

This draws the barcode for a number you already have. It doesn't register a product number: retail UPC, EAN and GTIN numbers come from GS1.

Made in your browser. Nothing is uploaded.

More Barcode Tools

All tools

How to use the UPC barcode generator

Three steps, all in your browser.

  1. 1

    Enter your data

    Type or paste the number or text to encode. Errors are explained.

  2. 2

    Adjust the barcode

    Change the options if you need to. The preview updates as you type.

  3. 3

    Download

    Save the result and print it. Test a printed sample before a big run.

UPC Barcode Generator: what to know

A UPC-A barcode encodes a 12-digit number, the GTIN-12: your GS1 Company Prefix and item reference (11 digits) plus a check digit. To find the check digit, multiply the 11 digits alternately by 3 and 1 starting from the left, add the results, and take the amount needed to reach the next multiple of 10.

UPC-A is the 12-digit barcode on almost every product sold in the United States and Canada. The number is a GTIN-12: your GS1 Company Prefix, an item reference you assign to the product, and a check digit calculated from the other 11 digits. The barcode shows the first digit to the left of the bars, the last to the right and the rest underneath in two groups of five.

Type 11 digits and the generator calculates the check digit; type 12 and it verifies the last one, so a mistyped number is caught before it reaches the printer; to check a UPC on its own, paste it into the GTIN validator. The barcode is drawn to the UPC-A pattern with its guard bars and the quiet zones scanners need on both sides.

A UPC barcode is only as good as its number. To sell through retailers and on marketplaces such as Amazon, the number should be licensed to your company by GS1 US or GS1 Canada. Numbers bought from resellers may be registered to someone else, which is why many retailers check GS1's database before listing a product.

Worked example: the check digit of UPC-A 20123456789

Each digit multiplied by its weight
Digit20123456789
× Weight31313131313
= Product60329415621827

Add the products: 6 + 0 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27 = 101. Round 101 up to 110: 110 − 101 = 9, so the check digit is 9 and the full number is 201234567899.

UPC-As starting with 2 are in-store numbers (GS1 Prefix 020-029 once written as an EAN-13), so this example isn't any company's product.

Popular uses

  • Retail packaging for products sold in the US and Canada
  • Barcodes for marketplace listings that need a GTIN
  • Replacing a damaged or missing barcode label on stock
  • Point-of-sale testing with a known product number

Tips for the best result

  • GS1 recommends printing UPC-A at 80% to 200% of its nominal size, which is about 37.3 mm by 25.9 mm at 100%.
  • Don't cut the bars shorter to save space; truncated barcodes are harder to scan from an angle.
  • Keep at least 9 times the narrowest bar width clear on each side of the bars.

Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.

Frequently asked questions

From GS1 US (or GS1 Canada), which licenses a GS1 Company Prefix to your business. You then number your own products and each number is linked to your company in GS1's database. Numbers resold by third parties may already belong to another company, and Amazon and many retailers check numbers against GS1's records.

The 12th digit of a UPC-A is a check digit calculated from the other 11. Enter 11 digits and the generator adds it; enter 12 and it checks that the last digit is right, so a typo is caught before you print.

UPC-A is the full 12-digit code. UPC-E is a shorter 8-digit form for very small packages that drops certain zeros from a UPC-A, so only some UPC-A numbers (those with enough zeros in the right places) have a UPC-E version.

Multiply the first 11 digits alternately by 3 and 1, starting with 3 on the left, add the results, and take the amount needed to reach the next multiple of 10. For 20123456789 the sum is 101, so the check digit is 9 and the full UPC is 201234567899.

Yes. GTIN-12 is GS1's name for the 12-digit UPC number, and UPC-A is the barcode that carries it. Add a 0 in front and the same number is a GTIN-13 that EAN systems accept, with the same check digit.

No. Barcodes are drawn in your browser, and camera frames, pictures and CSV files are processed on your device. Nothing is stored and nothing is sent to our server, and it's all gone when you close or reload the page.

No. A barcode is a picture of a number. Retail product numbers (GTINs such as UPC and EAN) are licensed from GS1, which links them to your company; making a barcode image here doesn't assign or register a number. Retailers and marketplaces may check numbers against GS1's records.

Yes. Every tool is free with no sign-up and no limits on use, including commercial use of the barcodes you make. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers, and the scanner uses your phone's camera.