Home › Tap Code Translator
Tap Code Translator
Type a message to see it in tap code, as numbers and as groups of knocks, then press play to hear it tapped out. Switch to decode to turn tap code back into text.
Tap code as knocks (first group = row, second group = column)
Tap code as numbers (row, then column)
Text
Tap code grid (tap a square to add that letter)
| Row / column | 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 |
How tap code works
Tap code sends letters as two groups of knocks. The letters sit in a 5×5 grid. The first group of taps gives the row and the second group gives the column, with a short pause between the two groups and a longer pause before the next letter. H is in row 2, column 3, so it is tap-tap, pause, tap-tap-tap.
Twenty-five squares hold 26 letters, so K is left out and tapped as C. Most messages are still easy to read, and tappers often drop letters or use short forms to save time.
Written down, tap code is usually shown as number pairs (H = 23) or as dots (•• •••). This tap code translator accepts both when you decode: type pairs like 23 15 31 31 34, or groups like •• ••• • ••••• (dots or full stops both work), and put a slash between words.
Tap code in Vietnam POW camps
Tap code is best known from the Vietnam War. American prisoners in the Hoa Lo prison in Hanoi, which they called the "Hanoi Hilton", were held in separate cells and forbidden to talk. In 1965 Air Force pilot Carlyle "Smitty" Harris taught the code to other prisoners, and it spread from cell to cell through the walls. Prisoners used it to keep up morale, pass on news and agree on how to resist questioning. Common short forms included GN for good night and GBU for God bless you.
The idea is much older. The grid is a version of the Polybius square, described by the Greek historian Polybius more than 2,000 years ago, and prisoners in Russian jails used a similar knock code in the 1800s.
Tips for tapping by hand
Keep the knocks inside a letter fast and even, pause clearly between the row and the column, and pause a little longer between letters. The Speed slider changes all three gaps together, so you can slow it right down while you learn the grid.
How we tested
"Hello" gave 23 15 31 31 34 and the knocks •• ••• • ••••• ••• • ••• • ••• ••••, and decoding the numbers and the knocks both gave HELLO again, as did the same knocks typed with full stops. "Kick" became 13 24 13 13, which reads back as CICC, because K is sent as C. The group 61 showed a question mark and a warning, and tapping the T square added a T. During playback the grid lit H and then switched to I at the right moment for "Hi"; we checked the timing in code rather than judging the knock sound by ear. The page was checked in Chromium on Windows at desktop width and at 375 px with no sideways scrolling and no console errors. Not tested yet: Safari on iPhone and Firefox.
Questions
How do you write K in tap code?
K does not have its own square. It is tapped as C (row 1, column 3), and the reader works out which one was meant from the word.
Is tap code the same as Morse code?
No. Morse code uses short and long signals, so it needs timing that is hard to keep through a wall. Tap code only counts knocks, which is why it is easier to learn and to use in a cell.
How do I read numbers in tap code?
Each pair of numbers is one letter: the first number is the row, the second is the column. 44 is row 4, column 4, which is T.
Can tap code send numbers and punctuation?
The standard grid has letters only. Numbers are usually spelled out as words, and punctuation is left out.