Barcode Generator

Enter a product number or a SKU, and the generator draws a UPC-A, EAN-13, EAN-8 or Code 128 barcode. It calculates the UPC and EAN check digit for you.

  • SVG in exact size for print
  • A sheet with many codes
  • Nothing is sent to a server

Barcode type

11 digits, the generator adds the 12th (check) digit. Retailers and marketplaces in the US and Canada ask for UPC-A.

Barcode

Your barcode appears here

Print size

What is a UPC barcode?

A UPC-A barcode is 12 digits written as bars that a checkout scanner reads. The number identifies the product in the store database, with its name, price and stock.

The first digits are the GS1 company prefix, then comes the product number, and the last digit is the check digit. For internal use, a store can assign its own numbers starting with 2 or 4, or SKUs in Code 128. To write a check amount in words, use the number to words converter.

Samples drawn by the generator

UPC-A barcode with the number 412345678903
UPC-A, in-store number with prefix 4
Code 128 barcode with the SKU SKU-1042-BLK
Code 128, a SKU with letters
12 digits
UPC-A, the standard in the US and Canada
13 digits
EAN-13, the standard in the rest of the world, read by US scanners too
2 and 4
UPC-A prefixes for use inside your own store
1.469 in
UPC-A and EAN-13 width with margins at 100%, print at 80% to 200%

Where barcodes are used

Your own store

  • A checkout scanner for your own products
  • Packaged goods you make yourself
  • Shelf labels and price tags

Warehouse

  • A SKU on boxes and shelves in Code 128
  • Inventory counts with a scanner or a phone
  • The order number on a packing slip

Retail and marketplaces

  • A GS1 number for retail chains and Amazon
  • A label to the retailer’s requirements
  • The same number on the package and in your catalog

How to make a barcode for a product

First decide where you will sell the product, because that decides who issues the number.

  1. Decide where the number comes from Retail chains and Amazon need a number from GS1. For your own store, warehouse or production, an in-store number starting with 2 or 4 or a Code 128 SKU works.
  2. Enter the number For UPC-A, 11 digits are enough, the generator adds the 12th. If you enter all 12, it checks the last one and shows an error if the number has a typo.
  3. Pick the size 100% fits most packages. Do not print below 80%, or a scanner may not read it.
  4. Download the SVG A vector file stays sharp in print and opens in Illustrator, Figma, Canva and label software.
  5. Test with a scanner Print a test sheet and scan it with a checkout scanner or a phone camera. For many codes at once use Several codes, with the label after a semicolon.

FAQ

Ask about anything these answers do not cover.

Ask a question
How do I get a UPC barcode for my product?

Numbers for retail are issued by GS1, in the US by GS1 US. A company licenses a company prefix or single numbers and then assigns them to its products. Amazon and large retailers check numbers against the GS1 database. The generator draws a barcode for any number but does not register it. For products sold only in your own store, a UPC-A number starting with 2 or 4 is enough.

What is the difference between UPC and EAN?

UPC-A has 12 digits and is the standard in the US and Canada. EAN-13 has 13 digits and is the standard in the rest of the world. A UPC-A number is an EAN-13 number with a leading zero, and modern scanners read both.

Can I make my own barcode?

Yes, for internal use. GS1 reserves UPC-A numbers starting with 2 or 4 and EAN-13 numbers from 200 to 299 for use inside a store or company, and Code 128 encodes any SKU. Other stores will not recognize such a code, so retail chains need a number from GS1.

How is the UPC check digit calculated?

Multiply the digits in odd positions (1st, 3rd… 11th) by 3, add the digits in even positions and add it all up. The check digit brings the sum up to the next multiple of 10. For 41234567890 the sum is 97, so the check digit is 3 and the full number is 412345678903. The generator does this for you.

What is the difference between UPC and Code 128?

UPC-A and EAN-13 encode a fixed number of digits, and checkouts all over the world read them, so they go on products for sale. Code 128 encodes digits, Latin letters and symbols of any length, so it fits SKUs, packing slips, boxes and warehouse shelves.

What size should a printed barcode be?

At 100% a UPC-A or EAN-13 code is 1.469 inches (37.29 mm) wide including the white margins, and the narrowest bar is 0.013 inches (0.33 mm). GS1 allows 80% to 200%. Do not cut the bar height and keep a white margin on both sides, or a scanner may not read the code.

Why does the scanner not read my barcode?

Most often the code is printed below 80%, the white margin on a side is cut off or the bars are too short. Color is another cause, because a laser scanner does not see red bars or a dark background, so print black on white. Use the SVG for print, because an enlarged PNG gets blurry.

Are my codes stored?

No. The barcode is drawn in your browser, and the numbers and labels are not sent anywhere.