Tap Code Translator & 5×5 Chart
Tap the row, pause, tap the column: W is 5-2, so WATER is 52 11 44 15 42. Type text, or paste dots or numbers to decode.
By Hommer Zhao · Updated
How Tap Code Works
Tap Code places the alphabet into a 5x5 square and represents each letter with two groups of taps: the first group gives the row, and the second group gives the column. For example, A is `.` `.` and T is `....` `....`.
Because the grid only has 25 cells, C and K are usually merged into one position. That is why a Tap Code decoder often returns C when you enter the pattern that could also mean K.
On screen, tap code is written two ways: dot groups (`..... ..` for W) with `/` between letters and `//` between words, or row-column numbers (`52`) with a space between letters and `/` between words. The translator outputs either and detects which one you paste.
Tap Code Chart (the 5×5 grid)
Every letter sits at a row and column in this square. To tap a letter, knock the row number first, pause, then knock the column number. So B is row 1, column 2 — one tap, pause, two taps.
| r\c | 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 |
There are only 25 cells, so K reuses C’s position (row 1, column 3); readers tell them apart from context. This is the same grid the converter above encodes with, so a letter’s taps always match between the chart and the tool.
Worked example: tapping WATER
Take each letter, find its row and column on the chart, and tap the two numbers. Reading W A T E R off the grid:
| Letter | Row, Column | Taps |
|---|---|---|
| W | 5, 2 | ····· ·· |
| A | 1, 1 | · · |
| T | 4, 4 | ···· ···· |
| E | 1, 5 | · ····· |
| R | 4, 2 | ···· ·· |
Put together, WATER taps out as ····· ·· / · · / ···· ···· / · ····· / ···· ··, using a short pause between the two numbers of a letter and a longer pause between letters. In numbers that is 52 11 44 15 42,29 taps in total.
Tap code phrases and tap counts
Every letter costs its row plus its column in taps — A is 2, Z is 10, and the 25 cells average exactly 6. Long messages add up fast, which is why POWs used shorthand such as GN and GBU. Counts below are generated by this page’s own encoder (run 2026-11-01, no manual edits); tap a phrase to open it in the translator.
| Text | Numbers | Taps |
|---|---|---|
| GNGood night (POW shorthand) | 22 33 | 10 |
| GBUGod bless you (POW shorthand) | 22 12 45 | 16 |
| WATERWorked example below | 52 11 44 15 42 | 29 |
| SOSHypothetical distress example | 43 34 43 | 21 |
| MEET AT NOONHypothetical example | 32 15 15 44 / 11 44 / 33 34 34 33 | 61 |
| Taps | Letters |
|---|---|
| 2 | A |
| 3 | B F |
| 4 | C/K G L |
| 5 | D H M Q |
| 6 | E I N R V |
| 7 | J O S W |
| 8 | P T X |
| 9 | U Y |
| 10 | Z |
The five phrases are selected demonstrations, not usage statistics: GN and GBU are documented POW abbreviations (see the references below); WATER, SOS and MEET AT NOON are illustrative.
History and Context
Tap Code is a practical adaptation of the older Polybius square idea, which dates back to classical antiquity. In modern popular culture, Tap Code is most often linked to prisoners passing messages through walls, pipes, or bars when spoken communication is restricted.
Its best-documented use is by American prisoners of war in North Vietnam. It was introduced at Hỏa Lò Prison — the camp the POWs nicknamed the “Hanoi Hilton” — in June 1965 by four prisoners: Carlyle “Smitty” Harris, Phillip Butler, Robert Peel and Robert Shumaker. Harris had heard of the method before his capture, and the prisoners spread it so men held in isolation could still communicate. By convention X broke up sentences and the C/K tap acknowledged a message. Over years of captivity the code let them share names, organize, and keep morale up when talking was forbidden.
A Cyrillic knock code is said to have been used earlier by prisoners of the Russian tsars, and Arthur Koestler’s novel Darkness at Noon (first published in 1940) features a prison knock code.
Unlike Morse Code, Tap Code does not depend on short and long signals. It only needs countable knocks or taps, which makes it useful anywhere you can produce repeated pulses but cannot vary duration reliably.
Frequently asked questions
What is Tap Code?
Tap Code represents each letter by its row and column in a 5×5 alphabet square — you tap the row, pause, then tap the column. It is most associated with knock-based communication, especially among prisoners.
How do you read the tap code chart?
Find the letter in the grid, then tap its row number, pause, and tap its column number. For example WATER is W (5,2), A (1,1), T (4,4), E (1,5), R (4,2).
Why are C and K combined in Tap Code?
A 5×5 square has only 25 cells, so Tap Code merges C and K into one position (row 1, column 3). Readers tell them apart from context.
How do you separate letters and words?
In dot notation this tool puts a slash between letters and a double slash between words; in number notation it puts a space between letters and a slash between words. When tapping by hand, pause slightly longer between letters and longer still between words.
How do you decode tap code without a chart?
Remember the first letter of each row: A, F, L, Q, V. Count the first group of taps to pick the row, then count along that row with the second group. 3 then 4 is row L-M-N-O-P, fourth letter: O.
Is tap code the same as the Polybius square?
It uses the same 5×5 idea. The POW tap code on this page drops K and taps C for it; many Polybius squares instead merge I and J, and some puzzles reorder the grid. If a message decodes to near-words with I/J or K oddities, it was probably made with a different grid.
Why does my tap code message not decode?
This translator reads the row-first POW grid shown here, with C/K sharing a cell. Messages built column-first, on an I/J grid, or on a 6×6 grid with digits will decode to near-gibberish; ask the sender which grid and order they used. Tap code is also easy to tell from Morse: it is groups of identical taps or digit pairs 1–5, never long and short signals.
How do you write tap code with numbers?
Write each letter as its row digit followed by its column digit: W is 52, A is 11, so WATER is 52 11 44 15 42. The translator above outputs this format and also decodes 5,2 or 5-2 pairs.
Who used Tap Code in the Vietnam War?
American POWs used it at Hỏa Lò Prison — the “Hanoi Hilton”. Four prisoners, including Captain Carlyle “Smitty” Harris, introduced it in June 1965 so men held in isolation could still communicate through cell walls.