How AI Reads Text: One Token at a Time
Hear “Hello” and you know what it means without trying. Read it on a page, and it’s the same. You don’t stop to analyze each letter. You recognize it as a familiar greeting because you've spent your life using language.
An AI can process that word too, but not the way we take in language.
How AI Processes Language
To handle language, an AI first breaks text into small pieces. Each piece is called a token.
A token can be a whole word, part of a word, or a punctuation mark. Each token is assigned a numeric ID, which the model uses to look up a vector representation.
Seeing how text actually gets split makes the difference clearer.
In OpenAI’s Tokenizer, “Hello” splits into one token, while the Korean greeting, "안녕하세요," takes two. Both contain five characters, yet their token counts differ.
The result can vary depending on the tokenizer a model uses.
A language model learns the relationships among these tokens. Given the context so far, it calculates a probability distribution over possible next tokens and selects one according to its generation settings. It repeats this process to build a response.
So even a sentence we take in as a single greeting goes through several steps inside the model.
Same Meaning, Different Token Counts
Korean and English differ in sentence structure and writing system. The number of tokens needed to say the same thing can also change with the data a tokenizer was trained on and the vocabulary it ended up with.
Tokenizers developed primarily using English text may require more tokens to represent Korean text.
That doesn't mean Korean always uses more tokens than English. It depends on the tokenizer and the text being processed.
The “Hello” and "안녕하세요" we just saw are a simple example of that kind of gap.
And the difference in token count doesn’t stop at how a sentence gets divided.
Why Token Count Matters
When you use AI, token count affects cost, processing time, and how much information you can handle at once.
For example, APIs that charge based on input and output tokens may cost different amounts for the same content, depending on how many tokens are used.
Response speed can be affected too, since more tokens to process or generate can mean more time. Actual speed also depends on the model, the runtime environment, and the length of the input and output, so it doesn’t scale exactly with token count.
A language model has a limit on how many tokens it can handle at once. If the same content takes more tokens, you have less room to work with.
Say you’re analyzing a long document or keeping a long conversation going. A higher token count means you hit the context limit sooner. Depending on the service, earlier parts of the conversation may be removed or summarized as the limit is approached.
So even with the same model, how much text you can actually handle can depend on the language you write in.
In everyday conversations with AI, token counts probably aren't something you think about.
But when you're analyzing long documents, estimating API costs, or running a language model locally, they become worth paying attention to.