AI Token Counter

Free. No sign-up. Your input is processed in your browser.

Count the tokens in a prompt before you send it.

How to use it

  1. Paste your prompt or text.
  2. Read the token count.
  3. To estimate cost, enter your provider’s price per 1 million input tokens.

Which models does the count match?

The tool uses the o200k_base tokenizer, which OpenAI’s GPT-4o uses. Other models, including Claude and Gemini, split text differently, so treat the number as an estimate for them. Use your provider’s own counting method when you need an exact figure.

About cost

Prices change and differ between models, so this page does not store them. Enter the current price from your provider. The estimate covers only the text shown: not the reply, chat message overhead, tools, images or discounts.

Questions

Is my prompt sent to an AI model?

No. Counting happens in your browser. No API key is used.

Is a token the same as a word?

No. A token can be a whole word, part of a word, a space or punctuation.

Related tools

See all tools