AI cost calculator

Token calculator

Paste text, or type a word or page count, to estimate how many tokens it is and what it costs on every current model. The estimate uses OpenAI's rule of thumb: one token is about 4 characters or three quarters of an English word.

Your inputs

Counted in your browser; nothing is sent anywhere.
words
Used instead of the text when above zero.
pages
Counted at 500 words per page.

Result

About 104 tokens

78 words, 419 characters. Sending it 1,000 times a month costs $0.21 on Claude Sonnet 5.5.

Estimated tokens
104average of the character and word rules
By characters (4 per token)
105
By words (0.75 per token)
104
Cost to send once on Claude Sonnet 5.5
$0.00021as input
Cost to generate once on Claude Sonnet 5.5
$0.00104as output
Sent 1,000 times a month
$0.21

Worked examples

Each row is the calculator run on the inputs shown, with every other input at its default.

TextWordsTokensSend once on Sonnet 5.5
A tweet4053$0.00011
An email200267$0.00053
A blog post1,5002,000$0.00400
A 10-page contract5,0006,667$0.01
A 300-page book150,000200,000$0.40
A 1 million token context750,0001,000,000$2.00

How it is calculated

Exact token counts depend on each model's tokenizer, so the calculator uses OpenAI's published rule of thumb and averages two versions of it.

tokens by characters = characters / 4 tokens by words = words / 0.75 estimate = average of the two (word count only: words / 0.75) cost = tokens x price per million tokens / 1,000,000

The rule holds for ordinary English. Code, numbers, tables and most other languages produce more tokens per word; Chinese, Japanese and Korean can produce one or more tokens per character. Pages are counted at 500 words each.

Tokenizers also differ between model families. Anthropic says Claude 4.7 and later models produce about 30% more tokens for the same text than Claude 4.6 and earlier. For an exact count, use the provider's token-counting endpoint or the usage figures in its API response.

Questions

How many tokens is a word?

In English, about 1.33 tokens per word: 100 tokens is roughly 75 words. Long, rare or technical words split into more tokens.

How many words is 1,000 tokens?

About 750 English words, or roughly one and a half single-spaced pages.

How many tokens is a page?

At 500 words per page, about 670 tokens. A 300-page book is around 200,000 tokens.

Is my text sent to a server?

No. The count runs in your browser and the text never leaves the page.

Why does my model report a different number?

Each model family has its own tokenizer. This is an estimate for planning; the usage field in the API response is the billed count.

Sources

Prices and plans change. This page was last checked on 2026-10-29. The data is open: llm-prices.json (CC BY 4.0).

Related calculators