Barcode Generator

Create Code 128 barcodes from any text or number — download as 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. 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 is Code 128?

Code 128 is a high-density linear barcode that can encode all ASCII characters, making it ideal for shipping, logistics and inventory labels. Unlike simpler barcodes like Code 39, Code 128 encodes the full ASCII character set (letters, numbers, and symbols), so you can embed shipping addresses, product descriptions, or other text directly into a barcode. The high density packs information into a small space, making Code 128 compact enough for small package labels or detailed inventory tags. Code 128 is the standard for UPS, FedEx, and DHL shipping labels worldwide.

PNG or SVG for printing?

Use SVG for printing and labels because it stays sharp at any size; PNG is fine for quick on-screen use. SVG (vector graphics) scale perfectly to any resolution without quality loss, so barcodes generated at 10×10 mm scale identically to 100×100 mm with perfect sharpness. PNG (raster graphics) becomes pixelated or blurry if enlarged significantly, limiting usability for large format printing. For professional shipping labels, product packaging, or any printed barcode, SVG is the better choice; PNG is acceptable for temporary on-screen barcodes or quick internal use.

Is my data uploaded?

No. Everything runs locally in your browser using standard web APIs — your text, files and inputs are never uploaded to a server, so the tool works even offline once the page has loaded.

More Barcode Generator tools

Related tools