Barcode Generator

Generate Code 128 barcodes from text. Supports full ASCII.

100% local processing. Your data never leaves your computer
Hello 123

Code 128

About this tool

The Barcode Generator creates barcodes in the **Code 128** format, one of the most versatile and widely supported standards by industrial and commercial scanners. Code 128 encodes all printable ASCII characters — letters, numbers and symbols — in vertical bars of varying widths, producing a compact and reliable representation.

To generate a barcode, simply type the desired text in the field. The code is rendered instantly. You can adjust the **bar width** (from 1 px to 4 px, for a more compact or more readable result), the **height** of the barcode (from 60 px to 200 px) and choose whether the text is printed below the bars. When the result looks right, click "Download PNG" to save the image.

Practical use cases include: creating labels for internal products in small businesses, generating codes for manual inventory tracking, printing identifiers on event materials, creating custom tracking codes, and testing integration with barcode readers in POS systems.

Rendering is done by the JsBarcode library in the browser itself. No data is sent to external servers and no account is required.

Frequently asked questions

Is the tool free?

Yes, completely free with no limits.

Is my data sent to a server?

No. The barcode is generated locally in the browser. No text you enter leaves your device.

Does it work on mobile?

Yes, in any modern browser for Android and iOS.

Why did I get an invalid characters error?

Code 128 supports all ASCII characters from 0 to 127. Special characters outside that set (such as certain emojis or characters from other encodings) are not compatible with the standard and will cause an error.

Is the generated barcode compatible with commercial scanners?

Yes. Code 128 is an open standard supported by virtually all commercial and industrial barcode scanners.