Token counter and API cost calculator
Paste text or drop files. Get exact GPT token counts, estimates for Claude, Llama, Gemini and Mistral, see where each token starts, and what the call costs.
See an example:
Your text
Counts
GPT tokens (o200k)0exact
GPT-4 tokens (cl100k)0exact
- Characters
- 0
- Words
- 0
- Lines
- 0
- UTF-8 bytes
- 0
- Chars / token
- -
- Words / token
- -
By model family
| Tokenizer | Tokens | How |
|---|
How the estimates work
Where the tokens fall
Paste some text or pick an example to see each token in its own colour.
Does it fit?
Input plus the reply you reserve must fit. A model's window holds both.
What it costs
| Model | Input tokens | Input | Reply | Total |
|---|