Free Code 39 Barcode Generator
Create Code 39 barcodes effortlessly. The self-checking alphanumeric standard trusted by the automotive, defense, and healthcare industries.
Enter your data
Live preview
Start typing and your code appears here
This is exactly how the code looks in your wallet. Sign in or use the WearSocials app to keep it on your phone and watch.
What Is a Code 39 Barcode?
Code 39, also known as Alpha39 or Code 3 of 9, is one of the earliest alphanumeric barcode symbologies. Developed in 1974 by David Allais and Ray Stevens at Intermec, it encodes 43 characters — uppercase A through Z, digits 0 through 9, and seven special characters (-, ., $, /, +, %, and space).
Each character in Code 39 is represented by nine modules — five bars and four spaces — of which exactly three are wide. The symbology is self-checking, meaning a single print defect in one character will not cause the scanner to misread it as a different valid character. This property makes Code 39 highly reliable even without an optional modulo-43 check digit.
Code 39 is mandated by several major industry standards. The Automotive Industry Action Group (AIAG) requires it for parts labeling, the U.S. Department of Defense specifies it in MIL-STD-1189 for military logistics, and the Health Industry Business Communications Council (HIBCC) uses it for healthcare product identification.
What a Code 39 barcode is made of
Code 39 is one of the oldest and simplest barcodes. Every character is drawn on its own from nine bars and spaces, three of them wide — hence the name "3 of 9":
*DATA*
- * start and stop
- Every Code 39 begins and ends with an asterisk. It is drawn, but scanners leave it out of the data and many printers show it in the text line.
- Character set
- 43 characters: 0–9, A–Z, space and - . $ / + %. That covers most part numbers and asset tags.
- Optional check character
- A mod 43 check character can be added before the stop. Some industries require it, and the scanner must be set to expect it.
- Full ASCII
- Lowercase letters and other symbols are encoded as pairs (+A for a). This generator uses Full ASCII, so they work, but each one takes double the width.
Sample Code 39 barcode
A typical part number using only the basic character set. Payload:
PART-4711-BPrint size and quiet zone
Code 39 is wide for the amount of data it carries. The ratio between wide and narrow elements matters as much as the module width.
| Narrow element (X) | ≥ 0.191 mm (AIM USS-39; set by your application standard) |
|---|---|
| Wide : narrow ratio | 2:1 – 3:1 (at least 2.2:1 when X < 0.50 mm, ISO/IEC 16388) |
| Bar height | ≥ 15 % of the symbol length, at least 6.35 mm |
| Quiet zone | 10X left and right |
Industry labels such as automotive (AIAG) and US defence (MIL-STD-129) prescribe their own sizes — follow those when they apply to you.
Which scanners read Code 39
Code 39 is enabled on practically every scanner, which is why old systems still rely on it.
Laser scanners
Read Code 39 reliably, even at low print quality, because each character is self-contained.
Image-based scanners
Read it in any orientation. Check digit and Full ASCII must match the scanner's settings, or lowercase comes out as +A.
Phone apps
Google Lens and scanner apps decode Code 39. Long codes get very wide, so keep the data short or use Code 128.
How to Create Your Code 39 Barcode
- 1
Type Your Data
Enter the uppercase alphanumeric string you want to encode. Code 39 supports A-Z, 0-9, and a handful of special characters.
- 2
Select Code 39 Format
Pick 'Code 39' from the barcode type selector so the engine uses the correct 3-of-9 encoding scheme and start/stop characters.
- 3
Set Dimensions
Adjust the barcode height and width to match your label or document layout. Wider bars improve scan reliability at longer distances.
- 4
Review the Output
Check the on-screen preview to confirm the data is correct and the barcode renders cleanly at your chosen dimensions.
- 5
Download Your Barcode
Save the barcode as a PNG or SVG file and integrate it into your product labels, ID badges, or inventory tags.
Key Features
Self-Checking Symbology
Code 39's inherent self-checking property prevents single-character misreads, delivering dependable scans without a mandatory check digit.
Broad Scanner Compatibility
Nearly every laser, CCD, and imager-based scanner on the market supports Code 39, making it a safe choice for mixed-hardware environments.
Industry-Standard Compliance
Generate barcodes that meet AIAG, MIL-STD-1189, and HIBCC labeling requirements right out of the box without additional configuration.
Custom Color Options
Personalize foreground and background colors while keeping contrast ratios high enough for reliable scanning across all environments.
Use Cases
Automotive Parts Labeling
Tier-1 suppliers print Code 39 barcodes on component labels per AIAG B-10 standards, enabling just-in-time inventory tracking on assembly lines.
Military Logistics (MIL-STD-1189)
Defense contractors mark shipping containers and equipment with Code 39 barcodes to comply with Department of Defense tracking mandates.
Healthcare Product Identification
Medical device manufacturers encode HIBCC-compliant lot numbers and serial codes in Code 39 barcodes on packaging and unit-of-use labels.
Employee ID Badges
Organizations encode personnel numbers in Code 39 barcodes printed on ID cards for building access, time-clock punches, and cafeteria payments.
Asset Tracking and Management
IT departments affix Code 39 labels to laptops, monitors, and network hardware for lifecycle tracking and audit compliance.
Document and File Management
Law firms and government agencies attach Code 39 barcodes to physical folders, enabling rapid retrieval and chain-of-custody logging during audits.
Tips & Best Practices
- Keep your data payload uppercase only — Code 39 does not natively support lowercase letters without the extended (Full ASCII) variant.
- Use a wide-to-narrow bar ratio of at least 2.5:1 for optimal scan performance, especially with older laser-based readers.
- Add the optional modulo-43 check digit when encoding critical data that cannot tolerate any substitution errors.
- Print at a minimum X-dimension of 0.19 mm (7.5 mil) to ensure reliable scanning at typical handheld reading distances.
- Leave at least a 10x narrow-module quiet zone on each side of the barcode to prevent edge-detection failures.
Frequently Asked Questions
Why is it called Code 3 of 9?
The name reflects the encoding scheme: each character is made up of nine modules (five bars and four spaces), and exactly three of those nine modules are wide. The wide elements carry the encoded information while the narrow ones serve as separators.
Can Code 39 encode lowercase letters?
Standard Code 39 only supports uppercase A-Z. However, the Extended Code 39 (Full ASCII) variant encodes all 128 ASCII characters by combining pairs of standard characters. Not all scanners support the extended variant, so verify reader compatibility first.
Is a check digit required for Code 39?
No. Because Code 39 is self-checking, a check digit is optional. However, adding the modulo-43 check digit is recommended for mission-critical applications where even the rarest substitution error would be unacceptable.
How does Code 39 compare to Code 128 for length?
Code 39 barcodes are physically wider than Code 128 barcodes encoding the same data. If label space is limited and the full ASCII set is needed, Code 128 is the more compact choice. Code 39 remains preferred where industry mandates specifically require it.
What industries still require Code 39?
The automotive sector (AIAG), the U.S. Department of Defense (MIL-STD-1189), and portions of the healthcare industry (HIBCC) still mandate Code 39. It is also commonly found on employee badges, library cards, and internal asset-tracking labels.
Create Your Free Code 39 Barcode Now
No registration required. No watermarks. No limits. Completely free.