AI Token Counter
AI Token Counter
Paste text to estimate how many tokens it uses in an AI model, and what that input would cost on GPT-4o, Claude, Gemini, and Llama. The token count is an estimate, not an exact count.
| Model | Input price per 1M tokens | Estimated cost for this text |
|---|---|---|
| GPT-4o | $2.50 | – |
| Claude Sonnet | $3.00 | – |
| Gemini 2.5 Pro | $1.25 | – |
| Llama 3.3 | $0.35 | – |
Prices are approximate public list prices for input tokens, current as of November 2026. Providers change prices often, so check the provider page before budgeting. Token counts here are estimates: real models split text with byte-pair encoding, so exact counts differ slightly.
About the AI Token Counter
The AI Token Counter estimates how many tokens your text would use when sent to an AI model, and what that input would cost on four popular model families. A token is a small chunk of text, usually a word or part of a word, and AI providers charge by the token. Knowing the count before you send a long prompt helps you stay inside a model’s context limit and predict the cost.
The estimate uses a simple rule: words times about 1.33, plus half a token for each punctuation mark, rounded up. Real models count tokens with byte-pair encoding, which splits words into subword pieces, so this estimate is close but never exact. It is meant for planning, not billing.
How to use
- Paste your text in the box.
- Click Count tokens.
- Read the estimated tokens, words, and characters, plus the estimated cost per model in the table.
- Use Load example to see a worked example, or Clear to start over.
Key features
- Estimated token count, word count, and character counts in one click
- Estimated input cost for GPT-4o, Claude Sonnet, Gemini 2.5 Pro, and Llama 3.3
- Prices labelled as approximate list prices, current as of November 2026
- Clear statement that the count is an estimate, not exact byte-pair encoding
- Runs entirely in your browser with no signup
Frequently asked questions
No. It is an estimate. Real models use byte-pair encoding to split text into tokens, and the exact split depends on the model. For planning and rough cost checks the estimate is close enough, but always check the exact count in the provider tool before billing matters.
Tokens are estimated as words times 1.33, plus 0.5 for each punctuation mark, rounded up. The 1.33 factor reflects the common rule that 100 tokens are about 75 words in English. Other languages and code can differ more.
No. The prices shown are approximate public list prices for input tokens, current as of November 2026. Providers change prices, and some offer volume or cached-input discounts, so treat the costs as planning figures only.
Each provider sets its own price per million input tokens. Larger or newer models usually cost more per token than smaller ones, so the same text can cost several times more on one model than on another.
No. The table shows the cost of sending your text as input only. A real request also pays for the tokens the model writes back, which this tool does not estimate.
No. The counting runs entirely in your browser and your text is never sent to a server.
