What Is Code 39? The Standard for Alphanumeric Identification
The Code 39 barcode (also known as "Code 3 of 9") is a variable-length, discrete linear symbology that has served as the backbone of industrial asset identification for over five decades. Developed in 1974 by Intermec (specifically by Dr. David Allais and Ray Stevens), it was a revolutionary advancement as the first symbology capable of encoding both letters and numbers. This capability made it indispensable for the U.S. Department of Defense and automotive manufacturers who required identifiers that matched existing serialized part numbers.
Unlike modern continuous codes, Code 39 is a "discrete" symbology. This means that each character is a self-contained unit, separated from its neighbor by an "inter-character gap." While this design makes the barcode wider than competitors like Code 128, it provides an exceptional level of physical durability; even if the label is slightly damaged between characters, a scanner can often still piece together the data payload.
The "3 of 9" Logic: How It Works
The name "Code 39" isn't a random designation—it describes the fundamental geometry of the bars and spaces. Each character in this symbology is composed of exactly 9 elements:
Every character uses a consistent total of nine physical elements to ensure scanning symmetry.
Exactly three of the nine elements are always "wide" (either bars or spaces).
The remaining six elements are "narrow," creating a unique binary-like pattern for each letter.
The Significance of the Asterisk (*) Pattern
One of the most distinctive features of Code 39 is its framing pattern. Every Code 39 barcode must begin and end with an asterisk (*) character. This serves as a "Start/Stop sentinel" that tells the barcode reader where the data begins and in which direction it is being scanned.
Code 39 Data Framing
Note: The asterisks are part of the bar pattern but are typically omitted from the human-readable text below the bars.
Code 39 vs. Code 128: Complexity Comparison
When choosing between standard 1D codes, it is vital to understand the trade-offs between legacy compatibility (Code 39) and modern efficiency (Code 128).
| Feature | Code 39 (Legacy) | Code 128 (Modern) |
|---|---|---|
| Character Set | 43 Characters (Uppercase only) | Full 128 ASCII Set |
| Density | Low (Requires more width) | High (Very compact) |
| Self-Checking | Yes (via 3-of-9 logic) | No (Requires checksum) |
| Complexity | Simple (Easy to print/read) | High (Complex encoding) |
Global Applications: Where Code 39 Is Mandatory
Code 39 remains the "immortal" barcode standard, still required by specific international bodies and high-stakes regulatory environments:
- 1MIL-STD-1189 (LOGMARS): The U.S. Department of Defense's mandatory standard for labeling all military hardware and supplies.
- 2AIAG (Automotive): The Automotive Industry Action Group uses Code 39 for shipping and receiving part labels across the global supply chain.
- 3HIBCC (Healthcare): Historically used for labeling medical devices and surgical tools before the widespread adoption of GS1 standards.
- 4Internal Inventory: Thousands of warehouses use Code 39 for internal bin labeling because it is extremely easy to generate and print.
Technical Printing Specs: Avoiding Scan Failures
To ensure your Code 39 barcodes are legible to every standard laser and CCD scanner, follow these technical metrology rules:
- Quiet Zones: Code 39 requires a minimum clear space (Quiet Zone) of 10 times the width of a narrow bar. At a standard 10 mil size, this is approximately 2.5mm of white space on either side.
- Narrow-to-Wide Ratio: The width of the "wide" elements must be between 2.0 and 3.0 times the width of the "narrow" elements. A ratio of 2.2 is generally considered optimal for thermal printers.
- X-Dimension: The "narrow bar" width should ideally be no smaller than 0.19mm (7.5 mils) for consumer-grade scanners. High-resolution industrial scanners can handle down to 2.5 mils.
Master Industrial Asset Tracking
Encoding complex alphanumeric data in a tight space? Use our Code 128 Barcode Generator. For a full list of supported industrial symbologies, return to our barcode meta-hub.
Disclaimer: No Warranty
The Code 39 Barcodes generated by this site are provided AS IS without warranty of any kind, not even the warranty that the generated Code 39 Barcodes are actually unique or error-free. You are responsible for using the Code 39 Barcodes and assume any risk inherent to using them. You are not permitted to use the Code 39 Barcodes generated by this site if you do not agree to these terms. Do not use any Code 39 Barcodes found on cached versions of this page.
Related Tools & Shortcuts
Quick access to other Barcode utilities.
Frequently Asked Questions
Is Code 39 free to use?
Yes, Code 39 is a public domain symbology and is completely free to use without any licensing fees.
What characters are supported?
Code 39 supports uppercase letters (A-Z), numbers (0-9), and a few special characters like "-", ".", " ", "$", "/", "+", and "%".