Barcode Generator

Generate Code128 barcodes from any ASCII text

Supports ASCII characters 32-127 (letters, numbers, symbols)
Code128B11 characters

Barcode Generator

Generate Code128 barcodes from any ASCII text

Features

  • Generate Code 128, EAN-13, UPC-A, and Code 39 barcodes
  • PNG download at configurable size and bar width
  • Code 128B (subset for ASCII 32-127) — most input text works
  • Implementation uses a hand-curated Code 128 pattern table — scanner compatibility should be verified before production use
  • For production-critical applications, use a dedicated library like JsBarcode

How to use

  1. Enter the text or data you want to encode in the input field.
  2. Adjust bar width and height using the sliders.
  3. Toggle the text label visibility as needed.
  4. Click Download PNG to save the generated barcode.

Tips & Best Practices

  • Code 128 is the densest 1D barcode for ASCII; Code 39 is older and less dense but more universal.
  • EAN-13 / UPC-A are for retail products — they have a checksum digit and fixed length.
  • For inventory tracking, Code 128 is the modern default; for retail SKUs, EAN/UPC are required by retailers.
  • Test the generated barcode with a real scanner (phone camera works) before printing large runs.
  • Quiet zones (whitespace before / after the barcode) are required for reliable scanning — the generator includes them.

FAQ

What is Code128?

Code128 is a high-density 1D barcode format that can encode all 128 ASCII characters. It is widely used in logistics, inventory management, and shipping labels.

What characters can I encode?

Code128B supports all ASCII characters from 32 (space) to 127 (DEL), including uppercase and lowercase letters, numbers, and common symbols.

Is this tool free to use?

Yes, this tool is completely free with no registration required. There are no usage limits, no premium tiers, and no hidden costs.

Is my data safe and private?

Absolutely. All processing happens locally in your browser. No data is ever sent to our servers or any third party.

Does this tool work offline?

Once the page is loaded, the tool works entirely in your browser without requiring an internet connection. The barcode is generated client-side using an HTML canvas.