Barcode Generator

Generates a barcode (CODE128, EAN, UPC and more).

The Barcode Generator turns any text or number into a scannable barcode image right in your browser. It supports common formats including CODE128, CODE39, EAN13, EAN8, UPC, ITF14, MSI, pharmacode, and codabar, and lets you download the result as a PNG. It's handy whenever you need to quickly create a barcode for labels, products, or inventory without installing software.

Common uses

  • Generate a CODE128 barcode to print on a shipping or inventory label
  • Create an EAN13 or UPC barcode for a product mockup or catalog
  • Encode an internal SKU or asset ID as a scannable code
  • Produce a pharmacode or codabar barcode for healthcare or library workflows
  • Quickly test how a value renders across different barcode symbologies
  • Export a barcode as a PNG to drop into a document, slide, or design file

FAQ

Is my data sent to a server?

No. The barcode is rendered entirely in your browser using JavaScript on a canvas element, and nothing you type is uploaded or stored remotely.

Which barcode formats are supported?

CODE128, CODE39, EAN13, EAN8, UPC, ITF14, MSI, pharmacode, and codabar. You pick the format from the Format dropdown, and CODE128 is the default.

Why does my input show an error?

Each format has its own rules — for example EAN13 expects digits of a specific length and pharmacode accepts only certain numeric ranges. If the value doesn't match the selected format's requirements, the generator reports the error and no barcode is drawn.

Can I download the barcode?

Yes. Once a valid barcode is generated you can export it as a PNG image using the PNG button, which saves a file named barcode.png to your device.

Is the human-readable value shown under the barcode?

Yes. The encoded value is printed below the bars so you can verify what was generated at a glance.

Related tools

  • Fake Data Generator
  • Lorem Ipsum
  • NanoID Generator
  • Password Generator
  • QR Code Generator
  • Random Generator
  • Test Data Generator
  • Token Generator