UPC-A Barcode Generator
Generate a valid UPC-A barcode by entering 11 digits. The 12th digit (check digit) is calculated automatically. UPC-A is the standard retail barcode in North America.
Barcodes generated locally using JsBarcode. All processing runs in your browser.
How it works
The tool computes the check digit before JsBarcode draws the code. It multiplies the digits in the 1st, 3rd, 5th, 7th, 9th and 11th positions by 3 and the rest by 1, adds the products and picks the digit that brings the total up to the next multiple of 10. For 01234567890 the weighted sum is 85, so the check digit is 5 and the barcode encodes 012345678905. The result is drawn into an inline SVG, ready for Download SVG or PNG.
Processing runs in your browser
All barcode generation happens locally in your browser tab. Our servers are not involved at any point.
Related operations
To encode URLs or text into scannable squares, try the QR code generator. To read codes back out of an image, use the QR code scanner. For hashing serial numbers before encoding, see the hash generator.
Frequently asked questions
- What is UPC-A?
- UPC-A (Universal Product Code type A) is a 12-digit barcode used on retail products in the United States and Canada.
- What is the difference between UPC-A and EAN-13?
- UPC-A has 12 digits and is used primarily in North America. EAN-13 has 13 digits and is the international standard. EAN-13 scanners can read UPC-A codes.
- Why do I enter 11 digits?
- The 12th digit is a check digit computed automatically. Official UPC-A codes require a GS1 company prefix, this tool generates the barcode image only.
- Is my data sent to a server?
- The barcode is generated using the JsBarcode library running locally in your browser.
Last reviewed September 30, 2026
Other pages for this tool
Related tools
- Background reading: Complete guide to QR and barcode tools