UPC-A Barcode Generator
Enter your own UPC-A digits to calculate or validate the check digit and create one local barcode image.
Show check digit calculation
- Odd positions × 3
- × 3
- Even positions
- Weighted total
- Check digit
The number and barcode stay in this browser. Analytics records only that the tool ran or an action was used—not the digits you enter.
Calculate or validate the twelfth digit
UPC-A uses 11 data digits plus one check digit. The tool never replaces what you typed: an 11-digit input produces a separate completed number, while an invalid 12-digit input explains the expected final digit.
Keep leading zeros
A leading zero belongs to the identifier, so the engine handles UPC-A as text rather than as an ordinary number. Spaces, dashes, full-width digits, and other characters are rejected instead of being removed silently.
One source for SVG and PNG
The preview uses the standard 95-module UPC-A bar pattern with nine-module quiet zones. SVG preserves the vector bars; PNG is rasterized locally from that same SVG markup.
Separate barcode rendering from identifier authority
Creating a bar pattern does not assign ownership of a GTIN or guarantee acceptance by a store, marketplace, printer, or scanner. Confirm identifier licensing and output requirements with the organization that will use the code.
Frequently asked questions
What number should I enter?
Enter an 11-digit UPC-A body to calculate its final check digit, or enter all 12 digits to validate the final digit. Leading zeros are part of the number and are preserved.
Does this tool give me an official UPC?
No. This page turns a number you provide into a UPC-A bar pattern and checks its final digit. It does not issue, sell, register, or assign GTINs. Use GS1 when your business needs an authorized identifier.
How is the UPC-A check digit calculated?
The first 11 digits are weighted using the GS1 Mod-10 method: add the odd-position digits, multiply that sum by three, add the even-position digits, then choose the digit that brings the total to the next multiple of ten.
What is the difference between SVG and PNG?
SVG keeps the barcode as scalable vector shapes. PNG is a fixed 452 by 360 pixel image made from the same SVG source. Test the result in your own workflow before relying on it.