🧮 AI Token & Cost Calculator

Last updated:

Paste your text below to estimate the token count and what a request costs across current AI models - your text as input plus the answer length you expect. Everything runs locally in your browser - nothing is sent anywhere.

0 Characters
0 Words
0 Estimated Tokens

⚠️ Token count is an ESTIMATE (average of characters÷4 and words×1.33). Actual tokenization varies by model.

Model Input / 1M Output / 1M Estimated cost

Standard list prices in USD per 1M tokens, checked on September 24, 2026 against each provider's own pricing page: OpenAI · Anthropic · Google. Estimated cost = your text as input + the answer length above as output. Batch, cached and discounted rates are lower.

What this tool does

It estimates how many tokens a piece of text becomes when sent to a language model, and what one request costs: your text as input plus the answer length you expect as output. The estimate is the average of two rules of thumb - characters divided by four, and words times 1.33 - because real tokenizers land between them for ordinary English. The text never leaves your browser.

When to use it

Before pasting a long document into an API call, to see whether it fits a context window. When budgeting a batch job - a thousand articles at 1,200 tokens each is a number you want before running it, not after. When trimming a prompt, to see how much a cut actually saves.

How to read the result

Treat the token count as an order of magnitude, not an invoice. Real tokenizers differ per model, and code, URLs and non-English text tokenize heavier than prose - a text full of JSON can come out 30-50% above this estimate. Output tokens are usually billed at four to six times the input rate, so the answer length you set often matters more than the length of your text - try 500 against 5,000 and watch the total move.

Limits

The prices are copied by hand from the providers' pricing pages and dated above; model names and rates change often, so follow the links and check before relying on a figure for a budget. The tool has no per-model tokenizer, and the answer length is your guess, not a measurement. It answers one question well: roughly what does it cost to send this text in.

Other tools you might need next

See all Finance & Crypto tools, or browse every free tool on the site.