๐Ÿช„ Generators

Barcode Generator

Generate Code128 barcodes from text and save as PNG.

Examples (click to try)

How to Use the Barcode Generator

Type ASCII text and a Code128 barcode is drawn instantly, with the source text shown underneath. The example chips set a value and generate at once. Use Download PNG to export the image. The check digit, start/stop symbols and quiet zones are added for you, so paste a product code or reference number as-is.

Concrete examples

  • BENRI-2024 → a 10-character Code128-B barcode with an automatic check digit
  • 1234567890 → a numeric reference encoded as Code128 (not EAN)
  • SKU-0042 → letters plus a hyphen, typical for inventory labels
  • Hello World! → spaces, punctuation and mixed case all work (ASCII 32โ€“126)
  • Non-ASCII text → an "Unsupported characters for Code128-B" error; replace it with plain ASCII. Control characters such as a tab do encode without an error, but avoid them because scanners handle them inconsistently

When to Use Code 128

Code 128 is a general-purpose barcode format for internal labels, stock references, work orders and test data. It is not the same as retail UPC or EAN barcodes, so use it when you control the scanning workflow or need a quick barcode for a draft label.

Code 128-B Scope and Scan Testing

The output is Code 128-B for the literal input. It is not JAN/EAN, GS1-128, or a carrier-specific shipping label, and it does not add a company prefix, GS1 application identifiers, or an industry-mandated size. Check the required specification before using it in a production workflow.

A visible barcode is not automatically scannable after printing. Test the final label with the actual scanner, including quiet zones, print spread, scaling, and printer resolution. Use the QR Code Generator when a QR workflow is expected.

FAQ

Is my data sent to a server?
No. Everything runs in your browser; nothing is transmitted or stored externally.
Which characters?
Code128-B: upper and lower case letters, digits, punctuation and spaces (ASCII 32โ€“126) are encoded directly. Control characters (ASCII 0โ€“31) and DEL (127) are also encoded, via Code128's SHIFT into code set A, so they do not raise an error โ€” but avoid them, because scanners and host software handle them inconsistently. Non-ASCII text (128 and above) is not supported and shows an error if included.
Do I add the check digit myself?
No. The Code128 check digit (modulo 103), the start/stop symbols and the left/right quiet zones are added automatically. Just pass your text as-is.
Will scanners read this barcode?
Any standard Code128 scanner or phone app can read it. When printing, keep enough resolution and side margins, and avoid shrinking it too far.