Tokens and tokenization
For both
How text becomes tokens and why tokens decide cost, context limits, speed and odd spelling mistakes
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which description of a token is closest to the truth?
Check yourself · 2 of 5
Which of these is counted in tokens?
Check yourself · 3 of 5
Why can a strong model get "How many r's are in strawberry?" wrong?
Check yourself · 4 of 5
Why might the same message cost more tokens in some non-English languages?
Check yourself · 5 of 5
About how many tokens is a 1,000-word English article, by the usual rule of thumb?
Topics
- How text splits into tokens3 min read · Words, word pieces, spaces and punctuation become tokens, and each model family uses its own tokenizer
- Tokens drive cost, limits and speed4 min read · Prices, context limits, rate limits and answer length are all counted in tokens, with input and output priced differently
- Spelling and counting token traps4 min read · Counting letters, reversing words and long-number arithmetic fail because the model sees tokens, not characters
- Token costs across languages and formats4 min read · The same content costs more tokens in many non-English languages, in code, in JSON and with unusual symbols
- Estimating tokens with tokenizer tools4 min read · Rules of thumb for English text, tokenizer playgrounds and the usage fields an API returns
Start here
- Tokenizer (OpenAI) (opens in a new tab)ToolFree
Paste any text and see the token boundaries and count, coloured piece by piece.
- Tiktokenizer (compare tokenizers) (opens in a new tab)ToolFree
Switch between model tokenizers and see how the same text splits differently.
- Andrej Karpathy: minbpe and the GPT tokenizer lecture (opens in a new tab)ToolFree
A small tokenizer you can read, plus the lecture in text and video form on why spelling, arithmetic and non-English text go wrong.
Scenarios
110 questions · last verified 2026-12