Business tools · barcodes · nothing uploaded

Code 128 barcode generator

Code 128 encodes letters, numbers and punctuation in a compact barcode, ideal for your own SKUs, asset tags and shelf labels. No GS1 licence needed.

Letters, digits and punctuation (printable ASCII), up to 80 characters

Text, colour, quiet zone and rotation

Free, no watermark. SVG and PDF are vector and print sharp at any size; the PDF page is exactly the barcode's size.

Many barcodes at once: a ZIP of PNG or SVG files
Or load a CSV: the first column is used. Free up to 20; lifetime licence up to 5,000.

Files are named after each value and use the size, colours and options above. Invalid values are skipped and listed in errors.txt.

Print-ready sheets and bigger batches: A$4.99 for 30 days or A$19 lifetime

Free, always

Every symbology, every single-barcode download (SVG, PNG, PDF) with no watermark, ZIPs of up to 20 barcodes, and the label-sheet preview and calibration page.

Lifetime, for small businesses

A$19

Everything in print-ready sheets, for good, plus ZIPs of up to 5,000 barcodes.

Buy lifetime

What Code 128 is for

Code 128 is the general-purpose barcode for anything that is not a retail product number: stock-keeping units (SKUs) on your shelves, asset tags on equipment, library and file labels, order numbers on packing slips, and tracking numbers on shipping labels. It encodes letters, digits and punctuation, it is compact, and every barcode scanner reads it.

How it encodes

Each character is three bars and three spaces across 11 modules, between a start character, a mandatory check character and a stop character. Three character subsets cover capitals and control codes (A), capitals and lower case (B), and pairs of digits (C). The encoder chooses and switches subsets automatically, so "SKU-000123" uses subset B for the letters and can switch to C for long runs of digits, which encodes two digits per character and keeps numeric codes short.

Size and quiet zone

There is no fixed size. A module of 0.25 mm or more prints and scans reliably on office and thermal printers; go larger for scanning at a distance. The quiet zone must be at least 10 modules on each side, which the tool includes. Set the overall width and bar height; the size line shows the module width that results. Keep bars at least 10 mm tall, or 15% of the width, whichever is greater, for easy hand scanning.

Designing your codes

For the differences between Code 128 and retail barcodes, see Code 128 vs EAN-13 for inventory.

Printing tips

Why barcodes fail to scan

Which download to use

To make many at once, use the ZIP option below the generator: paste one value per line or load a CSV and download PNG or SVG files named after each value.

How this tool works

Barcodes are drawn in your browser with bwip-js, an open-source (MIT) port of Barcode Writer in Pure PostScript, and PDFs are written with pdf-lib. Nothing you type is uploaded, and the page works offline after the first visit. Single barcodes are free in every format with no watermark. Paid licences cover print-ready label sheets and large batches; see the box above.

Frequently asked questions

Do I need a licence to use Code 128?

No. Code 128 is an open symbology, and the codes you put in it are your own. It is the usual choice for internal inventory, asset tracking and shelf labels.

Can I sell products in shops with a Code 128?

Not at the checkout. Retailers scan EAN or UPC barcodes with GS1 numbers. Code 128 is for your own systems.

What can Code 128 encode?

All 128 ASCII characters; this tool accepts printable ones (letters, digits, punctuation and space). It has no lower-case limitation, unlike Code 39.

What are subsets A, B and C?

Code 128 has three character sets: A (capitals and control characters), B (capitals and lower case) and C (pairs of digits). The encoder switches between them automatically to keep the barcode short; long runs of digits are especially compact.

How long can it be?

There is no fixed limit, but very long codes become too wide to scan. This tool stops at 80 characters; for more data use a QR code or Data Matrix.

Does Code 128 have a check digit?

Yes, a mandatory mod-103 check character, added automatically and not shown in the text.

Sources

Rules on this page last verified against these sources on 29 October 2026. This is general information, not tax or legal advice.

Related