Free UPC Barcode Generator

Generate UPC-A and UPC-E barcodes for retail products. Check digit calculated automatically.

Preview

Enter data to preview barcode

Download

Enter valid barcode data to enable download

What is a UPC Barcode?

UPC (Universal Product Code) is the standard barcode for retail products in North America. Introduced in 1974, UPC-A is a 12-digit barcode found on virtually every product sold in US and Canadian supermarkets, drug stores, and retail chains. It was the first barcode symbology to achieve widespread commercial adoption, initially developed to speed up grocery checkout lines.

Today, UPC barcodes are required by major retailers including Walmart, Target, Costco, and all major online marketplaces. The barcode encodes your product's unique identifier so that point-of-sale systems can instantly look up the product name, price, and inventory status.

UPC-A Structure Explained

A UPC-A barcode consists of 12 digits with a specific structure:

  • Digit 1 (Number System): Indicates the type of product. 0 = standard retail product, 2 = variable weight items, 3 = pharmaceuticals, 4 = retailer use, 5 = coupons.
  • Digits 2–6 (Manufacturer Code): A 5-digit code assigned to your company by GS1 US.
  • Digits 7–11 (Product Code): A 5-digit code you assign to identify a specific product variant (size, color, etc.).
  • Digit 12 (Check Digit): Automatically calculated using a modulo-10 algorithm to detect scanning errors.

UPC-A vs UPC-E

UPC-A is the standard 12-digit format used on most retail products. It provides enough space to encode a unique identifier for millions of products.

UPC-E is a compressed 6-digit version mathematically derived from a UPC-A number. It's used on small packages where a full UPC-A barcode wouldn't fit, such as small cosmetics, jewelry, or single-serving food items. Not all UPC-A numbers can be compressed to UPC-E — only those with certain manufacturer/product code patterns qualify.

UPC vs EAN: Global Compatibility

UPC-A is specific to North America. EAN-13 (the international equivalent) is used elsewhere in the world. A UPC-A barcode is technically an EAN-13 barcode with a leading zero — meaning any scanner capable of reading EAN-13 can also read UPC-A. Most modern retail systems handle both formats transparently.

If you're selling products internationally, consider registering for EAN-13 instead of or in addition to UPC-A. Major US retailers like Walmart and Amazon now accept both formats.

Do I Need a UPC Code for Amazon?

Yes. Amazon requires GS1-issued UPC codes for most product listings on their marketplace. Key points to know:

  • You must purchase a legitimate UPC from GS1 US — third-party "resold" barcodes are not accepted
  • Amazon verifies UPC numbers against the GS1 database
  • Brand Registry members may be eligible for a UPC exemption using their brand name
  • Private label sellers still need GS1-issued UPCs in most categories

This generator creates the barcode image from your UPC number — you still need to obtain a valid UPC number from GS1 US before using it in commerce.

How to Generate a UPC Barcode

  1. Enter your 11-digit UPC number (the check digit is calculated automatically)
  2. Adjust barcode size, colors, and text display options if needed
  3. Download as PNG for digital use, SVG for print/scalable graphics, or PDF for documents
  4. Place the barcode on your product packaging according to GS1 placement guidelines

Frequently Asked Questions

What digits go in a UPC-A barcode?

Enter 11 digits — the generator automatically calculates and appends the 12th check digit. Or enter all 12 digits with the check digit already included.

Can I use any 12-digit number?

For testing and internal use, yes. For retail sale, you need a legitimate GS1-issued manufacturer code. Using unofficial numbers in commerce can result in product listing removal and retailer penalties.

Do I need a UPC code for Amazon?

Yes. Amazon requires GS1-issued UPC codes for most listings. You must obtain a valid UPC from GS1 US (gs1us.org). This tool creates the barcode image — it does not issue UPC numbers.

What is the difference between UPC-A and UPC-E?

UPC-A is the standard 12-digit format. UPC-E is a compressed 6-digit version for small packages. Both represent the same product but UPC-E requires a smaller label surface area.