Home · Learn · What Is a UPC? The 12-Digit Universal Product Code Explained
What Is a UPC? The 12-Digit Universal Product Code Explained
A UPC is a 12-digit barcode used on virtually every retail product sold in the US and Canada. Here is what it means, how to get one, and how to use it.
UPC stands for Universal Product Code. It is a 12-digit barcode symbology managed by GS1 that uniquely identifies a product worldwide. The first 6-10 digits identify the manufacturer (the GS1 Company Prefix), the next digits identify the specific product, and the final digit is a mod-10 check digit that validates the scan.
If you sell on Amazon, Walmart, Shopify, or any major retailer in North America, every SKU needs a UPC. Retailers verify your UPC against the GS1 global database to confirm it resolves to your brand. Self-generated 'lookalike' UPCs may pass syntax checks but fail registry verification for high-stakes listings.
How a UPC code is structured
A standard UPC-A barcode encodes 12 digits split into: a 1-digit number system character (identifies the product category — '0' for most consumer goods, '2' for random-weight items, '3' for pharmaceuticals, '4' for in-store use, '5' for coupons), 5-9 digits assigned by GS1 as your company prefix, the remaining digits as your product identifier, and 1 final check digit. The check digit is computed mod-10 from the previous 11 digits — get it wrong and no scanner will read your code.
How to get a UPC code (the GS1 way)
The only authoritative source for a real UPC is GS1 (gs1.org or your country's GS1 affiliate, like GS1 US in the United States). You join GS1, get assigned a company prefix, and then assign product identifiers to each SKU within your prefix's namespace. Membership starts at around $30/year for a single GTIN and scales by SKU count. Resold UPCs from third-party brokers are common but increasingly rejected by Amazon, Walmart, and Google Shopping because they don't resolve to your brand in the GS1 database.
UPC vs UPC-A vs UPC-E
UPC-A is the standard 12-digit barcode you see on most retail packaging. UPC-E is a compressed 8-digit variant for tiny packaging (lip gloss tubes, sample sachets, small candy bars) where a full UPC-A won't fit. UPC-E expands back to a full 12-digit UPC-A using a defined compression algorithm — they represent the same data, just rendered differently. Most consumer products use UPC-A; only specifically small SKUs use UPC-E.
Free UPC generator: when is it OK?
Generating a syntactically valid UPC-A here will work for: prototyping, internal SKU tracking, Etsy/eBay listings under your existing GTIN exemption, brand-registry products, or any context where the UPC doesn't need to resolve to a registered brand in GS1's database. For Amazon and Walmart at scale, buy genuine UPCs from GS1.
FAQ
How do I find my UPC code?
Look on the back or bottom of any retail product — you'll see a 12-digit number printed below a vertical-bar barcode. That number IS the UPC. For products you sell, you'll find your assigned UPCs in your GS1 portal account under 'Manage Barcodes' or 'My Products.'
What is the difference between SKU and UPC?
A SKU (Stock Keeping Unit) is your internal product code — you pick the format, length, and meaning. A UPC is a globally unique standardized identifier issued by GS1 that any retailer worldwide can scan and resolve to your product. SKUs are private; UPCs are public, registered, and tied to your brand.
How do I get a UPC code?
Apply for a GS1 Company Prefix at gs1us.org (US) or your country's GS1 affiliate. After payment and registration, GS1 assigns you a unique prefix. You then create UPCs within your prefix's namespace and register each product. Cost ranges from $30/year for a single GTIN to several hundred dollars for larger SKU pools.
Can I create my own UPC code?
Technically yes — you can generate any 12-digit number with a valid check digit (try our generator above). But for retail use, the UPC must resolve to your brand in the GS1 global database. Amazon, Walmart, Target, and Google Shopping verify against that database and reject 'self-created' UPCs. Use generated UPCs only for internal/prototype/exempt scenarios; buy real ones from GS1 for retail.
Where can I look up a UPC code?
Free public lookups include UPC Lookup (upcitemdb.com), Barcode Lookup (barcodelookup.com), and the GS1 Verified by GS1 portal at gs1.org/services/verified-by-gs1. The GS1 lookup is authoritative — if a UPC doesn't appear there, it's not officially registered.
What is a UPC in music?
In the music industry, UPC refers to the same 12-digit Universal Product Code, used to identify a music release (album, single, EP) across digital and physical retailers like Apple Music, Spotify, Amazon Music, and physical CDs. DistroKid, CD Baby, and other music distributors typically assign a UPC to each release for you, or you can supply your own.
Related generators
Need a real barcode now?
Generate a valid UPC-A barcode in seconds — no signup, no watermark. Free for casual use; paid plans from $9/mo for higher volume.