Code 128 Barcode Generator

Free · no sign-up · runs in your browser

Code 128 Barcode Generator

Turn any short ASCII string into a correct, scannable Code 128 symbol — valid mod-103 checksum, automatic subset selection, adjustable module width. Download SVG or PNG. Nothing leaves your device.

Subsets A · B · C mod-103 checksum SVG + 2× PNG Print-ready labels

Barcode settings

Edit any field — the symbol redraws as you type.

ASCII 0–127. Start, checksum and stop codes are added automatically.
Auto uses C for even digit strings, A when control characters appear, otherwise B.
1–6 px per module.
20–200 px.

Live preview

Symbol readout

How it works

1 · Enter the value

Type or paste an SKU, order number, asset ID or any ASCII string up to 80 characters.

2 · Subset is chosen

Even digit runs switch to subset C, control characters to A, everything else stays in B. Start, checksum (mod 103) and stop symbols are appended.

3 · Export and print

Download a vector SVG for label software or a 2× PNG for a quick print. Both include the 10-module quiet zones scanners need.

What you get

Standards-correct symbology

The full 107-symbol Code 128 table (EN 797 / ISO-IEC 15417) with a mod-103 check character, so real scanners accept the result.

Tunable for your label

Module width 1–6 px and bar height 20–200 px let you match a thermal label, a shelf tag or a spreadsheet printout.

Private by design

Everything runs in your browser — no upload, no account, no server round-trip. Works offline once the page is loaded.

FAQ

Which subset should I pick?

Leave it on Auto. Subset C packs digits two-per-symbol (shortest barcode), B covers normal printable ASCII, A adds the control characters below space.

Why does my barcode not scan?

Print at 100% scale, keep the white quiet zones intact, and stay at or above 1 px per module at the printed size. Longer values make each module thinner.

SVG or PNG?

Use SVG for label software and professional printing — it scales without blur. Use PNG when you need a plain bitmap for a quick label or a slide.

Are non-ASCII characters supported?

No. Code 128 encodes single-byte values 0–127 only, so umlauts and other accented characters are rejected rather than silently mangled.

Latest updates

More free tools

Step-by-step guides in our blog & guides.

Patreon Revenue Calculator Free Unit Converter Free Audio Converter Kostenlos Deutsch Barcode Generator Free Online Twitch Overlay Maker حاسبة الراتب وخصم التأمينات College GPA Calculator How Can I Merge Pdfs For Free Exemple De Calcul De Probabilité Générateur De Mots Mêlés Gratuit À Imprimer