Token Counter and Calculator for Claude, GPT and Gemini
Count tokens and API cost for 14 models. Free. Your text never leaves the browser.
159tokens
$0.00532per call
≈ Estimate$159.54 a month at 1,000 calls a day
426 characters · 74 words · 7 lines
Save tokens: smaller versions of your text
Already compact. No smaller version of this text found.
Token cost by model
| In / out per 1M | Tokens | Count | Per month | ||
|---|---|---|---|---|---|
| GPT-6 Luna(OpenAI)≈ estimate | $0.10 / $0.50 | 91 | ≈ Estimate | $0.000259 | $7.77 |
| Claude Haiku 5.5(Anthropic)≈ estimate | $0.10 / $0.50 | 159 | ≈ Estimate | $0.000266 | $7.98 |
| GPT-6.1 Terra(OpenAI)≈ estimate | $1.00 / $5.00 | 91 | ≈ Estimate | $0.00259 | $77.73 |
| Gemini 4 Hydrogen(Google)≈ estimate | $1.50 / $7.50 | 107 | ≈ Estimate | $0.00391 | $117.31 |
| GPT-6.2 Sol(OpenAI)≈ estimate | $2.00 / $10.00 | 91 | ≈ Estimate | $0.00518 | $155.46 |
| GPT-4o(OpenAI)✓ exact | $2.50 / $10.00 | 91 | ✓ Exact | $0.00523 | $156.82 |
| Claude Sonnet 5.5(Anthropic)≈ estimate | $2.00 / $10.00 | 159 | ≈ Estimate | $0.00532 | $159.54 |
✓ Exact = OpenAI's open tokenizer running in your browser. ≈ Estimate = approximate, no public tokenizer for that model. Per call = input plus output tokens, in US dollars, standard rates. Per month = 30 days. Prices checked 5 Dec 2026 on the Anthropic, OpenAI and Google pricing pages.
The AI Engineer's Brief
One usable thing a week for people building with LLMs. Free.
By subscribing you agree to receive emails from AI Engineer Insights. Unsubscribe anytime. See our Privacy Policy.
Token counter FAQ
What is a token in AI?
A token is the unit of text a language model reads and bills by. A token can be a whole word, part of a word, a punctuation mark or a single character. Each model family splits text in its own way, so the same text has a different token count on Claude, GPT and Gemini.
How many tokens is 1,000 words?
It depends on the model and the text. With OpenAI's o200k_base tokenizer, used by GPT-5.5 and GPT-4o, we measured 1,300 tokens per 1,000 words across the text of 74 posts on this site on 5 December 2026. Google's documentation says 100 Gemini tokens are about 60 to 80 English words, which works out to about 1,250 to 1,670 tokens per 1,000 words. Anthropic's documentation says Claude 4.7 and later models produce about 30 percent more tokens than earlier Claude models for the same text.
How many words is 1 million tokens?
About 769,000 words of English prose with OpenAI's o200k_base tokenizer, from our measurement on this site's posts on 5 December 2026. Code and JSON give fewer words per token: the same tokenizer gave about 447,000 words per million tokens on our TypeScript source files.
How many characters are in a token?
For English prose we measured 4.7 characters per token with OpenAI's o200k_base tokenizer. Google's documentation gives about 4 characters per token for Gemini, and Anthropic's documentation gives about 3.5 English characters per token for Claude Sonnet 4.6 and earlier. Pretty-printed JSON is denser in tokens: we measured about 3 characters per token on our own JSON files.
Which counts on this page are exact and which are estimates?
GPT-5.5 and GPT-4o counts are exact: they use OpenAI's open o200k_base tokenizer, running in your browser. Claude and Gemini counts are estimates, because Anthropic and Google do not publish a tokenizer for their current models; we scale the exact OpenAI count using the characters-per-token figures in their documentation. GPT-6 family counts use o200k_base and are marked as estimates, because OpenAI's open tokenizer library had no entry for that family when we checked on 5 December 2026. Estimates are least reliable for code, JSON and languages other than English, and their error has not yet been measured against the providers' counting APIs.
Does TOON or CSV use fewer tokens than JSON?
For a list of records that all have the same fields, usually yes, because the field names are written once instead of on every record. Paste JSON into the box and this page converts it to TOON, CSV, YAML and minified JSON and counts each version, so the saving shown is for your own data. Nested or irregular data may not get smaller. Check that your model still answers correctly with the new format before you switch.
How is the cost per call calculated?
Input tokens times the model's input price, plus the expected output tokens times its output price, using each provider's published standard price per million tokens. The monthly figure multiplies that by your calls per day and by 30. Prices were read from the Anthropic, OpenAI and Google pricing pages on 5 December 2026.
Is my text uploaded anywhere?
No. Counting and format conversion run in your browser. Nothing you paste is sent to a server.
Counts marked ≈ are approximate. For a billing-grade number, use the provider's own token counting endpoint.