UPC-A Barcode Generator
Generate a free UPC-A barcode online in seconds. This free UPC-A barcode maker creates a 12-digit US retail code, calculates the check digit automatically, and gives you a print-ready PNG or SVG — with no signup and everything processed privately in your browser.
UPC-A Barcode Generator
Generate a print-ready UPC-A barcode free — 12-digit US retail code, correct check digit, PNG and SVG download. No signup, nothing uploaded.
Print tip: print at 100 percent scale, never use fit-to-page, and never crop the white quiet zones on either side — both break scanning. For a product you plan to sell, use a GS1-registered number; a generated code is fine for testing, mock-ups and internal labels.
100% private — the barcode is drawn in your browser with plain JavaScript. No library download, no upload, and it even works offline once the page has loaded.
How to use this UPC-A barcode generator
- Enter 11 digits to calculate the check digit, or enter all 12 digits to verify an existing code.
- Pick a print size and bar height to suit your label or carton.
- Click Generate barcode and check the full number and check-digit calculation shown under the bars.
- Download the barcode as a PNG or SVG, print at 100 percent, and test a printed sample before use.
How to generate a UPC-A barcode
To generate a UPC-A barcode, enter the first 11 digits of your product number in the box above, or enter all 12 digits if you already have a complete code to check. When you enter 11 digits, this UPC barcode generator calculates the final digit for you; when you enter 12 digits, it verifies that the last digit matches the calculation and warns you if it does not. You can also use the random-code button to create a valid test number while you are learning the format. Next, choose a print size: Compact for small labels, Standard for most retail packaging, or Large for shipping cartons, and pick a bar height that suits the space on your label. Click Generate barcode, check the full 12-digit number and the check-digit calculation shown under the bars, then download the result as a PNG for everyday printing or an SVG for sharp, scalable artwork. Print at 100 percent, never use fit-to-page, and keep the white quiet zones clear so scanners can read the code reliably. Finally, test the printed code with the linked UPC-A scanner before you apply it to stock. Unlike most generators, this one runs on plain JavaScript with no library download, works offline once loaded, shows the check-digit math, and offers print-size presets plus PNG and SVG downloads, all private in the browser.
What is a UPC-A barcode and where it is used
UPC-A is the 12-digit barcode most shoppers in the United States recognise on grocery, pharmacy, beauty and general retail packaging. It is the standard retail format in the United States and Canada, and its shorter cousin UPC-E uses zero suppression to compress a 12-digit UPC-A number into six digits for small packs. The first digits identify the manufacturer or brand owner, the following digits identify the specific product, and the final digit is a check digit that helps scanners catch typing or printing errors. Retailers, warehouses and point-of-sale systems use UPC-A because it is fast, standardised and easy to scan, even on curved or small packs when it is printed at a suitable size and contrast. A UPC-A barcode maker like this one is useful for mock-ups, internal stock labels, market testing and product samples. If you generate a UPC barcode for a product you plan to sell through major retailers, you normally need a GS1-registered company prefix so its number is globally unique. You can also scan a printed UPC-A code with our UPC-A barcode scanner to confirm that it reads back exactly as intended, and you can use our EAN-13 barcode scanner if you later work with international stock. For larger jobs, the bulk barcode generator can help when you need many codes at once rather than creating them one by one.
The UPC-A check digit explained
The UPC-A check digit is the twelfth and final digit, and its job is to catch mistakes before a barcode reaches a shelf. To calculate it, add the digits in odd positions and multiply that total by three, add the digits in even positions, add the two results together, and choose the digit that brings the total up to the next multiple of ten; if the total is already a multiple of ten, the check digit is zero. This tool shows that working below the barcode, so you can see why a particular final digit is correct rather than trusting a black box. For example, entering the first 11 digits of a well-known test code produces a complete 12-digit result, and entering a complete code with a wrong final digit produces a clear mismatch message with the correct replacement. That visibility is especially helpful when you are learning the format, training staff, or checking a code supplied by a manufacturer. The UPC-A check digit does not prove that a number is registered or authorised for sale; it only proves that the digits are internally consistent, so use a GS1-registered number for products you intend to sell. To check a code without generating it, use our GS1 check digit calculator, or validate a whole list of codes with our barcode validator.
UPC-A vs EAN-13
UPC-A and EAN-13 are closely related retail barcodes, but they are not interchangeable. UPC-A has 12 digits and is the standard retail format in the United States and Canada, while EAN-13 has 13 digits and is used widely across Europe and many other international markets. In practice, an EAN-13 code often starts with a country or region prefix, whereas a UPC-A code is commonly shown without a leading zero, and many modern scanners can read both formats. A UPC-A code becomes a valid EAN-13 by adding a leading zero, and the check digit stays the same. Example: UPC-A 036000291452 becomes EAN-13 0036000291452, both end in 2. If you sell only in the United States, UPC-A is usually the right choice; if you sell internationally, use our EAN-13 barcode generator instead, and check the requirements of each retailer or marketplace before printing. You can compare the two tools directly, and our EAN-13 barcode scanner is a useful next step when you receive stock coded for other markets. See the full UPC vs EAN comparison for a detailed look at length, markets and prefixes. For a printable UPC barcode in either format, keep the contrast high, avoid stretching the image, and test a printed sample before a full production run.
Frequently asked questions
A UPC-A code has 12 digits. The first 11 digits identify the product, and the twelfth digit is a check digit calculated from the first 11 digits.
No, you can use this generator without GS1 registration to create and test codes, but you normally need a GS1-registered company prefix before selling products through major retailers, because the prefix is what makes your product numbers unique in the retail system.
Yes. Download the PNG or SVG, print at 100 percent scale with high contrast and clear quiet zones, and test a printed sample with a scanner before a full production run.
UPC-A has 12 digits and is the standard retail format in the United States and Canada, while EAN-13 has 13 digits and is used internationally. A UPC-A code becomes a valid EAN-13 by adding a leading zero, and the check digit stays the same. Example: UPC-A 036000291452 becomes EAN-13 0036000291452, both end in 2.