Introduction
The Navajo code is a WWII cryptographic system developed in 1942 by Philip Johnston for the U.S. Marine Corps. Johnston, a missionary's son raised on a Navajo reservation, proposed using the unwritten Navajo language as the basis for a military code. The original 29 Navajo Code Talkers of Platoon 382 built a two-layer system: a vocabulary table that replaced military terms with Navajo words (tank became CHAY-DA-GAHI, "turtle"), and an alphabet table where each English letter mapped to multiple Navajo words to defeat frequency analysis. The code was declassified in 1968 and remains one of the few codes never broken by an enemy. This tool translates English text into the Navajo code and back.
What this tool does
- Encodes English text into the Navajo code using the vocabulary and alphabet tables.
- Decodes Navajo code words back to English.
- Replaces military terms wholesale (e.g. tank = CHAY-DA-GAHI, submarine = BESH-LO).
- Spells out non-vocabulary words letter by letter, cycling through multiple Navajo equivalents per letter.
- Runs entirely in your browser with no server-side processing.
How this tool works
Select Encode or Decode. In encode mode, type English text into the input field. The tool checks each word against the vocabulary table: if a word like TANK or SUBMARINE is in the table, it is replaced wholesale by its Navajo equivalent. Words not in the vocabulary are spelled out letter by letter using the alphabet table, which cycles through multiple Navajo equivalents for each letter to mimic the real code's anti-frequency-analysis design. Words are separated by slashes in the output. In decode mode, paste Navajo code and the tool looks up each word, reconstructing English text. The output updates instantly as you type.
How the Navajo code works
The Navajo code has two layers. The vocabulary layer maps military terms to Navajo words: AMERICA becomes NE-HE-MAH ("our mother"), tank becomes CHAY-DA-GAHI ("turtle"), submarine becomes BESH-LO ("iron fish"), bomber becomes JAY-SHO ("buzzard"), and battleship becomes LO-TSO ("whale"). The alphabet layer spells out words not in the vocabulary. Each English letter has up to three Navajo equivalents: A can be WOL-LA-CHEE ("ant"), BE-LA-SANA ("apple"), or TSE-NILL ("axe"). Common letters like E and T have multiple equivalents so that frequency analysis cannot identify them. The code talkers transmitted these words over radio in Navajo, and a receiver reversed the process. Because Navajo was an unwritten language with complex tonal grammar known to very few outsiders, Japanese cryptanalysts never broke it despite capturing Navajo-speaking (but non-code-trained) prisoners. The code remained classified until 1968. Around 400 Navajos served as code talkers across the Pacific theater, and their contributions were honored with Congressional Gold Medals in 2001.
How to use this tool
- Select Encode to translate English to Navajo code, or Decode to translate back.
- Type or paste your text into the input field.
- Read the translated output in the output field, which updates live.
- Use the Copy button to copy the result to your clipboard.
Real-world examples
Encoding a military message
Input: `TANK ATTACK`. Output: `CHAY-DA-GAHI / AL-TAH-NE-JA`. TANK is in the vocabulary table and maps to CHAY-DA-GAHI ("turtle"). ATTACK maps to AL-TAH-NE-JA ("fight").
Spelling out a non-vocabulary word
Input: `HELLO`. Output: `TSE-GAH AH-JAH DIBEH-YAZZIE LIN LIN TKIN`. Each letter is spelled out using the alphabet table: H = TSE-GAH ("hair"), E = AH-JAH ("ear"), L = DIBEH-YAZZIE ("lamb"), L cycles to AH-JAD ("leg"), O = A-KHA ("oil").
Decoding back to English
Input: `BESH-LO / YE-HA-YA`. Output: `SUBMARINE RETREAT`. BESH-LO is the vocabulary word for submarine ("iron fish"), and YE-HA-YA means withdraw ("retreat").
Comparison with similar methods
| Method | Complexity | Typical use |
|---|---|---|
| Navajo code | O(n) — vocabulary + alphabet lookup | WWII Marine Corps field code |
| NATO phonetic | O(n) — one word per letter | Voice spelling, radio clarity |
| Book cipher | O(n) — one lookup per number | Historical espionage |
| ADFGVX | O(n) — Polybius + transposition | WWI German field cipher |
Limitations or considerations
This tool implements a representative subset of the Navajo code dictionary. The full 1945 code dictionary contained hundreds of vocabulary entries and additional tactical terms; this tool includes the most commonly documented terms. The alphabet table follows the U.S. Navy Navajo Code Dictionary. Pronunciation guides are approximate; the actual code used tonal Navajo pronunciation that cannot be fully represented in text. The tool does not generate audio.
Frequently asked questions
Was the Navajo code ever broken?
No. The Navajo code is one of the few military codes that was never broken by an enemy. Japanese cryptanalysts captured Navajo-speaking prisoners, but because the prisoners were not trained in the code layer, they could only translate the literal Navajo words, not the military terms they represented.
Who invented the Navajo code?
Philip Johnston, a civil engineer and WWI veteran who was the son of missionaries and grew up on a Navajo reservation speaking fluent Navajo. He proposed the idea to the Marine Corps in 1942, and the first 29 Navajo Code Talkers (Platoon 382) built the dictionary.
When was the Navajo code declassified?
The code was declassified in 1968 per Department of Defense Directive 5200.9. Until then, the code talkers could not discuss their work even with their families.
How many Navajo code talkers served?
Approximately 400 Navajos served as code talkers across the Pacific theater during WWII. The original 29 received Congressional Gold Medals in 2001, and all code talkers received Congressional Silver Medals.
Conclusion
The Navajo Code Talker Translator lets you encode English into the WWII Navajo code and decode it back, using the vocabulary and alphabet tables from the U.S. Navy Navajo Code Dictionary. The code's two-layer design, combining whole-word substitution with multi-equivalent letter spelling, made it unbreakable and earned the code talkers a place among the most important cryptographers of the 20th century.