Count tokens and see context window usage for GPT-5, Claude 4, and Gemini 3. Paste text for token count, cost per request, and cost per 1,000 requests across.
Added May 3, 2026 · Updated May 27, 2026
Input
Result
Enter a value for your text or prompt to see your result.
Paste any prompt or document to estimate token count, see how much of the model's context window you're using, and compare API cost per 1,000 requests across GPT-5, Claude 4, Gemini 3, and more — all in your browser.
A ~100-word prompt costs a fraction of a cent at GPT-5.4 input pricing and uses a tiny slice of a 1M-token context window.
Inputs
Result
A token is roughly 4 characters or 0.75 words in English text. The word 'hamburger' is typically 3 tokens; a space and short word like ' is' is 1 token. AI models process text as sequences of tokens, not characters.
The estimate uses a character-to-token ratio (÷4) and a word-to-token ratio (÷0.75), taking the higher value. For typical English prose this is accurate to within ±10%. For code, non-English text, or heavy punctuation the actual count may differ.
We add your estimated input tokens plus optional output tokens and divide by the model's published context limit. Input and output both count toward the window for a single API call.
GPT-5.4 is a larger, more capable model. GPT-5.4 mini is optimized for lower cost on simpler tasks. For many chatbots and classification tasks, mini can be cheaper while still meeting the quality bar.
No. All computation runs in your browser. Your text never leaves your device when using this tool.