Barcode Generator

Generate various barcode formats including UPC, EAN, and Code128.

Make a barcode for a product, a label, a library card or a stock list. Pick the type, type the number or text, and the barcode updates as you type. You can set the bar width, height, colours and whether the number is printed underneath, then download it as a PNG for printing or an SVG that stays sharp at any size. The generator covers Code 128 (any text), EAN-13, EAN-8, UPC-A, UPC-E, Code 39, ITF-14, Interleaved 2 of 5, Codabar, MSI Plessey, Pharmacode and the EAN-2 and EAN-5 add-ons. For EAN and UPC it adds the check digit for you, or tells you if the one you typed is wrong. It runs in your browser with the open-source JsBarcode library.

Retail EAN/UPC numbers must be licensed from GS1 to be used on products sold in stores; this tool draws the barcode for any number you enter.

Common use cases

  • Print shelf or bin labels for a stockroom
  • Add an EAN-13 or UPC-A barcode to product packaging artwork
  • Make Code 128 labels for asset tags, files or parcels
  • Make Codabar barcodes for a library or a membership card

How to use

  1. Choose the barcode type. A sample value appears so you can see the format.
  2. Type your number or text. If it doesn't fit the format, a message says why.
  3. Adjust bar width, height, font size and colours if you need to.
  4. Download it as PNG (for documents and label printers) or SVG (for design software and large prints).

FAQ

Which barcode type should I use?

For products sold in shops, use the EAN-13 (most countries) or UPC-A (US and Canada) number you were given. For your own labels, Code 128 is the usual choice: it holds letters, digits and symbols and scans well. ITF-14 is for outer shipping cartons.

Can I make up a number for a product sold in stores?

No. Retail EAN and UPC numbers must be licensed from GS1 so that each product's number is unique. This tool draws a barcode for any number you enter, but it can't register one for you.

What is the check digit?

EAN and UPC numbers end in a digit calculated from the others, so a scanner can spot a misread. Enter 12 digits for EAN-13 (or 11 for UPC-A) and the tool adds it; enter all 13 and it checks yours.

Will it scan after printing?

Usually, if you keep dark bars on a light background, leave the white margin around the code, and don't print it too small. Test it with your scanner, or with the barcode scanner on this site, before you print a batch.