Paste any text to count its tokens. OpenAI tokens are counted exactly with the o200k_base tokenizer, in your browser; Claude and Gemini are estimated at about 4 characters per token. You also see what the text costs on every current model — prices checked 2026-10-02.
| Model | Tokens | Send as input | Generate as output | × 1,000 calls (input) |
|---|---|---|---|---|
| GPT-6 Astra | 0 | $0 | $0 | $0 |
| Claude Fable 5.1 | ≈ 0* | $0 | $0 | $0 |
| Claude Opus 5 | ≈ 0* | $0 | $0 | $0 |
| Claude Opus 5.5 | ≈ 0* | $0 | $0 | $0 |
| GPT-6 Sol | 0 | $0 | $0 | $0 |
| Gemini 3.1 Pro | ≈ 0 | $0 | $0 | $0 |
| Claude Sonnet 5 | ≈ 0* | $0 | $0 | $0 |
| Claude Haiku 4.5 | ≈ 0 | $0 | $0 | $0 |
| Gemini 3.8 Flash | ≈ 0 | $0 | $0 | $0 |
| Gemini 3.5 Flash-Lite | ≈ 0 | $0 | $0 | $0 |
| GPT-6 Luna | 0 | $0 | $0 | $0 |
OpenAI counts use o200k_base, the encoding OpenAI publishes for GPT-4o through GPT-5.x; GPT-6's tokenizer is not public, so its rows use the same count. Claude and Gemini counts are estimates (characters ÷ 4). *Claude Opus 4.7 and later use a tokenizer Anthropic says produces about 30% more tokens than earlier Claude models. For exact counts use Anthropic's count_tokens or Google's count_tokens API. Your text never leaves your browser.
A token is the unit an AI model reads and writes — usually a word, part of a word, or a punctuation mark. "Cat" is one token; a longer word like "tokenization" is split into pieces. Providers bill per token, and every model's context window is measured in tokens, so the token count decides both what a prompt costs and whether it fits. More on how tokens work →
| Provider | Public tokenizer? | How this page counts | Exact count |
|---|---|---|---|
| OpenAI (GPT) | Yes — tiktoken (o200k_base for GPT-4o through GPT-5.x) | Exact, with o200k_base in your browser | tiktoken |
| Anthropic (Claude) | No | Estimate: characters ÷ 4 | count_tokens API (free) |
| Google (Gemini) | No | Estimate: characters ÷ 4 | count_tokens method |
Rules of thumb for English text. Code and non-English text usually use more tokens.
| 1 token | ≈ 4 characters ≈ ¾ of an English word |
|---|---|
| 100 tokens | ≈ 75 words (Google: 60–80 words) |
| 1,000 tokens | ≈ 750 words ≈ 1.5 pages |
| 1 line of code | ≈ 10 tokens |
| 1 million tokens | ≈ 750,000 words ≈ 8 novels |
Need to go the other way? Use the tokens to words converter.