Token Usage Calculator
Count tokens in text and estimate model cost.
Exact for OpenAI GPT-4/4o encodings (o200k). Claude & Gemini use different tokenizers (not public), so their counts are close approximations.
Disclaimer: Estimates for informational purposes only. Pricing and performance figures come from a community-maintained feed (LiteLLM) with bundled fallbacks and may be outdated or inaccurate. Always confirm current prices on the official OpenAI, Anthropic, Google, or cloud-provider pricing pages before making decisions. ToolsHub is not affiliated with these companies; product names are trademarks of their owners. Token counts for non-OpenAI models are approximate.