Free AI Token Counter — GPT, Claude, Gemini
Paste text. Get token counts for GPT-4 / GPT-5 / Claude Opus 4 / Sonnet 4.5 / Gemini 2.5 Pro. Estimate API cost. Spot prompt-bloat. 100% browser-side — your text never leaves this page.
How token counting works
Each AI model breaks text into tokens — chunks roughly equal to ~4 characters of English (less for code or non-English text). Tokens are how the model bills you, how it limits context, and how it counts "thinking effort."
- 1 token ≈ 4 characters in English (more for code, less for non-Latin scripts)
- 1,000 words ≈ 1,300-1,500 tokens
- A typical prompt is 200-800 tokens; a typical response is 500-2,000 tokens
- The free counter above uses approximate tokenization (within 5-8% of exact count from each provider's tokenizer) — close enough for cost estimation, not for billing reconciliation.
Why count tokens?
- Cost estimation. API calls cost per 1M tokens (input + output). Knowing your prompt's token count lets you budget batch jobs.
- Context-window planning. If your prompt is 80% of the context window, you have only 20% left for the response. Detect this before runtime.
- Prompt-bloat detection. Prompts often grow over time as engineers add edge-case rules. The counter shows when your prompt has bloated past optimal length.
- Cross-model comparison. The same text uses different token counts in different tokenizers. Useful when porting a prompt from GPT to Claude or vice versa.
Privacy
This tool runs entirely in your browser. The text you paste is processed locally via JavaScript — no upload, no storage, no logs. Closing the tab erases everything.
Get new Originals every Friday
2-3 hand-crafted Originals per week. No spam, no upsells, unsubscribe in 1 click.