CompleteSEOTools
Home › Developer Tools › AI Token Counter

AI token counter

Paste a prompt or document to see an estimated token count, a likely range and a cost.

About AI Token Counter

Language models read text in pieces called tokens, and both context limits and prices are counted in them. This page estimates the token count of any text by splitting it into words, numbers and punctuation and applying a simple rule to each piece. It shows that figure next to the usual rules of thumb of four characters or three quarters of a word per token. It is an estimate only, because every model family has its own tokenizer. Your text is counted in your browser and is not sent anywhere.

  • Checking that a prompt will fit inside a context window.
  • Guessing what a large batch job will cost before you run it.
  • Comparing the length of two versions of a prompt.
  • Trimming a document down to a token budget.

How to use AI Token Counter

1

Step 1

Paste or type your text into the box.

2

Step 2

Pick the closest model family, or set your own multiplier.

3

Step 3

Type the current price per million tokens to see an estimated cost.

Good to know

  • Treat the number as a range. Code, numbers and languages other than English usually take more tokens per character than plain English does.
  • For a hard limit, leave 15 to 20 percent spare, or count with the official tokenizer from the model's provider.
  • Prices change often and differ for input and output, so this page has no price list. Copy the figure from the provider's own pricing page.

Common questions

Is this the real tokenizer?

No. It is an estimate built from word and punctuation rules, and it is usually within 10 to 15 percent for plain English. Real counts depend on the exact model.

Why does other-language text show more tokens?

Tokenizers are trained mostly on English, so other scripts are often cut into smaller pieces. Chinese, Japanese and Korean text is counted here at about one token per character.

Is my text sent anywhere?

No. The counting runs in your browser and nothing is uploaded.