Skip to main content

DTMF

Decode and encode Dual-Tone Multi-Frequency phone keypad tones.

DTMF (Dual-Tone Multi-Frequency) is the signaling used by telephone keypads. Each press transmits two simultaneous tones, one from a row frequency and one from a column frequency. Decoding pairs the two numbers back into the original keypad character.

Only the 16 keypad characters are valid plaintext: digits 0-9, letters A-D, *, and #. Anything else (letters E-Z, spaces, punctuation) is silently dropped during encryption since no DTMF tone pair exists for it.