AI Token Counter — Estimate Tokens & API Cost Before You Pay
Paste text to estimate token count and API cost across models, with editable $/1M input-output rates so the math always matches current pricing.
Quick answer: Free AI token counter: estimate tokens for ChatGPT, Claude and Gemini, and calculate API costs from editable per-million rates. Instant and private.
💡 Defaults are placeholders — always confirm current rates on the provider's official pricing page.
How to use
- Paste your text — see instant character, word and estimated token counts.
- Set the rates — enter the model's $ per 1M input and output tokens (defaults provided, always editable).
- Read the cost — estimated input cost, and projected total if you also set expected output tokens.
About this tool
LLMs read text as tokens — roughly one token per 4 characters or ¾ of a word in English. Providers bill per million tokens with separate input and output rates. This counter estimates tokens from your text using the standard ≈chars/4 heuristic, then multiplies by editable per-model rates — update the two numbers whenever pricing changes and the cost math stays honest. Nothing is sent anywhere.
FAQ
How accurate is the token estimate?
Why editable rates instead of a fixed price table?
Is my text uploaded anywhere?
Related tools
JSON Formatter
Developer Tools
🔀CSV to JSON Converter
Developer Tools
🔍Regex Tester
Developer Tools
🔤Base64 Encoder / Decoder
Developer Tools
🌐URL Encoder / Decoder
Developer Tools
#️⃣Hash Generator (SHA-256)
Developer Tools
🆔UUID Generator
Developer Tools
⏱️Epoch Timestamp Converter
Developer Tools
🎟️JWT Decoder
Developer Tools
⏰Cron Expression Generator
Developer Tools
🧪Fake Person Generator
Developer Tools
📧Fake Email Generator
Developer Tools
✅Credit Card Validator
Developer Tools
📱Phone Number Validator
Developer Tools
📨Email Validator
Developer Tools