← All tools/Generators/Design/Barcode Generator

Barcode Generator

A Code 128 barcode from any text or number — made in your browser, nothing uploaded.

Your barcode (Code 128-B)

Download PNG

StartDataCheck digitStop

How it works

Code 128-B: Start B (value 104), then each character (value = ASCII code − 32), then a check symbol, then Stop (106).
Check symbol = (104 + 1×v1 + 2×v2 + … + n×vn) mod 103
Each symbol is 11 modules wide (stop is 13, including the final 2-module bar).

Worked example: “ABC” encodes as Start B, A (33), B (34), C (35). Check = (104 + 1×33 + 2×34 + 3×35) mod 103 = 310 mod 103 = 1. The barcode is 6 symbols, 68 modules wide.

Frequently asked questions

What can a Code 128 barcode hold?

Code 128-B holds printable ASCII — letters, digits and punctuation, from space (32) to tilde (126).

Will a shop scanner read it?

Yes — Code 128 is one of the most widely supported barcode types, read by almost every handheld scanner.

Why is there a check digit?

The check symbol lets a scanner spot a misread: if the weighted sum does not match, the scan is rejected.

Is my text uploaded anywhere?

No — the barcode is drawn on a canvas in your browser and never leaves your device.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.