Skip to content
VixQR

By the VixQR team · published on · 6 min read

Code 39 Barcode: Understand Characters, Asterisks and Optional Checks

Understand Code 39 characters, start and stop asterisks, Full ASCII reader settings and the optional modulo-43 check before using an inventory label.

Inventory scanner beside a parts bin and a tag with an abstract striped design

AI-generated 3D illustration. Decorative stripe patterns are not intended for scanning.

TL;DR: A Code 39 barcode represents characters using a linear pattern of bars and spaces. Standard Code 39, Full ASCII interpretation and an optional check character are separate parts of the workflow. Match the encoder, reader settings and receiving field before assuming that a readable label will deliver the intended text.

What characters can a Code 39 barcode contain?

Standard Code 39 has a defined repertoire of digits, uppercase letters and selected punctuation, rather than unrestricted text. The publicly available ISO/IEC 16388:2023 preview lists the symbology's character assignments. Check whether the required text belongs to the standard repertoire before choosing an encoding workflow for a label.

A data field's appearance in a spreadsheet does not establish that the same characters can be placed directly into every barcode format. For a hypothetical inventory label, an uppercase part identifier and a mixed-case note are different encoding tasks. Decide which exact string the receiving application needs, including punctuation and spaces, rather than choosing a format from its appearance alone.

Layer Question to settle
Source text Which exact characters belong in the identifier?
Encoding Standard Code 39 or a Full ASCII convention?
Reader Is the corresponding interpretation enabled?
Receiving field What exact text should arrive?

Can standard Code 39 directly encode lowercase text?

Standard Code 39 directly encodes uppercase A through Z, digits 0 through 9 and its specified punctuation. The ISO character list also includes a space, dollar sign, percent sign, plus sign, hyphen, period and slash. Lowercase text therefore calls for a documented extension or a different symbology, rather than an assumption that ordinary Code 39 covers every keyboard character.

For an illustrative source-field review, compare AB12 with ab12 before generating anything. The first uses the standard uppercase repertoire, while the second needs a decision about representation and receiving-system expectations. This comparison checks the text's requirements; it is not a report of a label printed or successfully read by physical equipment.

Example source text Decision before encoding
AB12 Standard repertoire can represent these characters
ab12 Check a compatible Full ASCII workflow or another symbology
A sentence with arbitrary punctuation Review every required character instead of assuming support

Why is Code 39 called 3 of 9?

The name refers to the wide and narrow elements in an encoded character. Zebra's Code 39 documentation describes five bars and four spaces, with three wide elements and six narrow elements. Those counts describe the symbol's construction; they do not mean that every identifier contains nine text characters.

An inter-character gap separates encoded characters, so the sequence is more than a collection of decorative dark stripes. A generic stripe pattern in an illustration should not be treated as a valid identifier or a scan target. The two illustrations in this guide are conceptual artwork, and their decorative patterns are not intended for scanning.

  • Distinguish symbol elements from the length of the source text.
  • Keep an illustration separate from a generated production label.
  • Use the actual encoded output for a reader test.
Abstract character tiles and gate-shaped bookends beside a decorative nonfunctional stripe card
AI-generated 3D illustration. Decorative stripe patterns are not intended for scanning.

Do you type the start and stop asterisks yourself?

Whether you type start and stop asterisks depends on the encoder's documented input rules. Zebra's ^B3 command generates the start and stop characters automatically. That behavior is specific to the documented command; it does not establish how a separate barcode font, library or label application expects you to supply its input.

Copying an asterisk-wrapped example into another system without checking those rules can confuse display conventions with source data. Review the encoder's instructions and then compare the reader's delivered text with the intended identifier. This guide does not provide a production barcode or claim that VIXQR includes a Code 39 label generator.

Before generating a label Check
Input field Whether start/stop handling is automatic
Human-readable line Whether boundary symbols are displayed
Reader output Which characters reach the receiving application

What changes with Full ASCII and a check character?

Full ASCII Code 39 uses character pairs to represent a broader ASCII repertoire. Zebra's decoder guidance exposes Full ASCII as a reader setting, so encoding and interpretation must agree. Do not assume that a receiving system will interpret the pairs as intended merely because it recognizes the bars as Code 39.

A modulo-43 check character is a separate choice from Full ASCII. The same decoder guidance says to enable its verification only when the labels contain the corresponding check character; reporting that character is another setting. Confirm both the verification rule and the delivered field value before using a successful scan as evidence that the whole workflow is correct.

  • Confirm standard versus Full ASCII handling.
  • Confirm whether the label includes the optional check character.
  • Confirm whether the reader reports or removes that character.
  • Compare the final application field with the original identifier.

What does a modulo-43 example actually check?

A modulo-43 calculation produces a check character from the assigned values of the data characters. Zebra's calculation reference provides the value table and method. The character is chosen from the repertoire; the word “digit” in an interface does not mean that the result must be one of the ten numeric digits.

As a worked arithmetic illustration, A has value 10 and 1 has value 1, so their sum is 11. The remainder after division by 43 is 11, which maps to B. This is a calculation for the hypothetical data A1, not evidence that a printed label scans, belongs to an actual item or satisfies a recipient's specification.

  • Source data in this example: A1.
  • Computed optional check character: B.
  • Start and stop handling remains a separate encoder decision.
  • The receiving workflow still determines whether the check character is required or reported.

What else should you know about Code 39?

Is Code 39 the same as Code 128?

Code 39 and Code 128 are separate symbologies. The Code 128 guide covers that format's own rules.

Does Full ASCII require compatible reader settings?

The reader must interpret the character pairs consistently with the encoder. Check the documented setting on the equipment actually in use.

Is a Code 39 check character always required?

The modulo-43 check character is optional at the symbology level. An application can require it, so follow the receiving workflow's specification.

Is Code 39 a QR code?

Code 39 is a linear barcode. The QR code and barcode comparison explains the broader distinction.

What should you validate before using a label?

Validate the source characters, boundary handling, optional check rule and final delivered text as separate decisions. A scan that returns some text is only one part of that check. Explore the VIXQR blog for more detailed and related format explanations.

← All articles