Free tool

AI Token Counter and Cost Estimator for Any Text

By Andrzej M. · Updated: October 25, 2026

0Characters
0Words
0Estimated tokens
—Likely range

Cost by model

Estimate only; vendors use different tokenizers. ·

How the estimate works

The counter measures your text in characters and divides by the typical number of characters per token for its type: about 4 for English prose, 3.5 for Spanish and 3.2 for code. It then shows a range of 15 percent either side, because each model family splits text differently. The cost for each model is the input tokens at its input price plus your expected output tokens at its output price, multiplied by the number of runs.

Why tokens matter more than words

AI APIs bill per token, not per word or per request, and a token is not a fixed unit. Short common words are often one token, while rare words, numbers, symbols and non-English text are split into several. That is why a Spanish contract and an English one of the same word count can differ in cost, and why code tends to be pricier than it looks.

How to reduce your token count

  • Cut boilerplate from system prompts and send only the context the task needs.
  • Ask for short, structured answers when you do not need prose.
  • Cache the parts of the prompt that repeat so they are billed at the cache price.
  • Summarise old conversation turns instead of resending them.

Once you know your token volume, plug it into the AI API cost calculator to see the monthly bill across providers.

Keep exploring

Frequently asked questions

How many tokens is a word?

In English, one token is about four characters or three quarters of a word, so 1,000 words are roughly 1,300 tokens. Spanish and other languages with longer words and accents use more tokens per word, and code often uses more than prose.

How accurate is this counter?

It is an estimate based on characters per token for the language you choose, normally within 10 to 20 percent. Each vendor uses its own tokenizer, so the exact count can differ between Claude, GPT and Gemini. For billing-grade numbers use the vendor's token-counting tool.

Is my text sent anywhere?

No. The counting and the cost maths run in your browser, and the text is never uploaded or stored. It is also kept out of the page address when you copy a link.

Do I pay for output tokens too?

Yes. Output is billed separately and usually costs four to six times as much per token as input. Enter the length of the reply you expect so the estimate includes it.

What does a token cost?

It depends on the model. In October 2026, input ranges from $0.10 per million tokens on the cheapest models to $10 per million on the most capable, so the same prompt can differ in cost by 100 times.