esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Why Do Token Counts Differ Across Languages and Models?

Why the same text can cost more tokens in some languages and on some models, and how to count it right, explained for your AI interview.

In short

A tokenizer learned its pieces from its training text, so languages it saw less of split into more tokens. The count also depends on the model and its encoding, so always count with the model you plan to use.

10 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

A token is a piece of text, like a word, part of a word or a symbol. A tokenizer learns its pieces from its training text. So text it saw less of splits into more pieces, and the same policy can cost far more in one language. The count depends on the model and its encoding too, so counts change when you switch models. I count with the model I will run, and I check the usage on each real call.

What is a token count, in plain words?

A token is a small piece of text that a model reads and counts. It can be a whole word, part of a word, a number or a symbol. The tokenizer is the part that cuts text into tokens, and it decides where each piece starts and ends.

The token count is how many of those pieces a text turns into. It matters because usage, limits and costs are counted in tokens. OpenAI's help page says that input, output and cached tokens all affect usage, model limits and costs.

Think of a call centre's shorthand codebook. A common request has a one-word code. A rare phrase has no code, so the agent spells it out letter by letter, and the log gets longer. A tokenizer works the same way: it has codes for what it saw often, and spells out the rest in smaller pieces.

A real product shows the same effect. A bank's fee policy can cost far more tokens in Tamil than in English, because the tokenizer has fewer learned codes for Tamil.

Byte pair encoding (BPE) is a common method for building those codes. It starts with single letters and merges the pairs that show up together most often.

Key words

Token
A small piece of text, often part of a word, that the model reads and counts.
Tokenizer
The fixed set of rules that cuts text into tokens. Its rules are tied to a model or encoding.
Vocabulary
The list of pieces a tokenizer knows, with a number for each piece.
Byte pair encoding (BPE)
A common way to learn the pieces: merge the pairs of letters that appear together most often.

Why does the same text get different counts across languages?

A tokenizer is built once, from a large pile of training text. Hugging Face's guide says common words stay whole as single tokens, while rare words split into smaller subword pieces.

Same meaning, different token counts

Policy in English

common words, few splits

Policy in Tamil

fewer training examples, more splits

Tokenizer

rules learned from its training text

Fewer tokens

cheaper, fits the window

Many more tokens

costlier, fills the window

  1. 1English text reaches the tokenizer. Its common words match big pieces.
  2. 2Tamil text reaches the same rules. Its letters match many small pieces.
  3. 3English comes out as a short list of tokens.
  4. 4The same meaning in Tamil comes out as a much longer list.
A simplified picture: the same policy, in two languages, goes through one tokenizer. Its learned rules keep English in big pieces and split a less common script into many small ones. The words are a rough picture of the gap, with no measured counts.

So, in our reading, the training text sets the cost, because the pieces are learned from it. A language with lots of text gets big, reusable pieces. A language with little text is split into many small ones. Petrov and colleagues, in their 2023 paper, found the gap can be large:

  • “The same text translated into different languages can have drastically different tokenization lengths, with differences up to 15 times in some cases.”

    Petrov and colleagues, 2023

The same study found these disparities persist even in tokenizers built on purpose for many languages. Spaces matter too. Hugging Face's guide notes that the standard methods assume spaces separate words, which does not suit Chinese and Japanese, since they do not use spaces between words.

Why do two models count the same text differently?

Each model's count depends on the model and its encoding, so the same text can count differently from one model to the next. OpenAI's help page says plainly that the count depends on the model, its encoding and the language.

  • “The same text can produce different token counts depending on the model, its encoding, and the language.”

    OpenAI, help center

  • Older model

    Its own count

    Last quarter's count belongs to that model, and only to it.

  • Newer model

    About 30% more

    Anthropic says Claude 4.7 and later models give about 30 percent more tokens than earlier models for the same input, depending on the content.

Anthropic's token counting page adds the detail that matters for a team: its counting endpoint follows the tokenizer of the model you pass. Pass the model you will run, and the count follows that model's tokenizer.

How big can the gap get in a real product?

Take a mid-size bank's support bot. Every chat loads the bank's fee policy, a 30-page document. These are made-up numbers, to show the scale. The policy is 9,000 tokens in English. The same policy, with the same meaning, in Tamil comes to 27,000 tokens on the same model.

The team's budget used the English count. So each Tamil chat sends three times the policy text, and the policy alone takes three times the room in the context window. The estimate was short by 18,000 tokens a chat, and the English tests never showed it.

Then the bank moves to a newer model. The newer tokenizer can add about 30 percent more to the same text, depending on the content, so the old count is short again. The fix is a recount on the model you will run, for each language the bot serves.

How do you count tokens correctly?

  1. 1

    Count with the model you will run

    Use that model's own counting tool or endpoint. Counts follow the model you pass, so an old model's number is the wrong number.

  2. 2

    Don't trust the English rule of thumb

    OpenAI's rule of about 4 characters per token is for English text, and OpenAI says these are estimates, not exact counts.

  3. 3

    Count the whole request

    A plain-text count can miss some tokens in an API request. Tools, images and files can change the full input count too.

  4. 4

    Check the real usage after each call

    Field names vary by endpoint, so read the usage fields your API returns. After a request, inspect its usage information, and compare it with your estimate.

What does the interviewer want to hear?

A strong answer covers

  • Tokens are pieces the tokenizer learned, not words.
  • The training text sets the pieces, so languages seen less split more.
  • The count depends on the model and its encoding, so counts change between models.
  • Real numbers come from counting with the model you will run.
  • Count the whole request, and check the usage on each call.
  • The 4-characters rule is an English estimate only.

Common traps

  • Trap"One token is one word, so English rules work everywhere."

    BetterA token is often part of a word. The rule of thumb is for English, and only roughly.

  • Trap"Same meaning, same token count."

    BetterMeaning does not set the count. The tokenizer's rules and its training text do.

  • Trap"Last quarter's count still holds."

    BetterRecount after any model switch. A newer tokenizer can add about 30 percent more tokens, depending on the content.

Can you spot the wrong estimate?

Spot the wrong estimate

A bank's budget sheet has four lines for the same policy. Which line underestimates the Tamil version?

Quick check

The bank's bot moves to a newer model. Its budget was set with last quarter's counts. What is the safest first step?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q003What is a token, and why not whole words?11 min
  2. Q004How do tokenizers like BPE, WordPiece and SentencePiece work?11 min
  3. Q040How do you estimate the token count of a text?10 min
  4. Q324How do you estimate token cost for a feature?11 min
  5. Q105How do you budget tokens for chat history?10 min

Learn it in depth

Last updated on 26 November 2026

Budgeting a bot that serves several languages?

I design and build AI products and agents, the interface and the system behind it. Book a short call and tell me what you need.