UPC Generator
Generate a UPC-A barcode from any 11 or 12 digit number — runs in your browser.
Generates the barcode image for any 12-digit number. UPCs for retail sale must be assigned by GS1 — see FAQ.
Everything runs in your browser. Nothing is uploaded.
What is upc generator?
A UPC-A barcode is the 12-digit black-bar-and-white-space pattern you see on virtually every retail product sold in the United States and Canada. It encodes a number the cash register reads optically — not the price, but a unique identifier that the store’s database maps to a price, name, and product description.
This tool draws the barcode visual for any 12-digit number you give it. Type 11 digits and we’ll compute the 12th (the check digit) and append it; type 12 and we’ll validate it and offer to correct it if the last digit is wrong. Download the result as a PNG (for screenshots, listings, and quick image embedding) or an SVG (for design tools and lossless scaling).
Everything runs in your browser — the number you type never leaves your device. There’s no upload, no server, no account.
What this tool does not do: assign UPC numbers. To list products on Amazon, Walmart, or eBay, the UPC has to come from a 6- to 10-digit company prefix issued to you by GS1. This tool happily renders the barcode for those GS1-issued codes — and for any other number you want to encode for internal warehouse, testing, or design-mockup use — but it doesn’t sell or register prefixes. See the FAQ below for the full picture.
When to use a upc generator
- Indie sellers — Render the barcode image for a UPC you already own (issued by GS1) so you can drop it onto an Etsy or Amazon listing photo.
- Designers and packaging mockups — Place a real-looking UPC-A barcode on comp art and packaging proofs before manufacturing — at full 1.469″ × 1.020″ canonical size.
- Internal warehouse and inventory — Generate barcodes from in-house SKU numbers for non-retail tracking, picking workflows, or asset tagging where GS1 registration isn't required.
How to use the UPC Generator
- Enter your number — Type 11 or 12 digits in the input. We'll compute the check digit if you give us 11, or validate it if you give us 12.
- Choose what to show — Toggle 'Show digits below bars' off for a clean rendering. Toggle 'Transparent background' on if you're layering the barcode on a packaging mockup.
- Download — Click PNG (1×, 2×, or 4× of the canonical 440×306 print size) or SVG (vector — scales to any size without quality loss).
Worked examples
Coca-Cola test UPC (12 digits, valid check)
Input: 036000291452
Output: Standard UPC-A barcode with check digit valid ✓ Auto check digit (11 digits in)
Input: 03600029145
Output: Same barcode, with badge: Check digit added: 2 Mismatch correction
Input: 036000291455
Output: Warning: Check digit 5 doesn't match — should be 2. Choose [Use corrected] or [Use as entered]. Frequently asked questions
What's the difference between a UPC and a GS1-issued UPC?
Can I use a UPC generated here to sell on Amazon, Walmart, or eBay?
How is the UPC check digit calculated?
03600029145: (0+6+0+2+1+5)×3 + (3+0+0+9+4) = 42 + 16 = 58. 58 mod 10 = 8. (10 − 8) mod 10 = 2.