Free tool · runs in your browser

LLM token counter

Paste text to estimate tokens and check whether it fits in 8K, 32K, 128K or 1M-token context windows, useful when choosing a model or a quantised context size.

1× input

Prices are examples. Enter the rate of the model you use.

0≈ tokens
0words
0characters
$0.0000≈ cost per request
Fits in context window

Estimate blends ~4 characters per token and ~0.75 words per token, the typical range for English with BPE tokenizers. Exact counts vary by model.

Tokens and local models

When running models locally, context length directly affects memory through the KV cache. Knowing how many tokens your typical prompts and documents use helps you pick a context size that fits, no larger than you need.

Rule-of-thumb conversions

For English text:

  • 1 token ≈ 4 characters ≈ 0.75 words.
  • 1,000 words ≈ 1,300 tokens.
  • A 300-page book ≈ 120,000 tokens.

Common questions

Do all models tokenize the same way?

No. Each family has its own tokenizer, so exact counts differ slightly.

Does this send my text anywhere?

No. Counting happens in your browser.

Why do code and non-English text use more tokens?

Tokenizers are optimised for common English patterns, so unusual character sequences split into more tokens.

Now pick a model.

Use the directory to find a model that matches your numbers.