Barcode Generator
NEWGenerate high-quality Code 128 barcodes from any printable text directly in your browser. Adjust the scale, preview the result on a canvas, and download a clean PNG — all without installing any software.
How to use Barcode Generator
- Type the text or numeric value you want to encode into the input field (printable ASCII characters only, no tabs or control characters).
- Adjust the Scale slider to make the barcode larger or smaller, then click Generate.
- Click Download PNG to save the barcode image to your device.
What is Barcode Generator?
This tool implements the Code 128 B character set, which can encode all 95 printable ASCII characters (space through tilde). The encoder computes the mandatory Code 128 check character automatically and wraps the data with the correct start and stop symbols according to ISO/IEC 15417.
The barcode is rendered on an HTML5 Canvas element using a pixel-precise bar-and-space pattern. The Scale control multiplies the module width, letting you produce larger barcodes suitable for labels, product packaging prototypes, or print-ready artwork without any blurriness.
The human-readable text is drawn beneath the bars in a monospace font so scanners and humans can both read the value. Click Download PNG to save a lossless PNG image via a Blob URL — the file is created entirely client-side and nothing is uploaded to any server.
FAQ
- Which characters can I encode?
- This tool uses Code 128 B, which supports all 95 printable ASCII characters: spaces, letters (uppercase and lowercase), digits, and standard punctuation. Control characters, tabs, and non-ASCII characters are not supported.
- Are the generated barcodes scannable by real barcode readers?
- Yes. The encoder follows the ISO/IEC 15417 Code 128 specification including the mandatory check character, so the barcodes should be readable by any standard barcode scanner or mobile scanning app.
- What resolution should I use for printing?
- Set the Scale to 3 or higher for print use. At Scale 3 each module is 3 pixels wide; downloading the PNG and printing at 100% at 300 dpi gives a scannable barcode suitable for most label sizes. For very small labels, increase the scale further.
Related tools
Last updated: