Skip to content

UPC-A Barcode Generator

Make a UPC-A barcode, the 12-digit retail symbol used in the United States and Canada. Enter 11 digits and the check digit is calculated, or enter 12 digits to validate an existing code. Adjust size and colours, then download PNG, SVG or a vector PDF. Everything is generated in your browser.

11 digits (check digit calculated) or 12 digits (validated).

Valid· check digit 2 added

Customize
#000000
#ffffff

Generating…

Your data stays on your device.

How does it work?

  1. 1Enter 11 digits to have the check digit calculated, or 12 digits to validate a complete UPC-A.
  2. 2Read the valid/invalid indicator; if the code is invalid, the message says whether the length or the check digit is wrong.
  3. 3Adjust bar width, bar height, colours and the human-readable digits.
  4. 4Download the barcode as PNG, SVG or a vector PDF.

What is UPC-A Barcode Generator?

UPC-A (Universal Product Code) is the 12-digit GTIN-12 printed on retail products in North America. Its digits are a number-system digit, a five-digit manufacturer prefix, a five-digit item number and a check digit. The symbol is 95 modules wide, with six digits on each side of a centre guard, and the first and last digits are normally printed outside the bars. Number system 0, 1, 6, 7, 8 and 9 are used for regular items, 2 for random-weight goods, 3 for pharmaceuticals (NDC), 4 for in-store use and 5 for coupons.

UPC-A is identical to an EAN-13 with a leading zero: 036000291452 is the same product as 0036000291452. Modern scanners read both, and many systems store the UPC-A padded to 13 or 14 digits. Company prefixes are issued by GS1, so do not invent numbers for goods you intend to sell, because they may already belong to someone else. Use this generator for artwork, tests and demos, or once you hold your prefix. Where a package is too small for UPC-A, the compressed UPC-E is the usual alternative.

When should you use it?

  • You sell in the US or Canada and need the artwork for a product whose UPC-A you already own.
  • A retailer or marketplace asks for a UPC image to go with your listing.
  • You want to check a UPC-A typed from packaging before entering it into inventory.
  • You need sample barcodes for training material or software tests.

How the UPC-A check digit is calculated

Add the digits in odd positions (1st, 3rd … 11th), multiply that sum by 3, add the digits in even positions (2nd … 10th), and take the number that brings the total up to the next multiple of 10. Example: 03600029145 gives 0 + 6 + 0 + 2 + 1 + 5 = 14, times 3 is 42, plus 3 + 0 + 0 + 9 + 4 = 16 makes 58, so the check digit is 2 and the code is 036000291452.

Privacy

This tool runs in your browser. What you type, paste or open is processed on your device by JavaScript and is not sent to our servers, stored or shared. Your data stays on your device.

Nothing you type is sent anywhere: the digits are validated and drawn locally, and the barcode contains only the twelve digits shown.

Frequently Asked Questions

How many digits does a UPC-A have?

Twelve: eleven digits plus the check digit. Enter eleven and the tool calculates the last one; enter twelve and it verifies it.

Is UPC-A the same as EAN-13?

Almost. A UPC-A is an EAN-13 with a leading 0, and scanners treat the two as the same product. The reverse does not hold: an EAN-13 that does not start with 0 cannot be written as a UPC-A.

What size should I print a UPC-A?

The nominal size at 100 % is about 37.3 × 25.9 mm including quiet zones, and 80 % to 200 % scaling is allowed. Keep at least 9 modules of blank space on each side (about 3 mm at 100 %) and do not stretch the bars.

Can this tool issue a UPC for my product?

No. It draws the barcode for a number you provide but does not issue or register it. Retailers usually require numbers licensed through GS1, so obtain your company prefix there before selling.