How a UPC-A number is built
A UPC-A number has 12 digits. The first digits are the company prefix GS1 assigned to the brand owner — its length varies with how many products the company needs to number — then the item reference the company assigns to each product, and finally a check digit calculated from the first 11. Under the bars, the first and last digits are printed smaller, outside the bars, and the bars for those two digits are drawn taller, like the guard bars at the edges and in the middle.
Type 11 digits and the tool adds the check digit; type all 12 and it checks the last one. If the check digit doesn’t match, the tool shows the digit it expected instead of changing your number, because the mistake is usually elsewhere: a swapped or mistyped digit.
UPC-E: the short version for small packs
UPC-E squeezes certain UPC-A numbers into 6 digits plus a number-system digit and a check digit, for packs too small for a full UPC-A — a lip balm or a pack of gum. Only numbers with a run of zeros in particular places can be shortened, so you can’t choose any UPC-E you like: it comes from a UPC-A that qualifies.
- Type the 12-digit UPC-A and choose UPC-E: if it can be shortened, the tool shows the UPC-E version; if not, it tells you to use UPC-A.
- Or type the 6, 7 or 8-digit UPC-E directly.
Scanners expand a UPC-E back to the full UPC-A, so both point at the same product record.
Label sizes that work for UPC-A
At standard size (100%) a UPC-A is 37.29 mm (1.47 in) wide including the blank margin each side, and GS1 allows 80% to 200% for checkout scanning. Common choices:
| Label | Typical use | How the barcode fits |
|---|---|---|
| 2 × 1 in (thermal) | Product and shelf labels | Wider than standard; bars are shortened when a name and price are added |
| 2⅝ × 1 in (Avery 5160 size, 30 per sheet) | Office printers | Plenty of width; bars shortened with text |
| 1¾ × ½ in (Avery 5167 size, 80 per sheet) | Small items | Tight: works without a name, and the preview warns if it drops below 80% |
| 4 × 6 in | Shipping labels and large signs | Full height at up to 200% |
The preview shows your exact size in percent. For the sheet layouts, use the Avery 5160 barcode labels page or the “Many labels” tab.
UPC or EAN?
A UPC-A is an EAN-13 that starts with 0, and checkout scanners worldwide read both. US and Canadian companies are usually given UPC numbers; elsewhere GS1 issues EAN-13. If a retailer outside North America asks for an EAN-13 and you have a UPC, put a 0 in front — the EAN-13 barcode generator does this for you. The full story is in EAN vs UPC: what’s the difference?
Where UPC numbers come from
In the US, UPC numbers come from GS1 US; in Canada, from GS1 Canada. Numbers sold cheaply by resellers are often old numbers first licensed to another company, so the GS1 record won’t show your brand — a problem with retailers and marketplaces that check. The GS1 guide explains the options. For stock that never leaves your business, use Code 128 with your own SKU instead.
How your data stays private
- Your browser does the work. Barcodes, previews and every download are made by code running in this page, on your own device. Spreadsheets are read in the page too.
- Nothing is sent to a server. Your numbers, product names, prices and files are never uploaded, to us or to anyone else. The page also loads Google Analytics and Google ads; useme4’s code never passes what you type or open to them.
- Only layout settings are remembered. Your browser keeps the label size, units, text size, printer resolution and alignment you last used, so the page opens the same way next time. Product details are never stored.
You can check this yourself: how to verify that nothing leaves your browser.
What this tool can’t do
- Give you UPC numbers. It draws barcodes for numbers you already have.
- Shorten every UPC-A to UPC-E. Only qualifying numbers can be shortened; the tool tells you when one can’t.
- Add-on codes. The 2- and 5-digit add-ons used on magazines aren’t supported.
- Non-Latin text in the PDF. Names print in English and Western European characters only; others print as “?” with a warning.
Frequently asked questions
How many digits is a UPC code?
A UPC-A has 12 digits: 11 that identify the company and product, plus a check digit. Type 11 and the tool adds the check digit.
What is UPC-E?
A shortened UPC for small packs. Only some UPC-A numbers, with zeros in particular places, can be shortened. Type the 12-digit UPC-A with UPC-E selected and the tool shows whether it can be.
Is a UPC the same as an EAN?
Almost: a UPC-A with a 0 in front is an EAN-13 for the same product, and scanners read both.
Can I print UPC labels on Avery sheets?
Yes. Use the “Many labels” tab and choose the Avery 5160 size (30 per sheet) or another sheet, then print the test page first to check alignment.
What size should a UPC barcode be?
At standard size it is 37.29 mm (1.47 in) wide including margins. GS1 allows 80% to 200% of that for checkout scanning; the preview shows your percentage.
Can I make a UPC barcode without buying a number?
You can draw a barcode for any valid number, but to sell in stores the number must be licensed to your company by GS1. For internal use, Code 128 with your own code is the better choice.