The telephone keypad encoder turns text into the multi-tap key presses people used to type SMS messages on a numeric phone keypad. Each letter is one of three or four characters sharing a key, so you tap that key the right number of times: A is one tap of 2, B is two taps, C is three taps.
A brief history of multi-tap
Before smartphones, most mobile handsets had a 12-key numeric pad with no dedicated keyboard. When SMS messaging took off in the late 1990s, manufacturers needed a way to input text without a full QWERTY layout. The solution was multi-tap: each digit key 2 through 9 was assigned a group of letters in alphabetical order following the ITU-T E.161 standard, which standardized the layout so that any phone from any manufacturer would have the same assignment. To type a letter, you pressed the key repeatedly until the right character appeared. Sending “LOL” required pressing 5 three times, 6 three times, and 5 three times — nine key presses for three letters. It was slow, but it worked, and it spawned distinctive abbreviation habits that persist in digital culture today.
How it works
The encoder uses the ITU-T E.161 keypad layout and writes each letter as its key digit repeated by the tap position of that letter on the key:
2 ABC 3 DEF 4 GHI 5 JKL 6 MNO 7 PQRS 8 TUV 9 WXYZ 0 space
A=2 B=22 C=222
S=7777 (fourth letter on key 7, which holds PQRS)
Letters from one word are separated by spaces in the output so the boundaries between presses are clear; a space character maps to the 0 key.
Full keypad reference
| Key | Letters | Taps |
|---|---|---|
| 2 | A B C | 1, 2, 3 |
| 3 | D E F | 1, 2, 3 |
| 4 | G H I | 1, 2, 3 |
| 5 | J K L | 1, 2, 3 |
| 6 | M N O | 1, 2, 3 |
| 7 | P Q R S | 1, 2, 3, 4 |
| 8 | T U V | 1, 2, 3 |
| 9 | W X Y Z | 1, 2, 3, 4 |
| 0 | space | 1 |
Keys 7 and 9 hold four letters each, which is why S requires four taps of 7 and Z requires four taps of 9.
Worked examples
HIencodes to44 444— H is the second letter on key 4 (44) and I is the third (444).CALLencodes to222 2 555 555— C is three taps of 2, A is one, L is three taps of 5 twice.YESencodes to999 33 7777— Y is three taps of 9, E is two taps of 3, S is four taps of 7.
The repetition count makes multi-tap unambiguous, which is the key difference from predictive T9: you never need a dictionary to read it back. On a real handset you would pause between two letters sharing the same key, and that pause is what the space in the output represents.
Uses today
Multi-tap encoding still appears in escape-room and puzzle design, cipher-based games, retro-themed challenges, and educational demonstrations about how input methods evolved before touchscreens. The fixed, public ITU-T E.161 layout means the encoding is completely standard and unambiguous — anyone can decode it with just the keypad grid.