Using AI · 5 of 8

Why can't the model count the r's in strawberry?

Before a model reads anything, your text is cut into tokens, common chunks learned from lots of text, and each token is swapped for a number. Familiar words stay whole; rare words, long numbers and other languages come apart into many small pieces.

Pick a text, or write your own below:

What the model reads

More merges, fewer pieces

Tokens in your text, by how many merges the tokenizer has learned.

00010merges learned
With no merges, every byte is a token. The ring marks your setting.

Same sentence, different bill

One weather forecast in seven languages, with the merges learned from English.

Tokens, and how many times the English count.
One token The next token Part of a letter
Your text 31 / 400 characters
Merges the tokenizer has learned: 0 0 to 0

Loading the engine…

What you wrote

31

characters, stored as 31 bytes

What the model reads

–

tokens, each one a number

The tokenizer's list

–

tokens: 256 single bytes plus 0 merges

Text becomes numbers

Before the model sees anything, your text is cut into tokens and each token is swapped for a number from a fixed list. The model only ever gets the numbers.

Frequent pairs get merged

The list is learned from text: start with single bytes, find the pair that sits side by side most often, make it one token, and repeat. Common words end up whole.

Letters are inside the pieces

Once "berry" is one token, the model reads it as one number with the letters b, e, r, r, y hidden inside. It can only know them if it has learned how that token is spelled.

The trap

A question about letters feels trivial to a person reading letters. The model reads token numbers, so counting letters, reversing a word or doing sums digit by digit means working with something hidden inside them.

Open Under the hood to see the merges this tokenizer learned and how your longest word is built from them.

Why knowing this helps you

A few habits get around what the tokenizer hides.

Ask it to spell first

For letter questions, ask the model to write the word out one letter at a time, then count. Spelled out, each letter becomes its own token.

Let a tool do the sums

For exact arithmetic on long numbers, ask the model to use a calculator or write code. Many tokenizers cut long numbers into single digits or groups of up to three, so the model works on pieces of the number.

Budget for your language

The same message in many languages takes more tokens than in English. That uses up more of the context limit and, when you pay per token, costs more.

Expect odd words to be harder

Rare names, codes and typos are split into many small pieces. Spell out or explain the ones that matter so the model does not have to guess.

Checked on 2026-10-07 against Petrov et al. (2023) on tokenizer cost across languages (up to 15 times); Somide (2026), where current tokenizers (GPT-4o's, Llama 3.1's and Qwen3's) need on average 2.6 to 3.3 times as many tokens as English for the same sentences in 20 African languages; Qwen3's vocabulary of 151,936 tokens; how the Qwen and OpenAI tokenizers split digits; Edman et al. (2024), where models knew how their tokens are spelled and still struggled to use it to change text; and Fu et al. (2024), where GPT-4o miscounted letters in 17% of words and most open models in over half, with errors rising sharply when a letter appears more than once.

Where this goes next

Next: calibration

How sure the model sounds, compared with how often it is right.

Then: what you want to hear

Chat models lean toward agreeing with you. How your opinions and settings tilt their answers.

Every merge, token and count on this page comes from a C engine compiled to WebAssembly. The tokenizer is trained in your browser on a few pages of English, so its list is tiny next to a real model's.