Automatic check digit
Enter 11 digits; the 12th is calculated with the GS1 modulo-10 method.
The CardDeck UPC barcode generator creates UPC-A barcodes from your GS1 US product number, with the check digit calculated automatically. Enter 11 digits, check the preview and download a high-resolution SVG or PNG for packaging and labels.
Free plan · No credit card required
Generated in your browser · nothing you type is sent anywhere · SVG and PNG downloads
A UPC-A barcode is the 12-digit retail barcode used mainly in the United States and Canada. It encodes a GTIN-12 issued through GS1 US: a company prefix, an item reference and a final check digit. CardDeck generates UPC-A barcodes from the 11 digits you enter and calculates the check digit automatically.
License a GS1 Company Prefix or individual GTINs from GS1 US.
Type the first 11 digits; CardDeck adds the check digit. Enter 12 to verify an existing one.
Confirm the printed digits match your product record.
Download SVG for packaging artwork, print a proof at size and scan it.
Enter 11 digits; the 12th is calculated with the GS1 modulo-10 method.
Enter all 12 digits and a wrong check digit is flagged.
Letters, spaces and dashes are caught before export.
SVG for packaging artwork; PNG for documents and listings.
Create a whole product range from a spreadsheet of GTINs.
Static barcodes are unlimited on every plan.
| Aspect | Without CardDeck | With CardDeck |
|---|---|---|
| Check digit | Calculated by hand | Calculated or verified automatically |
| Leading zeros | Lost in spreadsheets | Validated per row |
| Output | Low-resolution images | Vector SVG for packaging |
| Product ranges | One at a time | Hundreds from a spreadsheet |
| Cost | Paid or watermarked tools | Free and unlimited |
A UPC-A barcode is the standard 12-digit retail barcode in the United States and Canada. UPC stands for Universal Product Code. The number it holds is a GTIN-12 (Global Trade Item Number), issued through GS1 US, and it identifies one specific product variant at the checkout and in the supply chain.
UPC barcodes were first scanned at a US supermarket checkout in 1974, and UPC-A remains the most familiar barcode on North American packaging.
A UPC-A barcode is 95 modules wide: a start guard, six left-hand digits, a center guard, six right-hand digits and an end guard. Each digit uses 7 modules made of two bars and two spaces.
A UPC-A number is a 12-digit GTIN. Add a leading 0 and you get the equivalent 13-digit EAN-13 number. Scanners in North America read both formats, so products with an EAN-13 barcode can also be sold there.
You get a UPC number from GS1 US, the organization that administers UPC numbering in the United States. CardDeck generates the barcode image from your number; it does not issue numbers.
In Canada, numbers come from GS1 Canada. Elsewhere, contact your local GS1 member organization, which issues numbers you can use as EAN-13 or, if they start with 0, as UPC-A.
Numbers sold cheaply by third parties were often licensed to a different company. Retailers and marketplaces can check the number against GS1 records, and a mismatch can lead to rejected listings.
Each size, flavor, color and pack size is a separate product with its own GTIN. A six-pack and a single can need different numbers. Keep a simple product list with each GTIN, description and pack size, and generate barcodes from that list so the number on the pack always matches your records.
The UPC-A check digit uses the GS1 modulo-10 method: multiply the digits in odd positions by 3 and the digits in even positions by 1, add everything, and find the number that brings the total up to the next multiple of 10.
If the total is already a multiple of 10, the check digit is 0.
The method is the same as EAN-13; only the starting weight differs, because EAN-13 has one more digit at the front.
At 100% magnification, a UPC-A barcode is about 37.3 mm (1.47 in) wide and 25.9 mm (1.02 in) tall including quiet zones, with an X-dimension of 0.33 mm. GS1 allows 80% to 200% magnification for general retail.
Leave at least 9 times the X-dimension clear on each side, about 3 mm at 100%. Do not let text, borders, folds or the edge of a label run into this space.
Keep the full bar height. Shortening the bars to fit a small pack makes the barcode harder to scan at a checkout, and GS1 discourages it. If your pack is genuinely small, ask GS1 US about UPC-E, a compressed format for small packages.
Choose UPC-A, enter the first 11 digits of your GTIN-12, check the preview and download an SVG for your packaging. For a full range, generate them from a spreadsheet.
For stock control and shelf labels alongside retail barcodes, see CardDeck for retail and inventory.
Can’t find an answer? Visit the Help Center.
No. UPC numbers are licensed from GS1 US. CardDeck generates the barcode image from your number for free.
UPC-A has 12 digits and is used mainly in the US and Canada; EAN-13 has 13 and is used internationally. A UPC-A number with a leading 0 is the same as an EAN-13.
No. Enter 11 digits and CardDeck calculates the 12th. Enter 12 and CardDeck verifies it.
Excel treats the number as numeric and drops the zero. Format the column as Text and enter the number again.
UPC-E is a compressed 8-digit version of certain UPC-A numbers, used on very small packages. Ask GS1 US whether your numbers qualify.
Yes. Static barcodes, including UPC-A, are free and unlimited on every plan.
Free plan · No credit card required