AI token counter and cost estimator
Paste text, get a token estimate and what it costs to send through a model — whether as a prompt or as the answer.
Estimate = max(characters ÷ 4, words × 1.33), shown as an ±15% range. Exact counts need the model's own tokenizer; this is accurate enough for budgeting.
Why an estimate is good enough
Tokenizers differ by vendor, but English prose lands consistently near 4 characters per token and 1.33 tokens per word. Code and JSON run denser (more punctuation tokens, fewer common words), which is why the estimate takes the larger of the two methods and reports a range instead of a single number.
| Content | Approx. tokens |
|---|---|
| 1 word of English | 1.33 |
| 1,000 characters | ~250 |
| 1 page (500 words) | ~650 |
| 1 line of code | ~10–15 |
| 1M tokens | ~750,000 words |
What to do with the number
Multiply by your request volume and you have a budget. Then cut it: cache the fixed system prompt, trim output length, and route commodity traffic to a cheaper tier — the sequence is in how to reduce LLM costs, and the per-request maths is in the cost calculator.
FAQ
How accurate is this token estimate?
Within roughly ±15% for English prose, wider for code, JSON and non-Latin scripts. For billing reconciliation, use the model's tokenizer and the usage fields the API returns.
Do input and output tokens cost the same?
No — output is typically 2–5× the input rate on every vendor, which is why the calculator quotes a single cost per call using both directions.
How many tokens is 1,000 words?
About 1,330 tokens of English prose. A 500-word page is roughly 650 tokens.
Every number on this page comes from the marketplace's own live offers. Point the OpenAI SDK at Cisoma and keep your code.
Get 100M free tokens