Linear barcode formats

CODE 39 vs CODE 128: differences & best uses

Both identify assets, inventory and industrial items, but they trade character support, symbol width and system compatibility differently.

Quick answer: choose CODE 128 for a compact general-purpose label or printable ASCII data. Choose CODE 39 when a VIN, asset, government or legacy workflow specifically calls for it. If another system owns the specification, that requirement matters more than a general preference.

Quick comparison

PropertyCODE 39CODE 128
Standard character setUppercase A–Z, digits, space and seven symbolsFull ASCII definition; QRacade's tool accepts printable ASCII
Typical densityRelatively wide for the same dataUsually more compact; Code Set C packs numeric pairs
Symbol checkSelf-checking design; optional Modulo 43 check character in applicable workflowsMandatory internal Modulo 103 checksum
Start and stopAsterisk start/stop patterns, normally added by the encoderStart code, data and checksum followed by the stop pattern
Common contextsVIN labels, asset plates, legacy industrial and government systemsSKUs, serial numbers, inventory, shipping and general identification

Character support is only the first difference

Standard CODE 39 supports 43 characters: uppercase letters, digits, space, and - . $ / + %. Lowercase input is not part of that basic set. A Full ASCII extension can represent more characters through pairs, but the receiving system must explicitly support that extension.

CODE 128 defines Code Sets A, B and C and can represent a much broader ASCII range. Encoders can switch sets to improve density. QRacade's CODE 128 generator accepts printable ASCII and uses compact numeric encoding when possible; it does not expose arbitrary control characters.

The same value can produce a different label width

CODE 39 represents each character with a comparatively simple, wide pattern. CODE 128 uses a denser encoding and can switch to double-density numeric pairs in Code Set C. This usually makes CODE 128 attractive when label space is limited.

Browser-generated CODE 39 and CODE 128 symbols both encoding QRACADE-2026
Real browser output for the same QRACADE-2026 value at the same generator settings. Compare the occupied width, but choose final dimensions from the application specification and print test.

Do not solve an oversized CODE 39 label by shrinking it without limit. Narrow-bar width, quiet zones, printer resolution and scanner distance still apply. See the barcode print-size and quiet-zone guide.

A symbol checksum is not a product check digit

CODE 128 automatically includes an internal checksum as part of the barcode symbol. It helps the decoder verify that the bars were read correctly. CODE 39 is self-checking by design, while some workflows also specify an optional Modulo 43 data check character.

These mechanisms are different from the final digit in a UPC, EAN or other GTIN. A retail check digit belongs to the identifier and is calculated before encoding the symbol. Our UPC-A and EAN-13 tools calculate or validate that retail digit separately. For number-only checks, use the barcode check digit calculator.

Which one should you choose?

  • A new internal SKU or asset system: CODE 128 is usually the efficient default, subject to your software and scanner requirements.
  • A 17-character VIN: use the VIN barcode generator, which selects CODE 39 and checks VIN-specific structure.
  • Legacy equipment or a customer specification: follow the stated symbology, data format and label dimensions exactly.
  • Lowercase or punctuation beyond CODE 39: CODE 128 is the natural choice when the receiving system permits it.

Scanner support is not a reason to assume one format always reads better. Both formats can work reliably when printed and configured correctly; a reader can also be configured to accept only selected symbologies.

Do not confuse CODE 128 with GS1-128

GS1-128 builds on CODE 128 but adds GS1 application rules, including Function 1 and Application Identifiers for structured supply-chain data. Encoding a GTIN or date into ordinary CODE 128 does not automatically make a compliant GS1-128 symbol.

QRacade currently offers general CODE 128, not a dedicated GS1-128 encoder. Use a validated GS1 workflow when that standard is required.

Frequently asked questions

Is CODE 128 better than CODE 39?

Neither is universally better. CODE 128 is usually more compact and supports a broader character set. CODE 39 remains useful when an automotive, industrial, government or legacy system explicitly requires it.

Can standard CODE 39 encode lowercase letters?

Standard CODE 39 uses uppercase letters, digits and a small symbol set. A Full ASCII extension exists, but it is not interchangeable with standard CODE 39 and must be supported by both encoder and scanner.

Is the CODE 128 checksum the same as a retail check digit?

No. CODE 128 has an internal symbol checksum used by the barcode encoding. A GTIN check digit is part of the retail identifier itself. They serve different layers of validation.

Is GS1-128 just another name for CODE 128?

No. GS1-128 uses CODE 128 symbology with GS1-specific data rules, including a Function 1 character and Application Identifiers. An ordinary CODE 128 generator should not claim to produce GS1-128.

Make the label

Generate CODE 39 or CODE 128

Start with a single label or import a CSV batch. Validation and file creation run locally in your browser.

Open CODE 128 generator Open CODE 39 generator

Related guides