If you have ever used an AI app, you have probably seen the word "token" somewhere — in a settings screen, a pricing page, or an error message saying a conversation is too long. It sounds technical, but the idea is simple: a token is the unit an AI model uses to measure text. Understanding tokens helps you write better prompts, avoid hitting limits, and get faster answers — especially on a phone, where memory and battery are finite.
This guide explains what tokens are, how text gets turned into them, and what they mean in practice when you are chatting with an AI on your device.
What exactly is a token?
AI models do not read text the way you do. They do not see words, sentences, or paragraphs. They see a sequence of numbers — and tokens are the step in between.
Before a model processes your message, it splits the text into chunks called tokens. A token is usually:
- A whole common word, like "the" or "phone"
- Part of a longer or rarer word, like "un" + "believ" + "able"
- A single character or punctuation mark, like "?" or a space
So the sentence "I love offline AI" might become five or six tokens, while a word like "antidisestablishmentarianism" might become a dozen. The model then converts each token into a number and works with those numbers.
Why split text this way instead of feeding in whole words? Because a language has hundreds of thousands of words, and a model needs a fixed, manageable vocabulary. By breaking words into reusable pieces, a model can handle almost any text — including words it has never seen before, names, typos, and code — with a vocabulary of roughly 30,000 to 150,000 tokens.
How tokenization works
The process of splitting text into tokens is called tokenization, and most modern models use a method called byte-pair encoding, or BPE.
It works roughly like this: the tokenizer starts with individual characters, then repeatedly merges the most common pairs of characters into single tokens. Pairs that appear together constantly — like "th", "ing", or "tion" — become tokens of their own, while rare combinations stay split into smaller pieces.
That is why common English words are cheap in tokens and unusual text is expensive:
- "Hello, how are you?" — about 6 tokens
- "photosynthesis" — about 3 tokens ("photo" + "syn" + "thesis")
- A long technical term or a made-up brand name — many tokens
- Code, with its symbols and indentation — often 1 token per few characters
- Non-English text — frequently more tokens per word than English
You cannot control exactly how a tokenizer splits your text, but knowing the pattern helps you understand why some prompts run fast and others crawl.
The rough maths: words to tokens
For ordinary English prose, the standard rule of thumb is:
- 1 token ≈ 0.75 words, or about 4 characters
- 100 tokens ≈ 75 words
- 1,000 tokens ≈ 750 words
- A typical page of a book ≈ 500 tokens
These are averages, not guarantees. A message full of short, common words will come in under the average. A message full of code, numbers, URLs, or another language will come in over it.
This matters most when you hit a model's context window — the maximum number of tokens it can handle in one go. Think of the context window as the model's working memory: everything in the current conversation (your messages, its replies, and any pasted text) adds up inside it. Once the window is full, the model can no longer see the earliest messages, and some apps will simply refuse to continue until you start a new chat.
Small on-device models typically offer context windows of around 4,000 to 8,000 tokens — enough for a solid conversation or a few pages of pasted text. Larger phone models can reach 32,000 tokens or more, which covers a long document. Cloud models go much further still, but that capacity comes with servers, accounts, and a data trail.
Why tokens matter on your phone
On a phone, tokens are not just an abstract limit. They translate directly into things you can feel:
Speed. A model generates its reply one token at a time. A 20-token answer appears almost instantly; a 500-token answer takes noticeably longer. If you ask for a short summary instead of a long essay, you get your answer sooner and your phone does less work.
Memory. Every token in the conversation has to be held in memory while the model works. Longer conversations use more RAM, and on a phone with 8 GB of RAM that budget is shared with everything else the phone is doing. This is one reason long chats can slow down: the model is carrying more context with every new word it writes.
Battery. Generating tokens is computation, and computation uses battery. Short, focused exchanges are cheaper than rambling ones — not dramatically so for a single chat, but it adds up across a day of heavy use.
Cost — only in the cloud. Cloud AI services charge by the token, typically a few dollars per million tokens for input and more for output. That is why cloud pricing pages talk about tokens constantly. With on-device AI, there is no per-token charge at all: the model runs on your phone, so once you have downloaded it, every token is free. It is one of the quiet advantages of offline AI that rarely gets mentioned.
How to use fewer tokens (and why you should)
You do not need to count tokens obsessively. But a few habits make your on-device chats faster, longer-lasting, and more reliable:
Be direct. "Summarise this article in five bullet points" beats a long preamble explaining why you need a summary. The model does not need the backstory.
Ask for the format you want. Saying "give me a short answer" or "one paragraph" saves the model from generating hundreds of tokens you will not read.
Paste only what matters. If you are asking about a document, paste the relevant section rather than the whole file. Every token of pasted text counts against your context window.
Start fresh chats. When a conversation has wandered far from its original topic, start a new one. The model will answer faster and stay on track, because it is not carrying the whole history.
Summarise instead of scrolling. If you need to continue a long discussion, ask the model to summarise the key points so far, then start a new chat with that summary. You keep the substance and throw away the token cost.
Tokens and the models on your phone
Not every model counts tokens the same way. Different model families — Gemma, Llama, Phi, Mistral, and others — each have their own tokenizer, so the same sentence can be a slightly different number of tokens depending on the model. The differences are usually small, a few percent either way, and they do not change how you should write prompts.
What does change between models is the context window. When you pick a model to download in an on-device app like LLM Hub, the window size is one of the most useful things to check, alongside the model's size in gigabytes. A model with a 4,000-token window is fine for quick questions and short chats. If you regularly work with long documents or want extended conversations, look for one with 8,000 tokens or more.
There is a trade-off, as always: a bigger context window uses more memory, so on phones with less RAM it can mean slower responses. The right choice depends on how you actually use the app — short bursts or long sessions — not on the biggest number on the spec sheet.
The bottom line
A token is simply how an AI model measures text: a word, a word fragment, or a punctuation mark, turned into a number the model can work with. Roughly four characters make a token, and about 750 words make a thousand of them. Tokens set the size of a conversation, the speed of an answer, and — in the cloud — the price.
Once you know that, the practical rules are easy: keep prompts short and direct, ask for the length of answer you actually want, and start a fresh chat when the old one has run long. On your phone, where every token is free and private, that is all you need to get more out of the models already in your pocket.

