How to Get a UPC Code
A UPC code has two parts: a number licensed to your company by GS1, and the barcode that shows it. This guide covers getting the number from GS1 US, what marketplaces check, the check digit, and drawing and printing the barcode at the right size. Prices change, and this is not legal advice.
Updated
Open the UPC generatorWhat a UPC code is
A UPC (Universal Product Code) is the barcode on products sold in North America, and the 12-digit number under it, which GS1 calls a GTIN-12 (Global Trade Item Number). GS1 US explains the number with its example 6 14141 99999 6: the first 6 to 10 digits are your GS1 Company Prefix, the next 1 to 5 digits are the item number you assign, and the last digit is the check digit.
The number is what a store's system looks up. GS1 US says every product variation requires a new GTIN, so a mug in three colors needs three numbers.
Get the number from GS1 US
In the United States, UPC numbers are licensed by GS1 US. It offers two products: a single GS1 US GTIN, one number with no renewal fee, and a GS1 Company Prefix, a block of numbers for 10 to 100,000 products with an annual renewal fee. A Company Prefix also covers case codes, locations and coupons. These were GS1 US's prices as of November 2026:
| Products needing a GTIN | Initial fee | Annual renewal |
|---|---|---|
| 1 (single GS1 US GTIN) | $30 | $0 |
| 10 | $250 | $50 |
| 100 | $750 | $150 |
| 1,000 | $2,500 | $500 |
| 10,000 | $6,500 | $1,300 |
| 100,000 | $10,500 | $2,100 |
Check the current prices on gs1us.org before you buy. GS1 US says that renewing the membership lets you keep using barcodes made with your Company Prefix.
One GTIN or a Company Prefix
Count your products the way a retailer will: every size, color, flavor and pack count is a separate product. GS1 US says a single GTIN "might be the most cost-effective option" if you have only a few products. For more, the 10-product prefix costs $250 and $50 a year, against $300 for ten single GTINs. A prefix is also what you need to give cases and pallets their own GTIN-14 for ITF-14 or GS1-128 barcodes. GS1 US notes that once a prefix is used up, another is required.
What Amazon and Walmart check
GS1 US quotes Amazon's Seller Central: "We verify the authenticity of product UPCs by checking the GS1 database. UPCs that do not match the information provided by GS1 will be considered invalid." GS1 US lists the usual causes of a rejected UPC: the brand name in the listing does not match the one registered with GS1, or the GTIN is not licensed to the brand owner. GS1 US adds that Amazon grants GTIN exemptions for some product categories, such as handmade items, and verifies each request.
Walmart Marketplace lists "Products that have GTIN/UPC GS1 Company Prefix Numbers" among its requirements to sell. Its help page adds: "If you want to sell an item that does not have a product ID, you can license a GTIN from GS1", and "If your item does not have a Product ID, never create a fake one."
Resellers and "free" UPC codes
Some sites sell UPC numbers for a few dollars, or offer them free. GS1 US says GTINs not issued directly by GS1 "may be linked to another company and do not comply with GS1 Standards". Since marketplaces check the GS1 database for the brand owner, such a number can fail their check. A barcode generator, this one included, cannot give you a valid number: it can only draw the one you have.
Check the check digit
The 12th digit is calculated from the first 11, so a mistyped number is caught before it is printed. GS1's rule: add the digits in the odd positions from the left and multiply by 3, add the digits in the even positions, add both results, and subtract from the next multiple of ten. For 6 14141 99999, that is 41 × 3 + 21 = 144, and 150 − 144 = 6. The UPC check digit calculator does this for a whole list. A correct check digit shows only that the number is well formed, not that it is licensed to you.
Draw the barcode
Once you have the number, you need the picture. Three ways:
- GS1 US Data Hub. After licensing, log in, assign the GTIN to your product and download the barcode as a PNG file. It comes with your license.
- Your designer's or printer's software. Label and packaging programs draw UPC barcodes from the number.
- This site. The UPC generator draws UPC-A, UPC-E and EAN-13 barcodes at GS1's sizes and saves them as SVG, PDF or PNG (use the SVG or PDF for print); the bulk barcode generator makes a whole list or a sheet of labels. The number stays on your device.
Print it at the right size
GS1 sets a UPC-A's size by its X-dimension, the width of the narrowest bar. For products scanned at a retail checkout, the GS1 General Specifications give these sizes, with the older percent names beside them:
| Size | X-dimension | Minimum bar height | Width with quiet zones |
|---|---|---|---|
| 80 percent (minimum) | 0.264 mm (0.0104 in) | 18.28 mm (0.720 in) | 29.83 mm |
| 100 percent (target) | 0.330 mm (0.0130 in) | 22.85 mm (0.900 in) | 37.29 mm (1.468 in) |
| 200 percent (maximum) | 0.660 mm (0.0260 in) | 45.70 mm (1.800 in) | 74.58 mm |
Leave a blank quiet zone of 9 times the X-dimension on each side, 2.97 mm at 100 percent, clear of text and edges. Do not cut the bars shorter: GS1 US says truncating them is not recommended, and that a finished barcode should not be resized or cropped without a printing professional. Scan a printed sample before a full run.