AI Token Counter Tool
Enter text to estimate token counts per GPT-4o, Claude, and Gemini models, and project API costs in USD and JPY.
* Based on GPT-4o family (o200k) estimate
Tokens by Model (estimate)
| Model | Tokens | Precision |
|---|
API Cost Estimate
Pick a model, set input/output prices (per 1M tokens), expected output tokens, and the exchange rate to see an estimated cost.
* Token counts and costs are estimates only. Actual tokenization, billed amounts, prices, taxes, discounts, and caching may differ. Always verify the latest pricing in each provider's official documentation before relying on these figures for budgeting or contracts.
How to Use
Enter Text
Type or paste (Ctrl+V / Cmd+V) the text you want to measure into the text area.
Check Tokens by Model
Token counts for GPT-4o, GPT-4/3.5, Claude, and Gemini families are estimated automatically.
Estimate API Cost
Set input/output prices, expected output tokens, and the exchange rate to view an estimated cost in USD and JPY.
What is the AI Token Counter?
LLMs process text in units called "tokens", and API pricing is calculated per token. This developer tool estimates token counts for GPT-4o, Claude, and Gemini families and projects API costs. When possible, GPT models are measured with a high-precision tokenizer; otherwise (and for other models) a character-class heuristic is used. Everything runs in your browser and your text is never sent to any server.
Features
- Major Models SupportedEstimate token counts for GPT-4o, GPT-4/3.5, Claude, and Gemini families at once.
- Instant Cost EstimateSet input/output prices, output tokens, and exchange rate to estimate cost in USD and JPY.
- Fully In-BrowserYour text is never sent to a server, so even confidential prompts can be measured safely.
- Real-time CountingCharacters, words, and tokens update instantly as you type, with no waiting.
Use Cases
- Trim prompt tokens to reduce API costs
- Check whether input fits within the context (token) limit
- Compare token efficiency across GPT, Claude, and Gemini
- Estimate input size for long-text summarization or RAG
- Roughly project monthly API budgets from usage
FAQ
How accurate are the token counts?
What is a token?
Is my text sent anywhere?
How accurate is the cost estimate?
Why do token counts differ between models?
Are costs shown in JPY or USD?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.