Digital ToolPad.
Runs 100% in your browserYour data never leaves your device. zero uploads.

AI Token Counter

Estimate the token length of AI prompts and inspect how the selected tokenizer affects the count.

476 characters80 words
Loading tokenizer…
119
tokens EXACT
476
chars
80
words
1.49
tokens/word
Context window119 / 128,000
0.09% used

Cost estimate

Input (119 tok × $2.50/M)
$0.00030
Output (500 tok × $10.00/M)
$0.00500
Total per request
$0.00530

List prices as of June 2026, per 1M tokens. Verify current rates with each provider.

Compare across all models

ModelTokensTotal cost
GPT-5
OpenAIexact
119$0.00515
GPT-5 mini
OpenAIexact
119$0.00103
GPT-4.1
OpenAIexact
119$0.00424
GPT-4o
OpenAIexact
119$0.00530
GPT-4o mini
OpenAIexact
119$0.00032
o3 / o4-mini
OpenAIexact
119$0.00424
GPT-4 Turbo
OpenAIexact
119$0.0162
GPT-3.5 Turbo
OpenAIexact
119$0.00081
Claude Opus 4
Anthropicest
133$0.0132
Claude Sonnet 4
Anthropicest
133$0.00790
Claude Haiku 4.5
Anthropicest
133$0.00263
Gemini 3 Pro
Googleest
119$0.00624
Gemini 3 Flash
Googleest
119$0.00156
Gemini 2.0 Flash
Googleest
119$0.00021
Llama 3.1 405B
Metaest
126$0.00056
DeepSeek V3
DeepSeekest
129$0.00058
Grok 4
xAIest
123$0.00787
Mistral Large
Mistralest
129$0.00326

Working with AI Token Counter

Check a draft prompt, context excerpt, or generated response before combining it with other material. Compare the available model selections and leave room for the model's response when planning context usage. The calculation runs on the text in the workspace.

How to use AI Token Counter

  1. Paste the text you want to measure.
  2. Choose a model or tokenizer from the available options.
  3. Review the token count and any displayed estimate before planning your prompt.

AI Token Counter example

Count the instructions and context separately, then measure their combined text to assess the size of a proposed prompt.

What to expect from the result

The displayed count or cost estimate is not an API billing quote. Verify model-specific limits, overhead, and current pricing with your provider.

AI Token Counter questions

How do I use AI Token Counter?

Paste the text you want to measure. Choose a model or tokenizer from the available options. Review the token count and any displayed estimate before planning your prompt.

What should I check in the result?

The displayed count or cost estimate is not an API billing quote. Verify model-specific limits, overhead, and current pricing with your provider.

100% private — your data never leaves your browser

No registration, no tracking of your content, no server uploads. Don't just take our word for it:

No server, no uploads

Your files and text are processed entirely on your device. Nothing is ever sent to us.

Works offline

Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.

Verify it yourself

Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.