Token Counter.
Paste any text, get exact token counts across Claude, GPT 5, and Gemini. Plus the input cost for that single message, side by side.
- Free, no sign-up
- Runs in your browser
- Claude, GPT and Gemini
~$0 input · just this message
Input cost for this exact message
What you'd pay just for the input tokens above. Output cost depends on your response length.
Building with these tokens?
See your full monthly bill with the AI Cost Calculator, or book a 30 minute consultation to audit your prompt.
How accurate is this?
For OpenAI models, we run the real o200k_base tokenizer, the encoding GPT-4o and GPT-5 use, so those counts are exact. It loads the first time you type, and in the meantime GPT counts show a quick estimate.
For Claude and Gemini, we use the industry standard approximation: chars ÷ 3.8 for Claude and chars ÷ 4 for Gemini. These match the actual tokenizers within ~5% for English text. For exact counts, use the provider's tokenizer API.
Why count tokens?
- Cost forecasting: every token costs money. Knowing the input size before you ship saves invoices later.
- Context window planning: Claude has 200K tokens, Gemini 2M. Big difference, real implications.
- Prompt optimization: most prompts are 30-50% longer than they need to be. Cut tokens, cut cost.
- Eval calibration: when comparing models on the same task, knowing exact token counts removes confounds.
What's NOT counted here
- Image / audio / video tokens (priced differently by every provider)
- Conversation history tokens (we count one message at a time)
- System prompt tokens (paste them in to include)