Barcode Page

UPC Generator

Generate a valid UPC-A or UPC-E barcode from 11 or 6 digits. The check digit is calculated and verified for you. Download PNG or SVG, free, no signup.

Ready

Type 11 digits and this tool adds the twelfth — the check digit — and draws a valid UPC-A. Switch to UPC-E for the short form used on small packages. Everything is drawn in your browser, so the numbers you enter are never uploaded.

UPC-A or UPC-E: which one do you need?

UPC-A is the full 12-digit barcode you see on almost every product sold in North America. It holds a 1-digit number system character (0–9), a 5-digit manufacturer code, a 5-digit product code, and the check digit at the end.

UPC-E is the compressed form. It fits six digits into about half the width, which is the whole reason it exists: a pack of gum or a lip balm has no room for a full UPC-A. The scanner expands UPC-E back to UPC-A when it reads it, so a shop can stock both without changing its system.

If you are not sure, use UPC-A. UPC-E is only worth it when the label is physically too small.

How the check digit is calculated

Number the eleven data digits from the right. Multiply the first by 3, the next by 1, the next by 3, and so on. Add the results, then subtract the total from the next multiple of ten. That single digit goes at the end.

Take 03600029145. From the right the weights run 3-1-3-1… and the sum comes to 48, so the check digit is 2 and the finished code is 036000291452.

When you paste all twelve digits, the tool recalculates the check digit and refuses to render if the last one does not match. That matters: a barcode with a wrong check digit still scans, but it scans into the wrong product, and that is harder to catch than one that fails outright.

What this tool cannot do

A barcode is just a picture of a number. It cannot create the number.

If you are putting a product on a shelf in a shop, or selling on Amazon, Walmart or Etsy, the UPC has to come from GS1 or a licensed reseller. Their database is what tells the retailer who owns that code. A generated barcode with a made-up number will print and scan perfectly, and the retailer will still reject the listing.

Where generated UPC-A codes are completely fine: internal stock keeping, warehouse bins, asset labels, loyalty cards, event tickets, and testing a scanner or a label printer before you buy a block of real numbers.

Size and printing

A nominal UPC-A is 37.29 mm wide by 25.93 mm tall at 100% magnification. Scanners tolerate roughly 80% to 200% of that, so the practical floor is about 30 mm. Below that, handheld scanners start failing and the checkout queue notices before you do.

Leave a quiet zone on both sides — at least ten times the width of the narrowest bar, and never less than 2.5 mm. The PNG export is rendered at 300 DPI, and the SVG export keeps the bars as vectors so you can scale it to any physical size without softening the edges.

If you are laying out a sheet of labels, the barcode maker lets you set the label width and height in millimetres and exports a print-ready PNG at 203, 300 or 600 DPI.

Related

Need a different symbology? The main generator covers nine of them, including Code 128, EAN-13 and ITF-14.

All barcode types