Barcode Generator
Generate Code 128 barcodes from text or numbers and download as PNG.
Barcode (Code 128)
Supports printable ASCII characters (Code 128 set B). Generated locally.
How to use Barcode Generator
Enter a value
Type the text or number to encode (printable ASCII).
Adjust options
Set bar height/width and choose whether to show text.
Download
Download the barcode as a PNG image.
Frequently asked questions
Which barcode type is generated?
This tool generates Code 128 (set B) barcodes for printable ASCII text.
Can I encode special characters?
Printable ASCII characters are supported. Non-ASCII or control characters may not be encodable in this mode.
Will it scan on my device?
When sized and printed clearly with good contrast, Code 128 barcodes scan with most standard readers. Always test with your scanner.
Is my data uploaded?
No. Barcode generation and download happen locally in your browser.
How do I make it more scannable?
Increase bar width/height, keep high contrast (black on white), and ensure sufficient quiet margins around the barcode.
About Barcode Generator
The Barcode Generator creates Code 128 barcodes from the text or numbers you enter. Adjust bar height and width, optionally show the human-readable value, and download the result as a PNG image. Code 128 is widely used for shipping, inventory, and asset labels. Barcode generation runs locally in your browser, so your data stays private.
Code 128 barcodes
Code 128 is a high-density linear barcode symbology capable of encoding alphanumeric data efficiently. This tool uses Code 128 set B to support printable ASCII characters, making it suitable for common identifiers, SKUs, and tracking codes. The generated bars follow the standard pattern structure so they can be scanned by typical barcode readers when printed or displayed clearly.
Sizing and readability
Bar width and height affect scan reliability. Wider bars and sufficient quiet space around the barcode help scanners read it accurately, especially on lower-quality prints. If you plan to print labels, test with your target scanner and printer to confirm the size and contrast work well in your environment.
Local generation
The barcode is rendered in the browser as SVG and exported to PNG on your device, with no uploads or external services. This makes it safe for internal codes and quick label creation. For specialized symbologies (EAN/UPC/QR/DataMatrix) or strict industry requirements, use the appropriate dedicated tool or standard-compliant settings.
Use Barcode Generator on your site
This tool runs free and private in the browser. Paste it anywhere — blog posts, documentation, team wikis — and your visitors will use it without leaving your site. The embed includes a small "Made with The Tools Today" credit link.
Related tools
QR Code Generator
Create custom QR codes for links, text, Wi-Fi and contact details.
Open toolRandom Number Picker
Generate random numbers in a range, with options for uniqueness and sorting.
Open toolPassword Generator
Create strong random passwords and passphrases with a live strength meter.
Open toolUUID Generator
Generate random UUID v4 identifiers in bulk with one click.
Open tool