Tap code translator
Turn text into tap code and back. The tap code translator knocks your message while the 5 by 5 grid lights each row and column, saves the sound, and reads knocks you tap on the pad or near your microphone. Free, and nothing is recorded.
Tap code
•• ••• • ••••• ••• • ••• • ••• ••••
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | A | B | C/K | D | E |
| 2 | F | G | H | I | J |
| 3 | L | M | N | O | P |
| 4 | Q | R | S | T | U |
| 5 | V | W | X | Y | Z |
Knock a message
Tap the row, pause, tap the column, pause. Each pair makes a letter. On a keyboard, press Space or Enter on the pad.
Your knocks appear here
- Hear it and see itEach knock sounds while the grid lights up
- Three gridsThe prisoners’ 5 by 5, Polybius or 6 by 6
- Reads real knocksTap the pad or knock near your microphone
How to use
Type a message, or pick an example under the box.
Read it as knocks or as numbers (row, then column). Pick another grid if your puzzle uses one.
Press Knock it to hear it slow, normal or fast while the grid lights each row and column.
To read tap code, switch to Taps to text and type the numbers or knocks, tap them on the pad, or press Listen for knocks and knock on a table near your microphone. On the pad, Back undoes a group and Use as input puts the knocked letters in the box.
Copy the result, press Download WAV to save the knocks, or open the message as Morse code.
What it does
This tap code translator is also a knock code decoder:
Both ways. Text to knocks or numbers, and knocks or numbers back to text.
Hear it and see it. Each knock sounds while the tap code chart lights the row, then the column.
Three grids. The prisoners’ 5 by 5 grid (K as C), the Polybius square (J as I), or a 6 by 6 grid with the digits 0 to 9.
Reads real knocks. Tap the pad, press Space or Enter on it, or knock near your microphone, and the letters appear as you go.
Saves the sound. Download the knocks as a WAV file at the speed you chose.
Morse code too. Open the same message in the Morse code translator.
How it works
The tap code puts 25 letters on a 5 by 5 grid, a Polybius square. K has no square, so C stands in for it. Knock the row, pause, then knock the column.
Find the row
H is in row 2 (F G H I J), so knock twice.
You only need the first letter of each row: A, F, L, Q, V.
Find the column
H is third along, so pause and knock three times.
Next letter
A longer pause ends the letter.
HI is •• ••• then •• •••• (row 2, column 3; row 2, column 4).
At the normal speed the knocks in a group are 0.2 s apart, the row and the column 0.55 s apart, and a new letter starts 1 s after the last knock (a new word after 1.8 s). Slow stretches every gap 1.5 times, Fast shrinks it to 0.65.On the pad, a pause of 0.7 s ends a group, and every two groups make a letter.Listen for knocks measures how loud the sound is every 5 milliseconds: a jump of about 18 dB over the room’s background is a knock, and two knocks closer than 80 ms count as one, so a ringing table isn’t read twice.
Examples
Check any row against the grid in the tool:
| Message | Numbers | Knocks |
|---|---|---|
| HELLO | 2,3 1,5 3,1 3,1 3,4 | •• ••• • ••••• ••• • ••• • ••• •••• |
| SOS | 4,3 3,4 4,3 | •••• ••• ••• •••• •••• ••• |
| GBU (God bless you) | 2,2 1,2 4,5 | •• •• • •• •••• ••••• |
| GN (good night) | 2,2 3,3 | •• •• ••• ••• |
| TAP CODE (C stands in for K) | 4,4 1,1 3,5 / 1,3 3,4 1,4 1,5 | •••• •••• • • ••• ••••• / • ••• ••• •••• • •••• • ••••• |
| 2026 (6 by 6 grid) | 5,5 5,3 5,5 6,3 | ••••• ••••• ••••• ••• ••••• ••••• •••••• ••• |
Prisoners shortened common words to save knocks, such as GN for good night and GBU for God bless you, and used X to end a sentence.
Good questions
Frequently asked questions.
About the tap code translator
What is tap code?
Tap code, also called knock code, sends each letter as two groups of knocks: the row of its square on a 5 by 5 grid, then the column. Every knock sounds the same, so it works through a wall, a pipe or a table, where Morse code’s short and long sounds are hard to tell apart.
How do you read tap code?
Count the knocks in each group and pair them: the first number is the row, the second the column. Four knocks, a pause, then three is row 4, column 3: S. Type the numbers here as 4,3, or knock along on the pad, and the letters appear.
Why is there no K in tap code?
Twenty-five squares hold twenty-six letters only if two share one, so the prisoners’ tap code sends K as C. Read C as K when a word needs it. Some puzzle grids drop J instead and send it as I: pick that grid above if your puzzle uses it.
Who used tap code?
American prisoners of war in Vietnam made it famous. Four of them started it in Hoa Lo prison, the “Hanoi Hilton”, in June 1965: Carlyle “Smitty” Harris, Phillip Butler, Robert Peel and Robert Shumaker. The grid goes back to the Polybius square of ancient Greece, and Russian prisoners knocked a Cyrillic version under the tsars.
Is tap code the same as Morse code?
No. Morse code uses short and long signals; tap code uses one knock, counted.
You can knock Morse code, but a dash then needs a different sound, such as a thump instead of a tap, which is why prisoners chose tap code. To tap Morse on a screen or a key, use the Morse keyboard.
How do you tap numbers?
The prisoners’ grid has no digits, so numbers are spelled out: SEVEN, not 7. For a puzzle that needs digits, pick the 6 by 6 grid: it holds A to Z and 0 to 9, so 2026 is 5,5 5,3 5,5 6,3. The person reading needs the same grid.
How do I decode the tap code in Metal Gear 2?
Count each group of taps, write the numbers in pairs, row then column, and type them in Taps to text, or knock along on the pad.
In Metal Gear 2: Solid Snake (1990), Dr. Madnar taps to Snake through a cell wall, and the game’s manual explains the same row-then-column rule. If the letters make no sense, try another grid.
Is tap code a secret cipher?
No. Anyone who knows the grid can read it, and there is no key.
Prisoners used it because it is quick to learn and quiet, not because it hides a message. For a code that looks secret on paper, try the Pigpen cipher.
Trust and limits
Private by design.
Honest about limits.
On your device
Runs in your browser
The translator runs in your browser. The knocks are made on your device with the Web Audio API.Private
Nothing is recorded
Listen for knocks measures only how loud the microphone’s sound is; nothing is recorded, stored or uploaded.Know the limits
What it can’t tell apart
The microphone hears any sharp sound as a knock, so a clap, a door or a loud word can add one: knock in a quiet room, close to the phone or laptop. It hears one knocker at a time. The prisoners’ grid has no digits or punctuation, so they are left out; the 6 by 6 grid is a puzzle variant, not the code used in Vietnam.Sources
Where the history comes from
The history here follows Wikipedia’s tap code article and the Metal Gear 2 manual. Maintained by Translate Morse Code, an independent site; last updated October 2026.
Sources
- WikipediaTap codeUsed for the history
- KonamiMetal Gear 2: Solid Snake manualUsed for the tap code in the game
Last checked October 2026