Barcode Types

Code 39 Barcodes: Characters, Start and Stop Symbols, and Uses

Check which characters Code 39 supports, what the asterisks mean, and how to test a label with your scanner and application.

Share
Table of contents

Code 39 is a linear barcode format used to represent an identifier as bars and spaces. Its basic character set covers uppercase letters, digits, spaces, and a small set of punctuation. Before using it for an inventory or asset label, check both your identifier and the scanner settings: extended characters and optional check characters can change what the receiving application gets.[1]

What characters can Code 39 encode?

The basic set includes A–Z, 0–9, space, and - . $ / + %.[1] For example, BOX-001 is an illustrative internal identifier whose characters fit that set. Keep the leading zeros when you compare the original value with the scanner output. The example is not a registered product number.

Input Basic Code 39? What to check
BOX-001 Yes Preserve both zeros in the receiving field.
Box-001 No Lowercase requires an extended encoding method and a compatible reader.
BOX_001 No An underscore is outside the basic set. Confirm extended support or choose an accepted alternative.

Extended Code 39 represents additional ASCII characters using pairs of basic Code 39 characters. A reader configured for basic decoding may return those pairs instead of the intended characters. For example, the Libre Barcode project explains that lowercase a is represented by +A; a basic reader may return +A rather than a.[1] Test the precise encoder, reader and receiving application together, especially if your ordinary data can contain +, $, / or %.

What do the asterisks mean?

Code 39 uses start and stop patterns to mark the symbol’s boundaries. Some font workflows use asterisks to produce those patterns: the Libre Barcode font documentation instructs users to enter *HELLO WORLD* around the data.[1] The asterisks in that font input are delimiters, not a reason to add literal asterisks to the identifier in your database. Other encoders may add the patterns automatically; follow the instructions for the particular tool and compare the decoded result with the intended value.

Does Code 39 need a check character?

A Code 39 workflow may specify an optional check character. Check the receiver’s requirements and the scanner’s settings before adding one: the scanner may be configured to verify it, transmit it, or omit it from the data delivered to the application. Treat a mismatch between the source value and returned value as a configuration issue to investigate, not proof that the item is authentic or the label meets a quality grade. Confirm the applicable rules with the receiving organization.

How to test a Code 39 label

  1. Record the exact value. Include leading zeros, spaces and punctuation. Confirm the receiver accepts Code 39 and whether it expects basic or extended data and a check character.
  2. Create a sample. Use an encoder that supports the required settings. If using a barcode font, follow its instructions for start and stop patterns; a font workflow and a dedicated encoder may accept different input.
  3. Check the layout. Keep the clear areas at both ends unobstructed. Choose dimensions that work for the data, printer, label and intended reader. Do not assume that a symbol readable on a screen will work at any printed size.
  4. Print and scan a representative label. Use the actual printer, material, scanner and application where possible. Compare every character with the source, including leading zeros and any spaces. Check the scanner’s symbology, extended mode, check-character and prefix/suffix settings if the result differs.
  5. Repeat under working conditions. Test representative labels and expected handling conditions before a batch. A successful scan shows that sample worked in those conditions; it is not a formal verification grade or a guarantee of acceptance.

If a partner specifies another barcode or a particular label standard, follow that requirement. Creating a Code 39 image does not issue a retail product number or establish that a trading partner will accept it.

References

[1] Libre Barcode Project. Code 39. https://graphicore.github.io/librebarcode/documentation/code39.html