MAKEABARCODE.ORG

UPC Barcode Generator

Enter your 11 or 12 digit UPC to get a UPC-A barcode. Leave off the last digit and the check digit is worked out; type all 12 and it is checked. Download PNG or SVG, or print.

Pasted from a spreadsheet? Only the first column is used.

Make a numbered series

The bars say

A barcode holds one thing: the number

What’s printed

What the scanner gets

That’s all. No name, no price, no maker.

Looked up in the store’s product list

5012345678900…
0712345678911…

The bars are a typeface for a number, so anyone can draw them for any number, and this page does. What turns a retail number into your product is that it is registered to you: GS1 licenses company prefixes, and shops and marketplaces check them. For your own inventory, nobody needs to know. Use Code 128 and number things however you like.

The white space is part of it

keep clearkeep clear

A scanner finds a barcode by its blank margins. Text or a box edge too close to the bars, and it can’t tell where the barcode starts.

Scanners see in red

reads looks blank

Most scanners light the barcode with red. Red bars reflect it just like white paper does, so to the scanner they aren’t there. Black on white is safest.

Don’t cut the height

reads at an angle beam misses it

A tall barcode reads even when the beam crosses it at an angle. A squashed one only reads when the scanner is lined up exactly.

How a UPC-A number is built

A UPC-A has 12 digits. The first digits are the company prefix licensed from GS1, the next digits are the item number the company assigns, and the last digit is a check digit calculated from the other eleven. A scanner uses the check digit to catch misreads.

The check digit works like this: add the digits in the odd positions (1st, 3rd, … 11th) and multiply by 3, add the digits in the even positions, and the check digit is whatever brings the total up to the next multiple of 10. For 03600029145 that gives 2, so the full UPC is 036000291452. The panel above shows the sum for whatever number you type.

Size

At the standard 100% size (0.33 mm bar width) a UPC-A symbol is about 37.3 mm wide including its quiet zones, with bars about 23 mm tall. GS1 allows scaling between 80% and 200%. Avoid cutting the height down, which makes it harder to scan.

About the numbers: this tool draws a barcode for a number you already have. It does not issue product numbers. UPC and EAN numbers for products sold in stores come from GS1 (in the US, GS1 US), which licenses a company prefix to each brand. A number you make up yourself will scan, but it isn’t registered to you, and retailers and marketplaces that check GS1 data may reject it.