1. Home
  2. Glossary
  3. Tokenization
AI glossary · Models & training

Tokenization

Tokenization: Tokenization is the process of splitting text into tokens, the small chunks of characters that a language model actually reads and writes. Common words are often one token; rare words, numbers, and code are broken into several.

Language models do not see letters or words. Before your prompt reaches the model, a tokenizer chops it into pieces drawn from a fixed vocabulary of word fragments learned during training. 'The' is one token. 'Antidisestablishmentarianism' might be six. A phone number can be a dozen. The model then predicts its answer one token at a time, and a detokenizer stitches the pieces back into readable text.

This explains several things people find odd. Models struggle to count letters in a word or spell it backwards because they never see the letters. English is tokenized efficiently, while many other languages and dense formats like spreadsheets or JSON use far more tokens for the same content, which costs more and fills the context window faster. Vendors use different tokenizers, so the same document has a different token count in ChatGPT, Claude, and Gemini.

For everyday work you rarely think about tokens until you hit a limit or a bill. API pricing is per token, context windows are measured in tokens, and long conversations slow down as the count grows. The rough rule that 1,000 tokens is about 750 words of English is fine for estimates; most vendors also publish a tokenizer tool that gives an exact count.

Example at work

A data analyst pastes a 40-column CSV export into a chat and hits the length limit long before she expected. The commas, decimals, and repeated column headers each cost tokens. She trims the export to the eight columns she needs and the same file fits with room to spare.

Why it matters

Tokenization is why AI pricing, length limits, and a few strange failures (counting letters, spelling backwards) work the way they do. Understanding it helps you estimate costs, fit more into a prompt, and stop being surprised when a 'short file' turns out to be huge.

Related terms