Barcode Generator

Type your data, pick a barcode type and download a sharp PNG or scalable SVG. UPC and EAN check digits are calculated for you, and Code 128 encodes any letters, numbers and punctuation.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to make a barcode

  1. Choose a barcode type.
  2. Enter your data. For UPC-A, type 11 digits (the 12th check digit is added); for EAN-13, 12 digits; for EAN-8, 7 digits.
  3. Adjust bar width and height, and choose whether to show the text.
  4. Download PNG for documents and label printers, or SVG for print design (it scales without blurring).

Which barcode type?

Type Data Use
Code 128 Any printable ASCII text and numbers Inventory, shipping labels, asset tags, internal SKUs
UPC-A 12 digits Retail products sold in the US and Canada
EAN-13 13 digits Retail products worldwide (books use ISBN-13 as EAN-13)
EAN-8 8 digits Small retail packages

Code 128 automatically switches to its compact numeric mode for long runs of digits, so number-heavy codes stay short.

About retail barcodes (UPC/EAN)

The barcode only encodes the number. To sell in most retail stores, the number itself must be a GS1 company prefix and product number licensed to your business; making up a UPC number can conflict with another company's product. For internal use (your own warehouse, library or event), Code 128 with your own codes is the simple choice.

Check digits

UPC and EAN codes end with a check digit that scanners use to catch misreads. Multiply digits alternately by 3 and 1 (starting with 3 at the rightmost data digit), add them up, and the check digit is what brings the total to the next multiple of 10. Example: UPC 03600029145 → check digit 2 → 036000291452.

Printing tips

  • Keep a quiet zone (blank margin) on both sides; the download includes one.
  • Print black on white. Colored or low-contrast bars may not scan.
  • Don't stretch the image unevenly; resize proportionally or use SVG.
  • Test-scan a printed sample with the scanner or phone app you'll use.

Frequently asked questions

Can I make a barcode with letters?

Yes. Choose Code 128, which encodes letters, numbers and common punctuation. UPC and EAN are numbers only.

Do I need to calculate the check digit?

No. Enter the digits without the check digit and it's added automatically. If you include it, the tool checks that it's correct.

PNG or SVG?

PNG works everywhere (documents, label software). SVG is vector, so it stays perfectly sharp at any size, which is ideal for packaging and print design.

Are these barcodes free to use?

Yes. The generator is free and the images are yours. For retail UPC/EAN numbers, you need numbers assigned to your company through GS1.