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

Token Counter

Count tokens in text with local tokenizers and compare the available model estimates.

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 Token Counter

Measure a prompt or document excerpt before deciding how much text to include in a model request. Token boundaries differ from words and characters, so the selected tokenizer matters. Use the count as an input to planning rather than assuming all models tokenize identically.

How to use 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.

Token Counter example

Compare a short English paragraph with a code snippet of similar character length. Their token counts may differ substantially.

What to expect from the result

Some supported models use estimates. Plain-text counts do not include every message wrapper, tool definition, image, or other request overhead.

Token Counter questions

How do I use 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?

Some supported models use estimates. Plain-text counts do not include every message wrapper, tool definition, image, or other request overhead.

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.