UPC Barcode Generator
Turn a 12-digit UPC into a scannable UPC-A barcode.
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).
100% of the standard 0.33 mm. Retail scanners accept 80–200%.
Put a tree, a shape or your own picture inside the bars.
SVG and PDF are vectors: sharp at any size, best for print.
Made in your browser. Nothing is uploaded.
More Barcode Tools
All tools- Barcode generatorMake UPC, EAN, Code 128 and 2D barcodes
- EAN-13 barcode generatorEAN-13 barcodes for retail worldwide
- EAN-8 barcode generatorShort EAN-8 barcodes for small packs
- ISBN barcode generatorBookland EAN barcodes for book covers
- Code 128 generatorCode 128 for letters, numbers and symbols
- Barcode scannerScan barcodes with your camera
- GTIN validatorCheck a GTIN and see its GS1 prefix
- Design barcode generatorBarcodes with art in the bars, scan-checked
- Check digit calculatorGS1 check digits for UPC, EAN and GTIN
How to use the UPC barcode generator
Three steps, all in your browser.
- 1
Enter your data
Type or paste the number or text to encode. Errors are explained.
- 2
Adjust the barcode
Change the options if you need to. The preview updates as you type.
- 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
| Digit | 2 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| × Weight | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| = Product | 6 | 0 | 3 | 2 | 9 | 4 | 15 | 6 | 21 | 8 | 27 |
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.