◆ AfterJournal
Author guidelines · Contact

Token Counter

Paste text to count its tokens and see what it would cost to send to popular AI models. Your text stays in your browser.

Tokens
-
Words
-
Characters
-
Cost per request
Model Per 1M in / out Input Output Total

List prices in USD, checked 11 Nov 2026. Tokens are counted with the OpenAI o200k tokenizer, so Claude and Gemini costs are estimates.

How the count and cost are worked out

AI models do not read words. They read tokens, small chunks of text that are often a whole short word or part of a longer one. Providers charge per million tokens, with separate prices for the text you send in and the text the model writes back. The calculator uses:

  • Input cost = tokens in your text x input price / 1,000,000
  • Output cost = expected output tokens x output price / 1,000,000
  • Total per request = input cost + output cost

Paste your prompt, set roughly how long you expect the reply to be, and compare the cost of one request across models.

A worked example

A support bot sends a 2,000-token prompt (instructions plus the customer message) and gets back a 500-token reply. On a model priced at $2 per million input tokens and $10 per million output tokens, one request costs $0.004 for input and $0.005 for output, about $0.009 in total. At 10,000 conversations a month, that is roughly $90.

The same traffic on a model priced at $0.10 and $0.50 costs under $5 a month. Many teams send simple requests to a small model and keep the large ones for harder work.

Rules of thumb for English text

  • One token is about four characters.
  • 100 tokens is about 75 words.
  • A typical page of text is 500 to 700 tokens.
  • Code, tables, numbers and languages other than English use more tokens per word.

Ways to spend less

Output tokens usually cost four to five times more than input, so asking for shorter answers saves the most. Long instructions that repeat on every request can often be cached by the provider at a much lower rate. It also pays to trim old messages from long chats, since the whole history is sent again with each new turn.

Prices change often. The table above shows the date the prices were last checked. Confirm current rates on each provider's pricing page before you plan a large budget.

Questions

What is a token? +

A piece of text an AI model reads as one unit. In English one token is about four characters, or three quarters of a word. Code, numbers and other languages often use more tokens per word.

Is the count exact for every model? +

No. This tool uses the o200k tokenizer from OpenAI. Claude and Gemini split text their own way, so their real counts can differ by 10% to 30%. Treat those costs as estimates.

Why do output tokens cost more? +

The model has to generate output one token at a time, which takes more computing work than reading the input. Most providers charge four to five times more per output token.

Is my text sent anywhere? +

No. Counting runs in your browser. Nothing you paste is uploaded or stored.

Embed this token counter

Free to use on your own site or blog. Paste this code where you want it to show.

Related reading

◆ Newsletter

Ideas worth your inbox.

The best new stories, startups and AI tools every week. No noise, unsubscribe anytime.