Type a message above to turn it into tap code, then play it as knocks or flashes. To decode a message, choose Code to text. Enter dots or numbers, or tap the message yourself.
The same tool works as a Polybius square decoder. You’ll also find a tap code chart, 20 puzzles with answers and a free printable sheet.
Download the chart and 20 puzzles (free PDF)
Tap Code Chart and Alphabet
The tap code alphabet fits in a grid of 5 rows and 5 columns. That makes 25 boxes for 26 letters, so K uses the C box.
| 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 to Use Tap Code
- Find the letter on the chart.
- Tap the row number. H is in row 2, so tap twice.
- Pause briefly, then tap the column number. H is in column 3, so tap three times.
- Pause a little longer before the next letter, and longer still before the next word.
HI becomes .. ... .. ....: H is 2, 3 and I is 2, 4. To decode a message, read two groups at a time. The first is the row and the second is the column.
Tip: if you see a C, try K too. BLACC is really BLACK.
Try 20 Code Puzzles
Use the chart to solve these before checking with the translator. A wider gap means a new letter, and / means a new word.
Easy Tap Code Puzzles (1–8)
1. Decode: .... ... .... .... . . .... ..
Show answer
STAR.
2. Decode: ... .. ... .... ... .... ... ...
Show answer
MOON.
3. Decode: .... .... .. .... .. .. . ..... .... ..
Show answer
TIGER.
4. Decode: ... ..... .. .... ..... ..... ..... ..... . .
Show answer
PIZZA.

5. Decode: .. .. .. ... ... .... .... ... .... ....
Show answer
GHOST.
6. Decode: .... .. ... .... . .. ... .... .... ....
Show answer
ROBOT.
7. Decode: .. ... ... .... ... ... . ..... ..... ....
Show answer
HONEY.
8. Decode: ... .. .... ..... .... ... .. .... . ...
Show answer
MUSIC.

Tap Code Number Puzzles (9–14)
Here, each pair of numbers is one letter. For example, 23 means row 2, column 3. Remember that C could be K.
9. Decode: 13 24 44 15
Show answer
KITE – it decodes as CITE, because K uses the C box.
10. Decode: 12 34 34 13
Show answer
BOOK – it decodes as BOOC, because K uses the C box.
11. Decode: 32 24 31 13
Show answer
MILK – it decodes as MILC, because K uses the C box.
12. Decode: 43 33 34 52 32 11 33
Show answer
SNOWMAN.
13. Decode: 44 45 42 33 / 31 15 21 44
Show answer
TURN LEFT.
14. Decode: 21 34 31 31 34 52 / 44 23 15 / 32 11 35
Show answer
FOLLOW THE MAP.

Polybius Square Puzzles (15–20)
Use the Polybius square below for these. Its boxes are different from the tap code chart.
15. Decode: 31 24 43 44 15 33
Show answer
LISTEN.
16. Decode: 24 24 22 43 11 52
Show answer
JIGSAW – it decodes as IIGSAW, because I and J share a box.
17. Decode: 43 45 33 21 31 34 52 15 42
Show answer
SUNFLOWER.
18. Decode: 31 34 34 25 / 45 35
Show answer
LOOK UP.
19. Decode: 33 15 51 15 42 / 22 24 51 15 / 45 35
Show answer
NEVER GIVE UP.
20. Decode: 22 34 34 14 / 44 23 24 33 22 43 / 44 11 25 15 / 44 24 32 15
Show answer
GOOD THINGS TAKE TIME.

Polybius Square Cipher Chart
A Polybius square also gives each letter a row and column number. In the usual English version, I and J share a box and K has its own. Open the Polybius square decoder to try it.
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | A | B | C | D | E |
| 2 | F | G | H | I / J | K |
| 3 | L | M | N | O | P |
| 4 | Q | R | S | T | U |
| 5 | V | W | X | Y | Z |
In this square, HELLO becomes 23 15 31 31 34. You can also start the square with a keyword. Write its letters first without repeating any, then add the rest of the alphabet in order. Both people need to know the keyword.
The square is named after the Greek writer Polybius. He described it as a way to send messages with torches and said Cleoxenus and Democleitus had invented the idea.
What Is a Checkerboard Cipher?
“Checkerboard cipher” can mean two things. A Polybius square is also called a Polybius checkerboard, and this tool can decode it. A straddling checkerboard is different: some letters become one number and others become two. This tool can’t decode that kind.
The Story Behind Tap Code
Tap code is best known for helping American prisoners of war communicate during the Vietnam War. They couldn’t use Morse code by knocking on a wall, because a knock can’t make a long dash.
In June 1965, four prisoners sharing a cell at Hoa Lo in Hanoi began using tap code: Carlyle “Smitty” Harris, Phillip Butler, Robert Peel and Robert Shumaker. Harris remembered it from a survival instructor, who had told him that British prisoners used a tap code in the Second World War. The men passed it on, and it spread to other prisoners. Harris later showed how to tap GBU, short for “God bless you”.
You can read more from PBS and Air & Space Forces Magazine.
Tap Code vs Morse Code
- Tap code uses only knocks. You count the taps in each group, and longer pauses separate letters and words.
- Morse code uses short dots and long dashes, which work well with a light or radio signal.
- Neither keeps messages private. Anyone who knows the code can read them. Use this page for games and learning, not for real secrets.
More Codes and Puzzles
- 30 Cipher Puzzles – Atbash, Caesar and scytale
- Pigpen Cipher – letters become symbols
- 50 Treasure Hunt Riddles – with printable clue cards
- Word Search Maker – make your own and download a PDF
- 12 Star Battle Puzzles – play online or print
- 20 Logic Puzzles with Answers
- 40 Number Riddles with Answers
- 50 Riddles for Work
- 30 Lateral Thinking Puzzles
- Cipher Decoder and Identifier (14 Ciphers)
Frequently Asked Questions
How does tap code work?
Each letter is sent as two groups of taps. The first gives its row on a 5 × 5 chart, and the second gives its column. For example, two taps, a short pause and three taps mean H.
Why is there no K in tap code?
A 5 × 5 chart has 25 boxes, but the alphabet has 26 letters. K uses the C box, so you work out which letter fits the word.
Is tap code the same as a Polybius square?
They work in the same way, but the usual English charts differ. Tap code puts K with C. A Polybius square usually puts I and J together and gives K its own box.
Is tap code the same as knock code?
“Knock code” is another name people use for tap code. It can also mean a secret knock pattern or a way to unlock a phone. This translator uses the 5 × 5 tap code.
Can this translator decode a recording of knocks?
No, it doesn’t listen to recordings. Count the taps and type them as dots or numbers, or copy the rhythm on the tap button.
Is my message saved?
No. The translator works in your browser, and your message isn’t sent to our website.