ForHosting KIT · Developer Utilities

T9 predictive text encoder

Type hello and get 43556, the keys you would press on a classic phone pad where 2 holds ABC and 9 holds WXYZ. Decoding shows the letter groups behind each digit instead of guessing a word. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Text
hello
Calculation mode
Encode
You get
Result
43556
Encoding
t9
Input length
5
Output length
5

T9 (Text on 9 keys) is the classic mobile-phone input system that maps each Latin letter to one digit on the ITU E.161 keypad: 2 holds ABC, 3 holds DEF, 4 holds GHI, 5 holds JKL, 6 holds MNO, 7 holds PQRS, 8 holds TUV, and 9 holds WXYZ, while 0 stands for a space between words. People still need that mapping when recovering old SMS digit sequences, teaching multi-tap history, building puzzle clues, or checking how a word would have been typed on a feature phone. This T9 predictive text encoder converts plain Latin text into the corresponding digit string in one direction and, in the other, expands a digit sequence into the letter groups on each key so you can see the ambiguity without inventing a dictionary guess.

How T9 letter keys work and what encode returns

On a classic twelve-key phone pad, letters ride on keys two through nine in the familiar layout that also appears on many landline handsets and in standards documents as the E.161 letter assignment. Encoding is therefore a pure one-to-one map from each Latin letter to a single digit: H becomes four, E becomes three, L becomes five, and O becomes six, so the word hello collapses to the five-digit sequence four three five five six. Case does not matter; lowercase and uppercase letters share the same key.

Spaces become zero so multi-word phrases keep word boundaries inside a pure digit string—hi space there becomes four four zero eight four three seven three. Because the map never depends on language models or word lists, the same input always yields the same digits in every isolate and in the free browser path.

Decode direction, invalid digits, and ambiguity without a dictionary

Decoding a T9 digit sequence is intentionally different from encoding: each digit two through nine stands for several letters, so a five-digit string such as four three five five six expands to the letter groups GHI, DEF, JKL, JKL, and MNO rather than a single guessed English word. This capability reports that expansion as a hyphen-joined result string, plus a keys array of digit and letters pairs, plus combinations equal to the product of the group sizes so you can see how large the candidate space is.

Digit zero inserts a word break rendered as a slash-separated boundary between groups, mirroring how encode stored spaces. Digit one has no letters on the classic letter map and is rejected as an invalid digit with a message that points at the index. Empty text fails immediately.

The product deliberately does not ship a predictive dictionary or language model: many landings labeled T9 confuse multi-tap press counts, dictionary prediction, and simple digit encoding, but the SEO slug here targets the deterministic keypad digit sequence people paste from old notes and CTF puzzles.

In classrooms, puzzles and old text messages

Use the free in-browser T9 predictive text encoder when you want a quick check of how a name or slogan would look as keypad digits, when teaching the history of mobile text entry, or when solving a puzzle that hands you a string of digits two through nine. A typical classroom workflow encodes a short English word, shows students that each letter became one digit, then decodes the digits to reveal the multi-letter groups and the combinations count, which motivates why feature phones needed a dictionary for true predictive text.

Support playbooks can recover digit sequences stored in legacy ticket systems that only kept the numeric form of a contact keyword. Puzzle sites can publish digit clues and let solvers expand the groups themselves. Pair with Morse or NATO tools only when the lesson needs a different code system—keep T9 on its own landing so search intent stays sharp and the slug t9-predictive-text-encoder does not compete with unrelated encoders.

Recover old SMS-style digit sequences

Paste a classic keypad digit string and expand each key into its letter group to reconstruct how a word was typed on a feature phone.

Classroom multi-tap and T9 history

Encode a word to digits, then decode to show ambiguity and combinations so students see why predictive dictionaries were required.

How do I convert text to T9 digits?

Send a non-empty text field with mode encode (the default). Each A–Z letter maps to keys 2–9; spaces become 0. The result field holds the digit string.

How do I decode a T9 digit sequence?

Send the digit string in text with mode decode. Digits 2–9 expand to their letter groups; 0 is a word break. The response includes result, keys, and combinations.

Why does decode not return a single English word?

Without a dictionary, each digit is ambiguous. This tool reports the keypad letter groups and how many combinations they produce so you can apply your own lexicon if needed.

Which digits are invalid?

On decode, only 0 and 2–9 are accepted.

How are spaces between words written in T9?

Each space becomes 0, so a phrase keeps its word breaks inside a pure string of digits. When you decode, a 0 shows up again as a break between the letter groups.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/enc/t9

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/enc/t9 \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"hello"}'
{
  "text": "hello"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "enc.t9",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Invalid digits and non-letter characters are rejected with a clear invalid_input error instead of silent skips.

How T9 letter keys work and what encode returns

Characters outside A–Z and space are not part of the classic letter pad for this tool, so punctuation, digits already present in the source, emoji, and non-Latin scripts fail with invalid_input naming the character and index. The success payload echoes mode encode, sets encoding to t9, returns the digit string in result, and reports input_length and output_length so clients can assert that every letter and space produced exactly one digit.

Decode direction, invalid digits, and ambiguity without a dictionary

Any other non-digit character is also invalid_input. If you need a single dictionary word, combine the combinations count and keys array with your own lexicon offline; the API stays pure, fast, and free of network calls. Mode decode is selected with the mode field set to decode; aliases op, direction, and action are accepted for older form names.

API usage, pricing, classrooms, and practical workflows

Keep payloads to ordinary message sizes appropriate for a Worker isolate item call; this tool is for words and short phrases, not multi-megabyte blobs.

Puzzles, CTFs, and scavenger hunts

Publish T9 digit clues and let solvers expand letter groups with a deterministic API instead of hand-mapping the keypad.

What does the T9 predictive text encoder cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →