Barcode generator (UPC, EAN, Code 128)

Pick a barcode type, type your number or text, and download the barcode as a PNG or SVG. For UPC and EAN, leave off the last digit and the check digit is added for you.

Everything runs in your browser. Your text and files stay on your device and are never uploaded.

12 digits (check digit added) or 13 digits (check digit verified).

4006381333931

How to use it

  1. Choose a type. UPC-A and EAN-13 are for retail products, Code 128 is for order numbers, labels and inventory.
  2. Type your number or text. For UPC and EAN you can enter all digits or leave off the last one.
  3. Adjust the bar width and height. Wider bars scan more reliably when the barcode is printed small.
  4. Download the PNG for documents and slides or the SVG for print and design tools.
  5. Print it at 100 percent size on white paper and test it with a phone scanner before you print a full run.

Which barcode type to pick

TypeHoldsUse it for
UPC-A12 digitsRetail products sold in the US and Canada
EAN-1313 digitsRetail products sold everywhere else, books (ISBN)
EAN-88 digitsSmall packages with no room for 13 digits
Code 128Any ASCII textShipping labels, order numbers, inventory, asset tags
Code 39A to Z, 0 to 9, a few symbolsBadges, IDs, older industrial and government systems
ITFEven count of digitsCartons and cases (ITF-14)

Real UPC and EAN numbers for products you sell come from GS1, which assigns your company prefix. This generator draws the bars for any number you give it, so use a number you own for anything sold in stores.

Questions

How do I make a UPC barcode?

Choose UPC-A and enter the 11 digits of your product number. The tool adds the twelfth check digit and draws the barcode. If you enter all 12 digits, it verifies the last one and tells you the right digit when it is wrong.

What is the difference between UPC and EAN?

UPC-A has 12 digits and is used in the US and Canada. EAN-13 has 13 digits and is used worldwide. A UPC-A is the same barcode as an EAN-13 with a leading zero, and modern scanners read both.

Can I use these barcodes to sell products in stores?

Only with a number you own. Retailers and marketplaces expect UPC and EAN numbers that GS1 assigned to your company. This tool draws the bars for the number you provide, it does not issue numbers.

Which barcode type should I use for inventory or shipping labels?

Use Code 128. It holds letters, digits and symbols, packs digit runs into half the width, and is read by every scanner. Code 39 works too but needs more space for the same data.

Why will my printed barcode not scan?

The usual causes are bars printed too small, low contrast, a missing blank margin around the code, or a stretched image. Keep black bars on white, leave the margin, and print at full size. Download the SVG for the sharpest result.

Are my numbers sent anywhere?

No. The barcode is drawn in your browser from the number you type. Nothing is uploaded or stored.

More free tools

All free tools