How to create a UPC-A barcode
- Enter your data in the box above. Enter 11 digits and we add the check digit, or 12 digits and we verify it.
- The barcode updates live as you type. Open Customize to change the bar height, colors, rotation or quiet zone.
- Click Download PNG for labels and documents, or SVG / PDF for print and packaging design.
- Test it with our online barcode scanner before you print a large run.
What is a UPC-A barcode?
A UPC-A barcode (Universal Product Code) is the 12-digit barcode printed on almost every retail product sold in the United States and Canada. It is what the checkout scanner reads at the till.
The 12 digits are a GS1 company prefix, an item reference that you assign, and a final check digit that lets scanners catch misreads. UPC-A is a subset of EAN-13: put a leading 0 in front and you have the equivalent EAN-13.
Where UPC-A is used
- Retail products in the US and Canada
- Amazon, Walmart and other marketplace listings
- Grocery and point-of-sale checkout
- Inventory systems that use GTIN-12
UPC-A specifications
| Type | Linear (1D), fixed length |
|---|---|
| Characters | Digits 0–9 only |
| Length | 12 digits (11 + check digit) |
| Check digit | Mandatory, modulo 10 (GS1) |
| Nominal size | 37.29 mm × 25.91 mm at 100% magnification |
| Allowed scaling | 80% – 200% |
| Standard | GS1 General Specifications, ISO/IEC 15420 |
Tips for a barcode that scans first time
- Print in black on a white background. Red bars will not scan.
- Keep a clear quiet zone of at least 9 modules (about 3 mm) on both sides.
- Do not truncate the bar height. Shortened UPCs are often rejected by retailers.
- For retail you need a number licensed from GS1. Generating the image is free, but the number must be yours.
Frequently asked questions
Is this UPC barcode generator really free?
Yes. You can create and download as many UPC barcodes as you like in PNG, SVG, JPG or PDF. There is no sign-up and no watermark, and nothing is uploaded: the barcode is drawn in your browser.
Do I need to buy a UPC number?
To sell in most retail stores and on Amazon, yes. Your UPC number has to come from a GS1 company prefix licensed to you. This tool turns a number you already have into a barcode image. For internal use, such as inventory or testing, you can use any number. Read how to get a barcode for your product.
What if I only have 11 digits?
Enter the 11 digits and the generator calculates and appends the 12th check digit automatically. If you enter 12 digits, we check that the last digit is correct and warn you if it is not.
What size should a UPC barcode be?
The nominal size is 37.29 × 25.91 mm (1.469 × 1.02 in), and GS1 allows 80% to 200% of that. Smaller than 80% often fails to scan at checkout. See our barcode size guide.
What is the difference between UPC and EAN?
UPC-A has 12 digits and is used mainly in North America. EAN-13 has 13 digits and is used everywhere else. Modern scanners read both. A UPC is the same as an EAN-13 with a leading zero. Full comparison.
Which file format should I download?
Use SVG or PDF for packaging and print design, because they are vectors and stay sharp at any size. Use PNG for labels, documents and web use.