# Tap Code Translator

Canonical URL: https://offlineutils.com/tap-code
Category: Codes & Ciphers
Published: 2026-10-18
Publisher: offlineutils.com
Runs entirely in the browser; nothing entered into the tool is uploaded.

> A tap code translator converts text to and from the knock code prisoners tap through walls: each letter is two numbers, its row and column in a 5×5 grid in which C also stands for K. This one reads taps or digits, tries both coordinate orders and every common grid, and plays the code back as knocks, entirely in your browser.

The tap code puts the alphabet in a 5×5 grid — A B C D E, F G H I J, L M N O P, Q R S T U, V W X Y Z — and sends each letter as two groups of taps: the row, a short pause, then the column. B is one tap, pause, two taps. K has no cell and is sent as C, which costs almost nothing in practice. Nobody has to memorise the grid either: knowing that the rows start A, F, L, Q and V is enough to count your way to any letter.

It's a Polybius square, the ancient Greek device, put to work by prisoners. A Cyrillic version is said to have been used by nihilists in the Russian tsars' prisons, and Arthur Koestler's Darkness at Noon depicts it in 1941. It's best known from the Vietnam War: four American prisoners at Hỏa Lò — the "Hanoi Hilton" — Carlyle "Smitty" Harris, Phillip Butler, Robert Peel and Robert Shumaker introduced it in June 1965, and it spread through the camps because it was quicker to learn than Morse and could be sent through any wall. By convention an X ends a sentence and a K acknowledges.

In a puzzle the code turns up as numbers (23 15 31 31 34), as dots, or as a recording of knocks. This translator reads digits however they're grouped and taps as runs of dots, and decodes them with the tap code grid and the other common squares, in both coordinate orders, ranking the readings by how English they look — so a puzzle built on the I/J Polybius square instead still comes out right. Encoding gives you numbers, dots, and a playback of the knocks with the code's real rhythm: quick taps within a number, a pause between the two numbers, a longer one between letters.

## Features

- Translates text to and from tap code, with K sent as C
- Reads taps as dots or numbers, spaced or run together
- Decodes with every common square and both coordinate orders, best match first
- Plays the code back as knocks with the real rhythm
- Shows the grid, so you can count along

## Use cases

- Solving a puzzle or CTF challenge built on tap code
- Learning the code by hearing it tapped
- Writing a message in tap code for a game, a story or an escape room

## How to use it

1. **Paste the code** — Numbers like 23 15 31 31 34, or taps written as dots with spaces or slashes between the numbers.
2. **Read the best match** — Every common square and both coordinate orders are tried; the most English-looking reading comes first. Spaces aren't sent, so words run together.
3. **Encode and play** — Switch to Encode, type a message, and copy the numbers or dots — or press Play to hear it knocked.

## When to use it, and when to use something else

- **vs A tap code chart** — use Tap Code Translator when you want the numbers turned into text, or don't know whether the puzzle used the tap code grid or a Polybius square. Use A tap code chart when you're learning the code by heart.
- **vs Morse code** — use Tap Code Translator when the message has to survive being knocked through a wall, where long and short sounds are hard to tell apart. Use Morse code when you need speed — Morse is quicker to send once learned.

## Frequently asked questions

### How does the tap code work?

Each letter is two numbers: its row and its column in a 5×5 grid of the alphabet. You tap the row, pause, then tap the column, so B is one tap, a pause, then two. The rows start A, F, L, Q and V, which is all you need to remember to work out any letter. K is sent as C, because 26 letters don't fit in 25 cells.

### How do you say hello in tap code?

23 15 31 31 34: H is row 2, column 3; E is row 1, column 5; L is row 3, column 1, twice; O is row 3, column 4. Tapped, that's two taps then three, one then five, three then one twice, and three then four.

### Why is there no K in the tap code?

Because the alphabet has 26 letters and the grid has 25 cells, so one letter has to share. The tap code merges K into C, which is easy to read back from context. The classic Polybius square merges I and J instead; this translator tries both, so either kind of puzzle decodes.

### Who used the tap code?

Prisoners, mostly. A Cyrillic version is said to have been used by nihilists jailed by the Russian tsars, and it features in Arthur Koestler's Darkness at Noon. It's most famous from the Vietnam War, where American prisoners at Hỏa Lò introduced it in June 1965 and used it to keep a chain of command between cells. Jeremiah Denton even adapted it to coughs, sniffs and sneezes.

### Is the tap code the same as Morse code?

No. Morse uses short and long signals, which are hard to tell apart when knocked through a wall. The tap code only needs you to count taps and notice pauses, which is why prisoners found it easier to learn and more robust, even though messages take longer to send.

## Related tools

- https://offlineutils.com/polybius-square
- https://offlineutils.com/baudot-code
- https://offlineutils.com/punch-card-decoder
