Glossary
Tokenisation
Cutting text into the chunks a model actually reads, which are neither letters nor words and are what you are billed and limited by.
In plain terms
Chopping text into pieces before the model sees it. The pieces are not words and not letters, they are somewhere in between, and they are the unit everything is priced and limited in, which is why estimating from a word count is always a little wrong.
Why it matters
Because every limit and every price is expressed in a unit nobody can count by looking. Budgets, context limits and cost estimates are all built on it, and the gap between what a person counts and what the system counts is not a constant you can multiply by.
How it works
The pieces are chosen for compression rather than meaning. Common sequences become one piece and rare ones are broken up, so an everyday word may be a single unit while an unusual name becomes several.
That is why the mismatch is uneven. Ordinary prose in a well-represented language packs efficiently; specialist vocabulary, unusual names, code and identifiers pack badly, so two documents of identical length can differ substantially in what they cost.
Languages are not treated equally, and this is worth knowing before it appears on an invoice. Text in a language less represented in the material the tokeniser was built from breaks into more pieces, so the same meaning costs more to send and takes more of the available room.
Whitespace and punctuation are not free. Formatting, indentation and repeated separators all occupy space, which is why a heavily formatted document can be considerably more expensive to send than its readable content suggests.
Different tools count differently, so a figure from one is not a figure for another. Any estimate worth relying on has to come from the tokeniser the system you are using actually applies, and most providers offer a way to check.
The practical consequence is to measure rather than estimate. A word count multiplied by a rule of thumb is fine for a rough sense and unreliable for a budget, and the difference matters most on exactly the material that is unusual enough to be worth automating.
Same length, different cost
Seen in the wild
A long document costing more than its word count suggested because of formatting.
ChatGPTCode and identifiers packing far less efficiently than prose of the same length.
Claude CodeChecking the count with the tokeniser the model actually uses rather than estimating.
Hugging Face
Common misconceptions
People assume
A token is roughly a word.
In fact
It is a chunk chosen for compression, so a common word can be one and an unusual name several. The relationship is not a fixed ratio, which is exactly why a rule of thumb fails on the material that matters.
People assume
The same text costs the same in any language.
In fact
Text in a language less represented in the tokeniser's source material breaks into more pieces, so the same meaning costs more to send and occupies more of the available room. It is a property of the tokeniser rather than of the language.
Questions
- Why does our estimate keep coming in low?
- Probably because it was built from a word count on ordinary prose and applied to something else. Formatting, code, identifiers and unusual names all pack badly, and those are common in exactly the documents an organisation wants to process in bulk.
- Can we just multiply words by a fixed number?
- For a rough sense, yes. For a budget, no. The ratio changes with the language, the subject matter and the formatting, so a rule of thumb is least accurate on the unusual material that is most likely to be worth automating.
- How should we get a real figure?
- Use the tokeniser that the system you are actually using applies, on a genuine sample of your own material rather than on a paragraph of clean prose chosen because it was to hand. Most providers offer a way to do this, and it takes a few minutes.
Key takeaways
- Pieces are chosen for compression, not meaning, so the ratio moves.
- Formatting, code and unusual names pack badly and cost more.
- Some languages break into more pieces for the same meaning.
- Measure on your own material with the right tokeniser; do not estimate.
Tools that use this
- ChatGPT
A document costing more than its word count implied.
- Claude Code
Code packing far less efficiently than prose.
- Hugging Face
Checking with the tokeniser the model actually uses.
Last checked August 2026