Tap Code Translator

Convert text to tap code and decode tap code back to text. Uses the 5x5 Polybius square cipher system with dot notation.

Translation Options

What is Tap Code?

Understanding Tap Code

Tap code is a simple cipher system based on a 5x5 grid (Polybius square) where each letter is represented by two numbers indicating its row and column position. The code is transmitted through taps or knocks, making it useful for covert communication when visual or verbal methods aren't available.

How Tap Code Works

The alphabet (excluding K, which shares C's position) is arranged in a 5x5 grid. Each letter is encoded as two sets of taps: the first indicates the row, the second indicates the column. For example, 'A' is position (1,1), represented as one tap, pause, one tap. In written form, this is commonly shown as dots or numbers.

Historical Use

Tap code gained prominence during the Vietnam War when American POWs used it to communicate through prison walls. The system's simplicity and effectiveness made it ideal for situations where prisoners could only communicate through sound.

Examples

Input

HELLO

Output

.. ... / . ..... / .-.. .-.. / .-.. .-.. / --- / (Dots notation) H = (2,3), E = (1,5), L = (3,1), L = (3,1), O = (3,4)

Input

SOS

Output

4-4 / 3-4 / 4-4 (Numbers with dash notation)

Input

.. ... / .. / (Tap code input)

Output

HI

Input

TAP CODE

Output

4-4 1-1 4-1 / 1-3 3-4 1-4 1-5 (Numbers with dash, word separator: space)

Tap Code Grid Reference

The standard 5x5 Polybius square used in tap code:

12345
1ABC/KDE
2FGHIJ
3LMNOP
4QRSTU
5VWXYZ

Note: The letters C and K share the same position (1,3). When decoding, context determines which letter is intended, though C is typically used by default.

Frequently Asked Questions

What's the difference between tap code and Morse code?

Tap code uses a 5x5 grid system where each letter is represented by two numbers (row and column), transmitted as taps. Morse code uses unique patterns of dots and dashes for each letter. Tap code is simpler to learn and use without equipment, making it ideal for covert communication through walls or pipes.

Why do C and K share the same position?

The 5x5 grid has 25 positions but the English alphabet has 26 letters. Traditionally, C and K share position (1,3) because they often make similar sounds. When decoding, C is typically used by default, and context helps determine if K was intended.

Can tap code encode numbers?

Numbers aren't directly part of the 5x5 grid. They're typically spelled out as words (ONE, TWO, THREE, etc.) and then encoded as letters. Some systems use special conventions for numbers, but spelling them out is the most common approach.

How were POWs able to use tap code effectively?

American POWs during the Vietnam War used tap code to communicate through prison walls by tapping with their knuckles or other objects. The system's simplicity meant it could be learned quickly and used without any tools. Prisoners would tap out messages letter by letter, with pauses distinguishing between the row and column taps.

What's the best notation style for beginners?

Dot notation (. .. / ... ....) is often easiest for beginners because it visually represents the actual taps. Each dot represents one tap, and the space between groups shows the pause between row and column. Numbers with dashes (1-2 / 3-4) are more compact and easier to write quickly.

Comments