Skip to content
UPC Maker

How to Get a UPC Code for Your Product, Step by Step

By UPC Maker · Last reviewed November 13, 2026

You get a UPC code by licensing a number from GS1, the standards body that manages product numbers, and assigning it to one specific product. The barcode image comes last and is the easy part. The steps below run in the order you should do them, with the mistakes that cost sellers a reprint or a rejected listing.

Step 1: confirm you need one

A UPC is required by some sales channels and ignored by others. Large marketplaces and chain retailers ask for one. Your own website, a market stall and most handmade-goods platforms do not. If you resell another brand's product, the UPC already printed on the pack is the right one and you need nothing of your own.

The channel-by-channel answer is in the guide on whether you need a GS1 UPC. If every channel you plan to use is happy without one, skip to the last section of this post.

Step 2: count your variants

One UPC identifies one thing a shopper can pick. Every size, colour, scent, flavour and pack count is a separate number. Count before you license, because the count decides which GS1 option fits.

  • A candle in 3 scents and 2 sizes needs 6 numbers.
  • A T-shirt in 5 colours and 6 sizes needs 30.
  • The same candle sold singly and as a 3-pack needs a number for each.
  • A shipping case of 12 is not a UPC at all. Cases get a 14-digit number built from your prefix.

Add the products you expect to launch in the next couple of years, so you do not run out of numbers halfway through a range.

Step 3: license the numbers from GS1

Go to the GS1 office for the country your business is based in. In the United States that is GS1 US. There are two ways to license, as covered in the guide linked above:

  • Single GTINs. Licensed one at a time. A fit for a brand with a handful of products.
  • A company prefix. A block of numbers that all begin with digits licensed to you. A fit for a growing range, and needed if you will build case numbers.

GS1 publishes its current fees, so check them on the day you apply. Whichever option you choose, enter your brand name exactly as it will appear on your packaging and listings. Marketplaces compare the two.

How many products a prefix covers

A UPC has 12 digits. The last is a check digit, so your prefix and your own item reference share the other 11. A longer prefix leaves fewer digits for you.

Prefix lengthDigits left for youProducts you can number
10 digits110
9 digits2100
8 digits31,000
7 digits410,000
6 digits5100,000

Step 4: assign a number to each product

With a single GTIN, the full number is handed to you. With a prefix, you build each number yourself: prefix, then an item reference you choose, then the check digit.

Give out item references in plain sequence: 001, 002, 003. Do not try to make the digits mean something, such as 1 for red or 2 for large. The scheme breaks when the range grows. Meaning belongs in your SKU. The SKU generator builds readable ones.

Worked example

Take an 8-digit prefix of 08501234. This one is for illustration only, so do not use it. The first product gets item reference 001, which gives the 11 digits 08501234001.

Now the check digit. Starting from the right, multiply the digits by 3, 1, 3, 1 and so on:

  1. From the right, the digits are 1, 0, 0, 4, 3, 2, 1, 0, 5, 8, 0.
  2. Multiplied by 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3 they become 3, 0, 0, 4, 9, 2, 3, 0, 15, 8, 0.
  3. The sum is 3 + 0 + 0 + 4 + 9 + 2 + 3 + 0 + 15 + 8 + 0 = 44.
  4. The next multiple of 10 is 50, and 50 minus 44 is 6.

The finished UPC is 085012340016. The second product, 08501234002, sums to 47 and ends in 3: 085012340023. The third sums to exactly 50, so its check digit is 0: 085012340030. The check digits do not run in order, so run each number through the check digit calculator.

Step 5: record what each number is

A licence gives you the numbers. It does not record which product each one belongs to. That part is yours. Enter each product against its number in the member tool GS1 gives you, and keep your own list as well: number, SKU, product name, variant, date assigned.

This list is what stops the worst mistake in the whole process, which is giving one number to two products. GS1's rules say a number that has been assigned to a product is not to be given to a different one later, even after the first is discontinued.

Step 6: make the barcode

Now the number becomes artwork. Type it into the UPC generator and download the SVG for packaging or the PNG for label software. For a whole range, paste the list into the bulk barcode generator. If a GS1 office outside North America issued your numbers, they will have 13 digits and belong in the EAN-13 generator.

The image is only a picture of the number. Making it here does not register or license anything. The licence in step 3 is what makes the number yours.

Step 7: print a proof and scan it

Print one barcode at final size before the full run. Scan it and compare the result with your list, digit for digit, including the zero at the front. The rules on minimum size, white margins and colours are in the guide to barcode size and printing.

Then enter the same 12 digits wherever the product is listed. On your own store that is the barcode field on each variant. If you do not have a store yet, you can start a free Shopify trial and add the numbers as you create the products.

Mistakes that cause trouble later

  • Typing in a made-up number. It will scan, and it very likely belongs to another company. A marketplace that looks it up will see a brand that is not yours.
  • One number for all variants. A shop cannot tell the medium from the large at the till, and stock counts go wrong.
  • Dropping the leading zero. Spreadsheets strip it. An 11-digit number is not a UPC.
  • A brand name that does not match. The name on the GS1 record should be the name on the listing.
  • Letting a prefix renewal lapse. Ask GS1 what happens to your numbers before you stop renewing.

If you do not need a licensed number

Selling only on your own site or in person, you can label stock with your own codes instead. Print each SKU as a Code 128 barcode and scan it in your stockroom. Leave marketplace barcode fields empty. Do not fill them with an invented number.

Frequently asked questions

Can I get a UPC code for free?

The barcode image is free, and you can make it on this site. The number is not. Numbers that retailers and marketplaces accept are licensed from GS1, which publishes its current fees. If you only need to scan stock inside your own business, your own SKU printed as a barcode is free and works well.

Do I need a separate UPC for each colour and size?

Yes. Each variant a shopper can choose gets its own number. A different pack count needs its own number too, so a single unit and a 3-pack are two UPCs.

Can I reuse a UPC from a product I stopped selling?

No. GS1's rules say a number assigned to one product should not be reassigned to another. Old stock and retailer databases still link that number to the first product, so use the next unused number.

Does my supplier or factory give me the UPC?

Not for your own brand. The number should be licensed to the brand owner, which is you. A factory should print the number you supply. If you resell an existing branded product, use the UPC already on it.

Keep reading