How to Use the UPC Generator
You can generate a UPC code image in a few seconds. The preview updates as you type, so there’s no button to wait for.
Enter 11 or 12 digits
Type the first 11 digits and the check digit appears on its own. If you paste all 12, the tool tests the last one and tells you if it doesn’t match. Only digits work in a UPC. Letters and symbols need a different barcode type, such as Code 128.
To try the tool without a number of your own, load the sample, 012345000058. It’s the example used in GS1’s specification, so treat it as a test number and never print it on a product.
Set the size, height, caption and colors
The size slider runs from 80% to 200% of the standard UPC size. You can turn the printed digits on or off, add a short caption such as a product name, and change the bar and background colors. A warning appears if your colors may be hard for a scanner to read.
Tap any digit under the preview to light up the bars that carry it. It’s a quick way to see how your number becomes a pattern.
Download, print or copy
Save the barcode as SVG for packaging artwork, PNG for labels and documents, or JPG where nothing else is accepted. You can also print it, copy it to your clipboard or share a link that reopens the same settings. If you have a spreadsheet of numbers, you can make barcodes from a list instead of entering them one at a time.
Do You Need a GS1 Number? It Depends on Where You Sell
A barcode has two parts: a number and the bars that show it. A free tool can draw the bars. Who may use the number is a separate question.
| Where you sell | Do you need a licensed number? |
|---|---|
| Walmart Marketplace | Yes. Walmart says it checks product IDs against the GS1 database. |
| Amazon | Yes, unless your category or product has an exemption. Amazon checks identifiers against GS1 data. |
| Retail stores and distributors | Ask the buyer. Expect to be asked for a GS1 number that belongs to your brand. |
| Your own stock room or shelves | No. Internal labels only have to make sense to your own system. |
| Reselling another brand’s product | Don’t make a new one. Use the barcode already on the package. |
Rules change, so read the current policy of each sales channel before you print packaging. You can read more about getting a licensed number and about marketplace rules.
What a licensed number costs from GS1 US
GS1 US sells a single product number, called a GTIN, for $30 with no yearly renewal. For more products, you license a company prefix that has a first-year fee and a yearly renewal. These are the list prices on the GS1 US website, checked on November 28, 2026.
| Products you can number | First fee | Yearly renewal | Five-year total |
|---|---|---|---|
| 1 (single GTIN) | $30 | $0 | $30 |
| 10 | $250 | $50 | $450 |
| 100 | $750 | $150 | $1,350 |
| 1,000 | $2,500 | $500 | $4,500 |
| 10,000 | $6,500 | $1,300 | $11,700 |
| 100,000 | $10,500 | $2,100 | $18,900 |
The five-year total is the first fee plus four renewals. On list price alone, buying single numbers costs less than the 10-product prefix for up to 8 products in the first year, and up to 14 products over five years. A prefix still gives you one company identifier across your whole range, which single numbers don’t. GS1 US can change these prices, so check them before you buy.
Does each size or color need its own number?
Yes. GS1 treats each size, color or flavor as a separate product with its own number. A shirt sold in three colors and five sizes needs 15 numbers. A 3-pack and a 6-pack of the same item also get different numbers.
What the 12 Digits of a UPC Mean
A UPC-A number has three parts, read from left to right.
| Part | Length | What it does |
|---|---|---|
| Company prefix | Varies, often 6 to 10 digits | Identifies the company that licensed it from GS1 |
| Item reference | The rest of the first 11 digits | Chosen by the company, one per product variant |
| Check digit | 1 digit | Calculated from the other 11 to catch errors |
Our guide explains what each digit stands for in more detail.
How many products can your prefix number?
The prefix and item reference always add up to 11 digits. A longer prefix leaves fewer digits for products.
| Prefix length | Item reference digits | Products you can number |
|---|---|---|
| 10 | 1 | 10 |
| 9 | 2 | 100 |
| 8 | 3 | 1,000 |
| 7 | 4 | 10,000 |
| 6 | 5 | 100,000 |
Use the estimator under the tool to enter how many products you plan to sell. It shows the matching capacity tier and its GS1 US list price. Count every variant, and leave room for products you haven’t launched yet.
How the UPC Check Digit Is Calculated
The last digit of a UPC comes from the first 11. GS1 uses this method:
- Multiply the digits in positions 1, 3, 5, 7, 9 and 11 by 3.
- Multiply the digits in positions 2, 4, 6, 8 and 10 by 1.
- Add all the results together.
- Subtract the total from the next multiple of ten. If the total already ends in zero, the check digit is 0.
A standalone check digit calculator shows these steps for any number.
Worked example, every line shown
Take the first 11 digits 01234500005.
| Step | Calculation | Result |
|---|---|---|
| Odd positions | 0 + 2 + 4 + 0 + 0 + 5 | 11 |
| Multiply by 3 | 11 x 3 | 33 |
| Even positions | 1 + 3 + 5 + 0 + 0 | 9 |
| Total | 33 + 9 | 42 |
| Check digit | 50 - 42 | 8 |
The full number is 012345000058.
Which mistakes the check digit catches and which it misses
If one digit is wrong, the check always fails. That covers the most basic typing slip.
Swapped neighbors are different. The check misses a swap when the two digits differ by exactly 5: the pairs 0 and 5, 1 and 6, 2 and 7, 3 and 8, and 4 and 9. That’s 10 of the 90 ways two different digits can sit side by side. So a passing check digit means the number is consistent, not that it’s the right number for your product.
How the Bars Encode Each Digit
Every digit in a UPC is seven thin slots, called modules. Each module is either dark or light, and each digit forms two bars and two spaces.
Guard bars and quiet zones
Reading from left to right, a UPC-A symbol has these parts:
| Part | Width in modules | Purpose |
|---|---|---|
| Left quiet zone | 9 | Blank margin before the bars |
| Start guard | 3 | Marks where reading begins |
| Left six digits | 42 | First half of the number |
| Center guard | 5 | Splits the two halves |
| Right six digits | 42 | Second half, including the check digit |
| End guard | 3 | Marks the end |
| Right quiet zone | 9 | Blank margin after the bars |
That’s 113 modules in total. The guard bars hang a little lower than the others, as do the bars of the first and last digits.
Left and right digit patterns
In the table below, 1 is a dark module and 0 is a light one.
| Digit | Left half | Right half |
|---|---|---|
| 0 | 0001101 | 1110010 |
| 1 | 0011001 | 1100110 |
| 2 | 0010011 | 1101100 |
| 3 | 0111101 | 1000010 |
| 4 | 0100011 | 1011100 |
| 5 | 0110001 | 1001110 |
| 6 | 0101111 | 1010000 |
| 7 | 0111011 | 1000100 |
| 8 | 0110111 | 1001000 |
| 9 | 0001011 | 1110100 |
Each right pattern is the exact reverse in shade of the left one. This difference lets a scanner tell which way round it’s reading, so a package can pass the scanner upside down.
UPC-A or UPC-E?
UPC-A is the normal 12-digit barcode. UPC-E is a shorter symbol for small packages, such as cosmetics or gum. It drops a run of zeros from the number and prints six digits between the outer two. A scanner can expand it back to the full 12 digits.
Choose UPC-A unless the package is too small for it. You can switch to UPC-E in the tool, or convert between UPC-A and UPC-E on its own page.
The four zero suppression rules
Only numbers that start with 0 and have zeros in the right places can become UPC-E. These examples come from the GS1 General Specifications.
| Rule | When it applies | UPC-A | Six UPC-E digits |
|---|---|---|---|
| 1 | Digit 11 is 5 to 9, digits 7 to 10 are zero, digit 6 isn’t | 012345000058 | 123455 |
| 2 | Digits 6 to 10 are zero, digit 5 isn’t | 045670000080 | 456784 |
| 3 | Digit 4 is 0, 1 or 2, digits 5 to 8 are zero | 034000005673 | 345670 |
| 4 | Digit 4 is 3 to 9, digits 5 to 9 are zero | 098400000751 | 984753 |
The rules are checked in order, and the first match wins.
How UPC differs from EAN-13
EAN-13 has 13 digits and is common outside North America. A UPC-A number can be read as an EAN-13 by adding a zero at the front. See how UPC differs from EAN if you sell abroad.
What Size Should You Print a UPC Barcode?
The standard, or 100%, size uses a module width of 0.330 mm. GS1 gives a range of 80% to 200% for retail UPC symbols.
| Size | Width with quiet zones | Bar height |
|---|---|---|
| 80% | 29.83 mm (1.17 in) | 18.28 mm (0.72 in) |
| 90% | 33.56 mm (1.32 in) | 20.57 mm (0.81 in) |
| 100% | 37.29 mm (1.47 in) | 22.85 mm (0.90 in) |
| 150% | 55.94 mm (2.20 in) | 34.27 mm (1.35 in) |
| 200% | 74.58 mm (2.94 in) | 45.70 mm (1.80 in) |
Bar height here means the bars only, without the digits underneath. The full size chart covers more steps. Cartons scanned in warehouses can have larger minimums, so ask your retailer before printing shipping cases.
Quiet zone and color
Leave the blank margins alone. Text, borders or package edges inside a quiet zone can stop a scan. Black bars on a white background are the safest choice. Avoid red or orange bars, because many scanners use red light and can’t see them.
PNG, SVG or JPG for your printer
SVG is a vector file, so it stays sharp at any size. It’s the best file to send a packaging designer. PNG works well for label software and documents. JPG can blur bar edges, so use it only when you have to.
Common Mistakes That Stop a UPC From Scanning
Most failures come from how the barcode was printed or placed.
- Stretching the image to fit a space, which changes the bar widths.
- Cropping off the quiet zones.
- Printing below 80% size.
- Using low contrast, such as dark bars on a dark box.
- Placing the barcode across a seam, fold or tight curve.
- Cutting the bar height to save room.
Print one label at final size and scan it before you order thousands. A phone scanner app is a useful first test, though it isn’t the same as a store scanner or a formal print grade. If your test fails, here’s how to fix a barcode that won’t scan.
Where UPC Barcodes Are Used
UPC barcodes identify retail products at checkout in the United States and Canada. Stores also scan them to receive deliveries, count inventory and reorder stock.
A UPC isn’t the same as a SKU. The UPC number stays with the product wherever it’s sold, while a SKU is a code each business sets for its own records. Our comparison shows how a UPC differs from a SKU.
More Barcode Tools
- Check digit calculator: test a number and see each step.
- UPC-A to UPC-E converter: shorten or expand a number.
- Bulk barcode maker: create many barcodes from a list.
- Barcode maker: common barcode types in one place.
- Code 128 barcodes: letters and numbers for shipping and stock.
- Code 39 barcodes: simple codes for parts and badges.
- ISBN barcodes: back-cover barcodes for books.
- SKU maker: build consistent internal item codes.
- ITF-14 barcodes: codes for shipping cartons.
- EAN-13 barcodes: retail codes used widely outside North America.
UPC Generator FAQs
Is a UPC a barcode?
A UPC includes both a 12-digit number and the barcode that shows it. People often use “UPC” for either one. Barcode is the wider term, since many other barcode types exist.
Is this UPC generator free?
Yes. You can make and download barcodes without paying or signing up. A licensed number from GS1 is a separate purchase.
Can I generate my own UPC code?
You can generate the barcode image yourself. You shouldn’t make up a number for retail sale, because it may already belong to another company. A valid check digit doesn’t make a number yours.
Do I need a GS1 number to sell my product?
It depends on where you sell. Walmart and Amazon check product numbers against GS1 data, though Amazon has some exemptions. For internal labels you don’t need one.
How much does a UPC code cost?
GS1 US listed a single number at $30 with no renewal, and a 10-product prefix at $250 plus $50 a year, when checked on November 28, 2026.
Will a barcode made here work on Amazon or Walmart?
The image can encode your number correctly. Acceptance depends on the number itself: it needs to be one the marketplace can match to your product and brand.
How many digits are in a UPC?
A UPC-A has 12 digits, including the check digit. A UPC-E shows eight digits that stand for a full 12-digit number.
Do UPC barcodes expire?
A printed barcode doesn’t stop scanning with age unless it’s damaged or faded. A GS1 company prefix does need its yearly renewal to stay licensed to you. A single GS1 US number has no renewal fee.
Is my number uploaded anywhere?
No. The barcode is built in your browser, and the number you type isn’t sent to a server to make it. A shared link carries the number in the link itself, so only send it to people who should see it.
Which file should I send to my printer?
Send the SVG. It keeps sharp bar edges at any size. Ask the printer not to stretch or recolor it, and request a proof you can scan.