UPC Generator
Type the UPC number you already have and get its barcode at GS1's sizes, with the check digit added or checked, as SVG, PDF or PNG. This tool draws barcodes and does not issue UPC numbers, which are licensed by GS1, and what you type never leaves your device.
How to make a UPC barcode
Type your number
In Number or text, replace the example with the 12-digit UPC your company licensed, or its first 11 digits. Spaces and hyphens are ignored. The line under the box says what the tool did: with 11 digits, "Check digit 2 added" and the full number; with 12, "Check digit is correct", or "The check digit should be 2, not 7" with a Fix it button that puts the right digit in.
Choose the size
Under Size and options, set Magnification to 80%, 100%, 150% or 200%. 100 percent is GS1's target size for retail checkouts. The tool shows the X-dimension (the width of the narrowest bar) in millimeters and mils, and the finished size in millimeters and inches.
Check the barcode
The barcode is drawn again as you type, on the white label beside the form, with the number under the bars. If you print the number elsewhere on the pack, clear Show the number under the bars, which is on when the page opens.
Download it
Press SVG or PDF for print and packaging files, or PNG at 300, 600 or 1200 dpi. Copy image puts the barcode on your clipboard as a picture. The file is named barcode.svg, barcode.pdf or barcode.png, never after the number.
Do not have a number yet? How to get a UPC code covers GS1 US's prices and what Amazon and Walmart check.
This tool draws the barcode, GS1 issues the number
A UPC barcode is a picture of a 12-digit number, which GS1 calls a GTIN-12. Anyone can draw the picture. The number is what makes the barcode work in a store: it has to be licensed to your company, so that a retailer's system finds your product when it is scanned. In the United States, GS1 US licenses these numbers. As of November 2026, GS1 US charges $30 for a single GTIN with no renewal fee, or $250 plus $50 a year for a Company Prefix that covers 10 products (GS1 US prices).
This tool never makes up a number for your product. It has no "random UPC" button, and the number in the box when the page opens is marked "Example": replace it with your own. Walmart's seller guide says: "If your item does not have a Product ID, never create a fake one." GS1 US quotes Amazon's Seller Central: "We verify the authenticity of product UPCs by checking the GS1 database." The guide covers both rules and the full price table.
UPC barcode size: 80 to 200 percent
GS1 sets the size of a UPC-A barcode by its X-dimension, the width of the narrowest bar. For products scanned at a retail checkout, the GS1 General Specifications give a target of 0.330 mm (0.0130 in), a minimum of 0.264 mm and a maximum of 0.660 mm. Those are the 100, 80 and 200 percent sizes. At 100 percent the bars are at least 22.85 mm (0.900 in) tall, and the whole symbol is 113 modules wide, 37.29 mm (1.468 in), including a quiet zone of 9 modules on each side.
The quiet zone is the blank space beside the bars that a scanner needs to find the barcode. Keep it clear of text, edges and folds. GS1 US advises against truncating the bars (printing them shorter than the standard height) and against resizing or cropping a finished barcode without a printing professional. Choose the size here instead, before you download: the SVG and PDF are drawn at exactly that size. A PNG is made of whole pixels, so its bars are rounded, and the tool says when that changes the printed X-dimension by more than 2 percent. At 80 and 100 percent it does at all three resolutions (0.330 mm is 3.9 pixels at 300 dpi, drawn as 4), so use the SVG or PDF for print.
UPC-A, UPC-E, EAN-13 and add-ons
UPC-A is the 12-digit format that GS1 US says is used mainly by retailers in North America. UPC-E is a shorter form of the same GTIN-12 for small packs: GS1 explains that it encodes the number in six digits by leaving out zeros, so only numbers with enough zeros in the right places fit. For UPC-E, type the short form: 6 digits (number system 0), 7 digits starting with the number system, 0 or 1, or those 7 plus the check digit. The tool does not shorten a 12-digit UPC-A into its UPC-E form, so take the short form from your GS1 records.
EAN-13 holds a 13-digit GTIN-13: use it when your number has 13 digits, or type its first 12 to get the check digit. A two or five-digit add-on can be printed to the right of a UPC-A or EAN-13 in Add-on (2 or 5 digits); GS1 says the add-on is never scanned alone and is optional for the retailer to read. The chips shown first are UPC-A, EAN-13 and Code 128. UPC-E and the other types, up to Aztec, are under More types or on the barcode generator.
SVG, PDF and PNG, free for commercial use
Each format is drawn from the same set of shapes, so the three files match bar for bar. SVG is for a designer's packaging file. PDF is one page exactly the size of the barcode, for print shops and label software. PNG is for anything that takes only pictures, at 300, 600 or 1200 dpi. The pictures you make are yours to use, on products you sell too: there is no watermark, no sign-up and no charge, and the barcode library that draws them, bwip-js, is open source under the MIT license.
To make barcodes for a whole product list at once, use the bulk barcode generator. To check a list of check digits without drawing anything, use the UPC check digit calculator.
Frequently asked questions
Can this make a UPC number for my product?
No. It draws the barcode for a number you already have and computes or checks its check digit. UPC numbers are licensed by GS1: in the United States, GS1 US sells a single GTIN for $30 or a Company Prefix for 10 or more products, as of November 2026. See how to get a UPC code.
Is this UPC generator free?
Yes. There is no charge, no account and no watermark, and you can use the barcode pictures on products you sell.
What happens if I type 11 digits?
The tool adds the 12th digit, the check digit, with GS1's formula and shows the full number under the box. If you type 12 digits, it checks the last one and tells you if it is wrong.
Can I use a free or random UPC number?
Not for a product you sell in stores or on a marketplace. A number that is not licensed to your company belongs to someone else or to no one in GS1's records, and marketplaces check those records: GS1 US says Amazon may reject a UPC when the brand registered with GS1 does not match the listing. For your own shelves, bins or inventory, any number you assign works, in Code 128 or Code 39.
What size should a UPC barcode be?
At GS1's target size the bars are 0.330 mm wide at their narrowest, the symbol is 37.29 mm (1.468 in) wide with its quiet zones, and the bars are at least 22.85 mm (0.900 in) tall. GS1 allows 80 percent of that as the minimum and 200 percent as the maximum for retail checkouts.
I licensed my number from GS1 US. Do I need this?
Maybe not. GS1 US Data Hub, which comes with your license, makes a PNG of your UPC-A barcode. This page is for when you want an SVG or PDF at a size you choose, a UPC-E or add-on, a list of barcodes at once, or a sheet of labels.
Is what I type uploaded?
No. The barcode is drawn in your browser and the number never leaves your device; once the page has loaded it works offline. The site counts visits with Google Analytics and Microsoft Clarity, which never receive your numbers or captions. How it works shows how to check.