Count and visualize how an LLM actually splits your text — exact for OpenAI, a calibrated estimate for Claude and Gemini — with context-window fit and cost.
Alternating shading = one token each. Exact view available for OpenAI models.
How much of each common context window your text fills (using the selected model's count).
Prices change constantly, so nothing is hardcoded — put in the rate from your provider and it computes.
Paste your text and it counts the tokens in your browser. For OpenAI models (GPT-4o, GPT-4, GPT-3.5) it uses the real tokenizer (o200k and cl100k), so the count is exact. Claude and Gemini don't publish a tokenizer that runs in the browser, so for them it shows a calibrated estimate (about ±15%), labeled as an estimate.
No. The counting runs entirely in your browser; nothing is uploaded.
How much of each context window your text fills, from 8K to 1M tokens, and the input cost at the price per million tokens you enter.