Generators & Utilities

Barcode Generator

Turn any text or number into a scannable Code 128 barcode and download it as a PNG image. Type your value, adjust the bar width, and the barcode redraws instantly on a canvas with the human-readable text printed underneath. The Code 128 encoder, including its checksum, runs entirely in your browser, so nothing you enter is uploaded.

Generates a Code 128 B barcode (supports letters, digits, and common symbols) entirely in your browser — nothing is uploaded. Scan with any standard barcode reader app.

What Code 128 is

Code 128 is a high-density linear (1D) barcode standard that can encode all 128 ASCII characters — digits, uppercase and lowercase letters, and common symbols. That flexibility makes it one of the most widely used barcodes in the world for shipping labels, inventory tags, ID cards, asset tracking, and warehouse logistics. This tool uses Code 128 B, the character set that covers everyday text, so you can encode a product name, a SKU, an order number, or a serial number.

How the barcode is built

Each character maps to a specific pattern of bars and spaces of varying widths. The encoder starts with a special start symbol, adds a pattern for every character in your text, computes a modulo-103 checksum that scanners use to detect misreads, and finishes with a stop symbol and final bar. Getting that checksum right is essential — a barcode with a wrong or missing check digit will be rejected by compliant scanners — and this tool calculates it automatically. The result is drawn on a canvas with a quiet-zone margin on each side so readers can find the code's edges.

Choosing the bar width

The bar-width setting controls how many pixels wide the narrowest bar is. For on-screen scanning, two or three pixels is plenty. For printing, a wider setting produces a crisper barcode that tolerates lower printer resolution and scanning from a distance. As with QR codes, the most common cause of scan failure is a barcode printed too small or without its light margin, so err toward larger when in doubt and keep the quiet zone clear.

Common uses

Small businesses generate barcodes for products they sell, for asset tags on equipment, and for organizing inventory in a spreadsheet where each item's ID is also printed as a scannable code. Event organizers put barcodes on tickets. Libraries and makerspaces label items. Because you can download the PNG, you can drop the barcode into a label template, a document, or a print sheet. Any standard barcode scanner app or hardware reader will decode it.

Privacy notes

The encoder runs entirely in your browser. The text you turn into a barcode is never sent to a server, stored, or logged, so internal SKUs, serial numbers, and other business data stay on your device. The tool works offline once loaded, which is handy when you are labeling stock in a back room with poor connectivity.

FAQ

What barcode format does this use?

Code 128 B, a high-density standard that encodes digits, uppercase and lowercase letters, and common symbols. It is widely used for shipping, inventory, and asset tracking.

Does it add the check digit automatically?

Yes. The encoder computes the required modulo-103 checksum for you, so the barcode is valid and will be accepted by compliant scanners without any extra steps.

What bar width should I choose?

Two or three pixels is fine for on-screen scanning. For printing, use a wider setting so the barcode stays crisp at your printer's resolution and scans reliably from a distance.

Can I download the barcode?

Yes. Click Download PNG to save the barcode as an image you can drop into a label template, document, or print sheet. The human-readable text is included beneath the bars.

Is my text uploaded to make the barcode?

No. The entire encoder runs in your browser. Your SKUs, serial numbers, and other data are never transmitted or stored, and the tool works offline once loaded.

More free tools