LLM Token Calculator
Paste any text → exact token count + cost across GPT / Claude / Gemini / DeepSeek / Qwen. 100% in-browser — your text is never uploaded.
Cost for this text as input (and same length as output)
| Model | Input $ | Output $ | $/1M in·out |
|---|
Token count uses the o200k_base tokenizer (GPT-4o / o-series); Claude / Gemini / DeepSeek / Qwen tokenize slightly differently so their counts are a close approximation. Prices are reference values (≈ 2026-06, USD per 1M tokens) — verify against each vendor's official pricing. Output cost assumes the output is the same length as your input.
We ship dev tools like this and the relay model check. Drop your email for new tools + when major model prices change.