
Barcode TypesBarcode Types
Can a Barcode Show an Expiration Date or Lot Number?
Learn when a barcode can carry an expiration date or lot number, and how to check the package and the source of a lookup result.
Check which characters Code 39 supports, what the asterisks mean, and how to test a label with your scanner and application.

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]
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 %.
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.
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.
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.
[1] Libre Barcode Project. Code 39. https://graphicore.github.io/librebarcode/documentation/code39.html