How Barcode Generator Works
The tool encodes your text using Code 128 (subset B), a widely used standard that represents each character as a unique pattern of bar and space widths, plus a checksum character so scanners can verify the read is correct.
How to Use This Tool
- Type the text or number you want to encode.
- Choose whether to show the text underneath the bars.
- Select Generate Barcode, then Download PNG to save it.
Example
Encoding SKU-10245 produces a compact barcode that any standard barcode scanner or scanning app can read back as exactly SKU-10245.
Helpful Tips
- Code 128 supports the full range of standard printable characters, so you're not limited to numbers — letters, hyphens and other common symbols all work.
- For inventory or shipping labels, keep the encoded text as short as practical — shorter text produces a narrower, easier-to-scan barcode at the same print size.
Frequently Asked Questions
Is my data sent anywhere?
No, the barcode is generated entirely in your browser.
What barcode format does this use?
Code 128 (subset B), one of the most widely used barcode formats, supported by virtually all barcode scanners and scanning apps.
Can I encode any character?
Standard printable ASCII characters — letters, numbers, punctuation and symbols — are supported. Characters outside that range will show a clear error.
This tool runs entirely in your browser. Your input is not uploaded to any server.