Free Code 128 Barcode Generator

Create a standards-correct Code 128 barcode in seconds. Free, no signup, no watermark — generated privately in your browser.

Letters, numbers and punctuation — almost any length.

Your Barcode

100% private: the barcode is drawn inside your browser. Nothing you type is uploaded to any server.

How to create one in 3 steps

  1. Enter your details in the form above — only the fields for this type, nothing extra.
  2. Check the live preview and customize the color, background and size (256, 512 or 1024 px) to match your brand or print.
  3. Click Download PNG, test-scan the code once with your phone, then print it or share it wherever your audience is.

About this Code 128

Code 128 (ISO/IEC 15417) is the world’s general-purpose high-density barcode: it packs letters, numbers and punctuation into the narrowest width of any 1D symbology, which is why it dominates shipping labels (as GS1-128), warehouse racking, asset tags and library systems.

It works in three character subsets — A (capitals + control codes), B (full mixed-case ASCII) and C (double-density digit pairs) — and a good encoder switches subsets automatically to keep the symbol short. Every Code 128 symbol carries a built-in modulo-103 checksum, so scanners reject damaged reads instead of guessing.

Best uses

Put the code exactly where the decision is made — on the table, the counter, the packaging, the invitation or the screen — and give people one short line of instruction such as “Scan to open” or “Scan to pay”. Print codes at least 2 cm wide with a quiet white border and strong contrast so older phone cameras read them quickly; for posters scanned from a distance, use the 1024 px size and print bigger — a good guide is roughly one tenth of the scanning distance.

How it works

When you type, the encoder picks the subset mix automatically: long digit runs are compressed with subset C (two digits per character), which is why a 20-digit serial produces a surprisingly short barcode.

Worked example

A repair shop labels every customer device with Code 128 tags encoding the job number, e.g. INV-2026-0042. At check-in and dispatch the tag is scanned — no typing, no transposed digits — and the job history opens instantly.

Frequently Asked Questions

Is this Code 128 generator free?

Yes. Loona’s Code 128 generator is completely free with no signup, no watermark and no limit on how many codes you create, for personal or commercial use.

Will my QR code expire?

No. Loona creates static QR codes: your information is encoded directly inside the QR pattern itself, not stored on a server or hidden behind a paid redirect. A code you print today will keep working as long as the destination itself stays active.

Is my information private on this Code 128 page?

Yes. Generation happens 100% in your browser using JavaScript. Nothing you enter is sent to or stored on any server.

Code 128 vs Code 39 — which should I use?

Code 128 for almost everything modern: it is denser, supports lower-case and punctuation, and has a mandatory checksum. Code 39 survives mainly where old scanners or an industry rule (some automotive and defense labels) demand it.

Can Code 128 encode lower-case letters?

Yes — subset B covers the full printable ASCII range including lower-case, and this generator switches subsets automatically.

Related QR Code Generators

EAN-13 Barcode Generator

The retail product standard outside North America.

Data Matrix Code Generator

Tiny 2D codes for parts, electronics and pharma.

Barcode Generator (All Types)

Every common 1D symbology in one tool.

QR Code Scanner

Test-scan any code with your camera.

UPC-A Barcode Generator

The North American retail standard.

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.