Free UPC-A Barcode Generator

Create high-resolution, scan-ready 12-digit UPC-A barcodes for retail products, packaging, and store inventory. Enter 11 or 12 digits — our engine automatically validates or calculates the official modulo-10 check digit.

Barcode Settings

Valid 12-digit UPC-A number.

Runs 100% locally. Your product codes are never logged or stored.

Complete Guide to UPC-A Barcodes: Structure, Dimensions & Printing

The UPC-A (Universal Product Code Type A) is the foundational barcode standard used on almost every physical consumer product sold in retail stores across the United States and Canada. Introduced in 1974 with the iconic scanning of a pack of Wrigley's chewing gum in Troy, Ohio, the UPC-A barcode transformed point-of-sale efficiency, automated inventory management, and eliminated manual cashier pricing errors worldwide.

Anatomy of a 12-Digit UPC-A Barcode

Every UPC-A barcode encodes exactly 12 numerical digits. Unlike alphanumeric symbols such as Code 128, a UPC-A barcode cannot encode letters or special symbols. The digits are partitioned into four distinct segments:

  • Number System Character (Digit 1): Identifies the specific classification of the product. For instance, standard retail products typically begin with 0, 1, 6, 7, or 8. A leading 2 is reserved for variable-weight store items (such as meats, produce, or deli goods weighed at checkout), 3 is reserved for pharmaceutical and National Drug Code (NDC) items, and 5 designates coupons.
  • Manufacturer Prefix (Digits 2 through 6 or 7): A unique 5-to-8 digit identification number officially licensed to a brand owner by GS1 US. No two companies in the world share the same manufacturer prefix.
  • Item Reference Number (Digits 7 through 11): Assigned by the brand owner to identify a distinct product variant. Each size, color, flavor, and packaging configuration requires its own unique item number.
  • Modulo-10 Check Digit (Digit 12): A mathematical verification digit calculated from the preceding 11 digits. When an optical scanner sweeps across the bars, its internal processor recalculates the formula; if the calculated check digit does not match the 12th digit, the scanner immediately beeps an error tone instead of transmitting corrupted data to the register.

Step-by-Step: How to Calculate the UPC-A Check Digit

The check digit is calculated using a standard weighted modulo-10 algorithm:

  1. Number the first 11 digits from left to right: position 1 through position 11.
  2. Sum all the digits located in the odd positions (positions 1, 3, 5, 7, 9, 11).
  3. Multiply that odd sum by 3.
  4. Sum all the digits located in the even positions (positions 2, 4, 6, 8, 10).
  5. Add the result of step 3 to the result of step 4 to get the grand total.
  6. Divide the grand total by 10 to find the remainder. If the remainder is 0, the check digit is 0. Otherwise, subtract the remainder from 10 to determine the check digit.

Worked Example: For the 11-digit code 01234567890: Odd positions (0 + 2 + 4 + 6 + 8 + 0) = 20. Multiplied by 3 = 60. Even positions (1 + 3 + 5 + 7 + 9) = 25. Grand total: 60 + 25 = 85. 85 divided by 10 leaves a remainder of 5. Subtracting 5 from 10 equals 5. Thus, the complete 12-digit code is 012345678905. If you need to quickly verify multiple numbers, our UPC Check Digit Calculator provides instant mathematical breakdowns.

Standard Dimensions, Quiet Zones & Scaling

GS1 General Specifications dictate strict geometric standards for retail point-of-sale barcodes to ensure bi-directional laser read rates:

  • Nominal Size (100% Magnification): 1.469 inches wide by 1.020 inches tall (37.29 mm x 25.91 mm).
  • Allowable Magnification Range: Barcodes may be scaled from 80% (1.175 in / 29.83 mm wide) up to 200% (2.938 in / 74.58 mm wide). Scaling below 80% severely degrades scanning reliability on automated conveyor belts and checkout scanners.
  • Quiet Zones (Clear Margins): UPC-A requires a mandatory blank margin of at least 9 times the narrow bar width (X-dimension) on both the left and right sides. At 100% scale, this is approximately 0.125 inches (3.2 mm). Cutting into the quiet zone with graphic borders, text, or package folds is the number-one cause of retail scanner rejection.
  • Aspect Ratio & Truncation: While width can be adjusted by scaling the entire symbol, reducing bar height ("truncation") below 0.75 inches should be avoided. Truncation destroys omnidirectional scanning, forcing cashiers to manually align the package with the laser beam.

Common Barcode Printing Mistakes and Fixes

Before sending packaging artwork to the commercial printer, check your proofs against these common pitfalls:

  • Low Contrast Color Choices: Red lasers illuminate barcodes with 650–670 nm light. Dark red, brown, or orange bars appear invisible to the scanner. Always use dark bars (black, navy, dark green) on reflective backgrounds (white, pale yellow).
  • Pixelation from Web Images: Never upscale low-resolution 72 DPI screen captures for physical offset or flexographic printing. Always export in SVG vector or high-density 300 DPI PNG using the buttons in our generator above.
  • Placing Barcodes on Curved Surfaces: On cylinders (cans, bottles, jars) with a diameter under 2 inches, orient the barcode with the bars running vertically (like a picket fence) rather than horizontally (like a ladder) to prevent optical laser distortion.

Important Notice: Image Generation vs. Official Registration

Important Regulatory Disclaimer: Barcodes Generator produces scan-accurate vector and raster image files from the numbers you provide. We do not assign, sell, or license official GTIN / UPC prefixes. If you are a brand owner listing new products in major brick-and-mortar retail stores or on Amazon Brand Registry, you must purchase an authentic company prefix directly from GS1 US. Using unassigned or pirated numbers can result in listing suppression, inventory rejection, and retailer fines.

Related Barcode Tools & Calculators

Related Educational Guides

Frequently Asked Questions About UPC-A Barcodes

A standard UPC-A barcode always contains exactly 12 digits. The first 11 digits represent your company prefix and item reference number, while the 12th digit is a mathematical checksum calculated via the modulo-10 algorithm. If you enter only 11 digits into our generator, it automatically calculates and appends the correct 12th check digit for you.
Yes, provided the 12-digit number you enter is an officially assigned GTIN licensed to your company by GS1 US. Our tool generates 100% scan-accurate vector and 300 DPI raster barcode graphics. However, you must first obtain your authentic barcode numbers from GS1; our site generates the scannable image, not the legal ownership license.
The 100% nominal size (SC2 magnification) of a UPC-A barcode is 1.469 inches wide by 1.020 inches high (37.29 mm x 25.91 mm), including quiet zones. GS1 specifications permit scaling between 80% (minimum: 29.83 mm wide) and 200% (maximum: 74.58 mm wide).
A quiet zone is the blank, light-colored margin on both the left and right sides of the barcode bars. For UPC-A, the required quiet zone is 9 times the width of the narrowest bar (approximately 0.125 inches or 3.2 mm). Without sufficient quiet zones, optical laser scanners cannot distinguish where the barcode begins, causing point-of-sale read failures.
The safest color combination is solid black bars on a pure white background. Barcode scanners use red laser or infrared light, meaning the bars must absorb red light (black, dark blue, dark green) while the background must reflect red light (white, yellow, light red). Never use red bars, as a red laser beam cannot "see" red bars on any background.
A 12-digit UPC-A barcode is converted to a 13-digit EAN-13 barcode simply by prefixing it with the digit '0'. Because '0' designates the United States and Canada country prefix in the GS1 system, 012345678905 represents the exact same product as UPC-A 12345678905 without changing the check digit.