Free UPC-A Barcode Generator - Product Packaging
Generate a standards-compliant UPC-A barcode for product packaging. Download as SVG or PNG.
Enter all 11 digits to generate the barcode.
Find this tool useful? Save it for next time.
How to generate a UPC-A barcode
Enter the first 11 digits of your UPC-A number. The tool calculates the 12th check digit automatically and renders the barcode immediately. Download the result as an SVG for use in design and print workflows, or as a PNG for digital applications.
A UPC-A number consists of a single-digit number system code, a 5-digit manufacturer identifier, and a 5-digit product code - 11 digits in total that you enter. The final digit is the check digit, calculated and shown by the tool.
UPC-A number system codes
The first digit of a UPC-A code indicates the product type:
- 0: Regular grocery and retail products
- 1: Reserved
- 2: Random-weight items (produce, deli) - price encoded in barcode
- 3: Pharmaceutical and health products (NDC number)
- 4: Retailer-defined (store loyalty, coupons)
- 5: Coupons
- 6: Regular retail products (same as 0)
- 7: Regular retail products (same as 0)
- 8: Reserved
- 9: Coupons and POS variable
Printing tips for UPC-A barcodes
- Print at no smaller than 80% of nominal size (approximately 29.8 mm wide)
- Use black bars on a white background for maximum scanner reliability
- Maintain the quiet zones on both sides - do not crowd the barcode
- Do not stretch the barcode height - reducing height below 69% of nominal affects scan rates
- Always print a proof and scan it before a production run
Frequently asked questions
What is a UPC-A barcode?
UPC-A (Universal Product Code version A) is a 12-digit barcode standard used primarily in the United States and Canada for retail product identification. It was developed in the 1970s and remains one of the most common barcodes in North American retail. Each UPC-A code consists of a number system digit, a 5-digit manufacturer code, a 5-digit product code, and a calculated check digit.
How do I get a legitimate UPC-A number for my product?
To obtain an officially registered UPC-A number, you need to join GS1 US and receive a GS1 Company Prefix. GS1 is the standards body that manages product identifiers globally. Once you have a company prefix, you assign your own product codes within your allocated range. Using an unregistered UPC can cause problems in retail systems and should be avoided for commercial products.
How does the UPC-A check digit differ from EAN-13?
UPC-A uses the same underlying modulo-10 calculation as EAN-13, but the weighting is reversed: odd-position digits (1, 3, 5, 7, 9, 11) are multiplied by 3 and even-position digits (2, 4, 6, 8, 10) are multiplied by 1. This is because UPC-A counts positions from left starting at 1, while EAN-13 starts at 1 but with a weight of 1. The end result is equivalent because UPC-A is a special case of EAN-13 with a leading zero.
What is the relationship between UPC-A and EAN-13?
UPC-A and EAN-13 are compatible formats. A UPC-A barcode with a leading zero prepended becomes a valid EAN-13 barcode. Modern retail scanners in all countries read both formats and automatically strip or add the leading zero as needed. If you are distributing products internationally, EAN-13 is the more universal choice. If you are selling only in North America, UPC-A is sufficient.
What size should I print a UPC-A barcode?
The GS1 specification recommends a nominal size of 37.29 mm wide by 25.91 mm tall for UPC-A. The magnification range is 80–200% of nominal. At 80% (approximately 29.8 mm wide), the barcode is still reliably scannable in most retail environments. Below 80%, scan failures become increasingly likely. Use the SVG download for precise size control in professional print software.
Can I use a UPC-A barcode on food packaging?
Yes. UPC-A is the standard format for food products in North America. For food products sold internationally, the equivalent EAN-13 is used. The barcode itself is just an identifier - food labelling regulations require you to have legitimate GS1 registration for commercially sold products. Always test-scan your printed barcode at the recommended magnification before committing to a print run.
What is the quiet zone for a UPC-A barcode?
The quiet zone is the blank white space that must surround the barcode on both sides to help scanners locate it. For UPC-A, the required quiet zone is at least 2.97 mm on the left and right sides at nominal size (proportional at other magnifications). Do not place text, images, or design elements within the quiet zone, and ensure the background beneath the barcode is white or a very light, high-contrast colour.
Does this tool generate print-ready barcodes?
Yes. The SVG download produces a vector barcode that renders at full quality at any print size. For professional print production, place the SVG directly in your layout application. For digital mockups and documents, the PNG download is a high-resolution raster version. Both formats meet the GS1 bar width tolerances required for compliant retail barcodes when printed at the correct magnification.
Related Tools
EAN-13 Barcode Generator
Generate a standards-compliant EAN-13 barcode for retail product labels. Download as SVG or PNG.
Barcode Check Digit Checker
Validate or calculate the check digit for EAN-13, UPC-A, EAN-8, and other common barcode formats.
Barcode Label Sheet Generator
Enter a list of barcodes, choose a label sheet layout, and generate a print-ready sheet in seconds.