Token counter & cost estimator

Paste in any text - a prompt, a document, a draft - and we'll estimate how many tokens it is and what it would cost across different models. Everything stays in your browser; nothing is uploaded.

Prices verified against official provider pricing pages on 2026-06-29.

The formula

AI models read text in chunks called 'tokens'. One token is about ¾ of a word, or roughly 4 letters. We estimate the tokens in your text from its length, then multiply by the model's price to show what it would cost - both as something you send in and as something the AI writes back.

Questions

How many tokens is a word?

In English, roughly 4 words for every 3 tokens - so a token is about ¾ of a word. Code and other languages use a bit more.

Is this count exact?

It's a close estimate. The exact number comes from each model's own tokenizer, which this tool approximates - without ever sending your text anywhere.

Does my text get uploaded?

No. The counting and the cost estimate all happen right here in your browser. Nothing is sent to a server.

Related reading and tools