Skip to main content

Tap Code Translator

New

Encode and decode the Tap Code, which represents each letter as a pair of knock counts on a 5x5 grid — historically used by prisoners of war to communicate through walls.

tap codecipherpolybiusprisoner communicationmorse
Read the guide
Shortcuts:⌘ KSearch
12345

The Tap Code arranges the alphabet (with C and K sharing a cell) in a 5x5 grid. Each letter is transmitted as two numbers — its row, then its column — often tapped out as knocks on a wall or pipe. It was famously used by prisoners of war, including American POWs in Vietnam, to communicate silently between cells.

Continue with:

Frequently Asked Questions

How does the Tap Code actually represent letters?

It arranges the alphabet (with C and K sharing a single cell) into a 5x5 grid and encodes each letter as two numbers — its row, then its column — traditionally communicated as pairs of knocks or taps, with a pause between the row-taps and column-taps.

Why do C and K share the same cell?

A 5x5 grid has exactly 25 cells but the alphabet has 26 letters, so one pair has to be merged — the Tap Code and the closely related Polybius square both conventionally merge C and K since they sound similar and K is comparatively rare in English.

Where was the Tap Code actually used historically?

It became famous for its use by American prisoners of war held in Vietnam, who tapped messages on shared walls and pipes to communicate between isolated cells without being detected by guards — it required no tools, just knuckles and patience.

What does the "/" mean in the tap pattern?

It represents a space between words in the original text, giving the decoder a clear word boundary without needing an extra tap sequence for it.

Is the Tap Code the same as Morse code?

No — Morse code uses variable-length sequences of dots and dashes assigned by letter frequency, while the Tap Code uses a fixed two-number grid coordinate for every letter, making it simpler to memorize and tap out silently, at the cost of being slightly less compact for common letters.

Related Tools