Code 128 Barcode Generator

Create scannable Code 128 barcodes and export PNG or SVG.

Processed locally — nothing is uploaded

About Barcode Generator

Encodes Code 128 subset B, which spans the printable ASCII range — letters, digits, punctuation and spaces. Export SVG for anything going to print, since a scaled-up PNG loses the crisp edges scanners depend on.

Generate a scannable Code 128 barcode from any text or number and export it as a crisp PNG or vector SVG for labels and inventory. It is rendered in your browser with nothing uploaded.

Generate a scannable Code 128 barcode from any text or number and export it as a crisp PNG or vector SVG. Code 128 is a compact, high-density format widely used for shipping labels, inventory, asset tags and product tracking.

Type a value, preview the barcode and download it ready for printing. Scan the preview with a phone before committing to a print run — a symbol that is too small or too low-contrast fails at the scanner, not on screen.

Learn how this works

Frequently asked questions

What can Code 128 encode?

The full ASCII set — letters, digits, punctuation and control characters — which is what makes it the workhorse for shipping labels, inventory SKUs and internal asset tags where codes mix letters and numbers.

How do I make sure it scans reliably?

Print it large enough and keep clear whitespace either side — the 'quiet zone'. Most scan failures come from a code printed too small, squashed to fit, or with something crowding its margins.

How does it differ from a QR code?

Code 128 is one-dimensional and read by a laser scanner sweeping across it, so it holds far less data but works with the barcode guns already in warehouses and shops. QR codes hold more and are read by cameras.

Common Use Cases

  • Generating asset tags for inventory or equipment
  • Producing scannable SKU labels for stock
  • Creating a test barcode while developing scanner software

More Barcode Generator tools

Related tools