Generate a Code 128 barcode from any alphanumeric text. Code 128 is the most versatile linear barcode, it encodes all 128 ASCII characters and is widely used in shipping, logistics, and inventory systems.
Barcodes generated locally using JsBarcode. All processing runs in your browser.
The tool uses JsBarcode, a barcode encoding library, loaded lazily in your browser. It draws the barcode directly onto an inline SVG element. Download as SVG for vector output, or as PNG for raster use. All without a server.
All barcode generation happens locally in your browser tab. Our servers are not involved at any point.
To encode URLs or text into scannable squares, try the QR code generator. To read codes back out of an image, use the QR code scanner. For hashing serial numbers before encoding, see the hash generator.
Code 128 is a high-density linear barcode that can encode all 128 ASCII characters. It is widely used in logistics, shipping labels, and inventory management.
There is no hard limit, but longer strings produce wider barcodes. For practical scanning, keep the encoded string under 80 characters.
The barcode is generated using the JsBarcode library running entirely in your browser. Our servers are not involved.
Code 128 is general-purpose and accepts any ASCII text. EAN-13 is a fixed 13-digit format for retail products. Use Code 128 unless you specifically need EAN-13 for retail compatibility.