Free online code tools

Free Code 128 Barcode Generator
Check digits handled.

Code 128 is validated before anything is drawn: any ascii character (32–126), 1–80 characters. Modulo 103, added automatically.

  • No signup
  • Free commercial use
  • No watermarks

Choose a symbology

Retail & logistics

General purpose

2D symbols

Accepts: Any ASCII character (32–126), 1–80 characters · Check digit: Modulo 103, added automatically · Quiet zone: 10 modules each side

Design

Bar colour
On white. Always clear.
Background
On white. Always clear.

Printed below the symbol. Long text wraps onto up to four lines.

Bars, the human-readable digits and the quiet zone are never covered — the caption and call-to-action sit below the symbol. Scanners need that clear margin to find the code.

Upload your logo

A logo can sit above or below a barcode only — anything placed over the bars stops it scanning.

Optional

PNG, JPG or WebP · Up to 2 MB · Stays on your device

Supported formats

This table is generated from the same registry the generator and the validation rules use, so it can never drift out of date. Drawing a symbol and reading one back are separate facts, so they have separate columns.

FormatTypeAccepted dataCheck digitQuiet zoneRead back by us
Code 1281DAny ASCII character (32–126), 1–80 charactersModulo 103, added automatically10 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
EAN-131D12 digits (check digit added) or 13 digitsModulo 10, verified or calculated11 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
UPC-A1D11 digits (check digit added) or 12 digitsModulo 10, verified or calculated9 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
EAN-81D7 digits (check digit added) or 8 digitsModulo 10, verified or calculated7 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
UPC-E1D6, 7 or 8 digits; number system 0 or 1Calculated from the expanded UPC-A number9 modulesEncoder only
Encoded and validated, but our own scanner could not read our exports back. Test on a real retail scanner.
Code 391D0–9, A–Z, space and - . $ / + %Optional modulo 43 (not added here)10 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
Code 931D0–9, A–Z, space and - . $ / + %Two mandatory checksums (C and K), added automatically10 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
ITF-141D13 digits (check digit added) or 14 digitsModulo 10, verified or calculated10 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
Codabar1D0–9 and - $ : / . + between A/B/C/D start and stop charactersNone in this implementation10 modulesRead back by our scanner
Decoded back with every A/B/C/D start and stop pair. Some scanners must be configured to accept Codabar at all.
ISBN1DISBN-13 (978/979 prefix) or ISBN-10, hyphens allowedVerified; ISBN-10 is converted to ISBN-1311 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
Data Matrix2DText or binary data, up to 2,000 characters hereReed–Solomon error correction (fixed by the standard)1 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
PDF4172DText or binary data, up to 1,800 characters hereSelectable Reed–Solomon security level2 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
Aztec2DText or binary data, up to 1,800 characters hereReed–Solomon error correction0 modulesRead back by our scanner
Our exports were decoded back by our own scanner.
Micro QR2DVery short payloads only — M1 to M4, maximum 35 numeric or 21 alphanumeric charactersError correction L, M or Q depending on version (never H)2 modulesEncoder only
Encoded to the standard, but the decoder we use does not support Micro QR, so we cannot claim a read-back.

GS1 formats (GS1-128, GS1 DataMatrix, GS1 Digital Link) are not implemented here, so nothing on this site is described as GS1 compliant.

Using barcodes on real products

An EAN-13, UPC-A or ITF-14 image drawn here is a correctly encoded symbol of the number you typed. It does not assign you that number. Retail identifiers are licensed by GS1, and ISBNs come from your national ISBN agency. If you print a number you were not allocated, retailers will reject it.

For internal use — shelves, assets, work orders, kitchen bins — Code 128 is usually the right choice: it takes letters and digits, adds its own check character and stays compact.

Frequently asked questions