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.
Prices are examples. Enter the rate of the model you use.
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.
Related
LLM VRAM Calculator
Estimate GPU memory for any LLM size, quantisation and context length, weights, KV cache and overhead.
Free toolAI Model Finder
Answer three questions, task, hardware, priority, and get suggested open-weight models to try.
Free toolContext Length Calculator
See how many chat turns and words fit in a model's context window after the system prompt and reply reservation, from 4K to 1M tokens.
Free toolLocal vs API Cost Calculator
Estimate your monthly API bill for an open model and compare it with a flat subscription or what you would spend running it locally.
Free toolUncensored System Prompt Builder
Build a clear system prompt for uncensored, abliterated or fine-tuned local models, covering role, job, tone, format and your own boundaries.
Free toolImage Model VRAM Checker
Check whether open image models such as SDXL, FLUX, Chroma and Qwen-Image fit your GPU at BF16, FP8 or GGUF quantisation.
GuideHow to Run an Uncensored LLM Locally: A Beginner's Guide
Step-by-step guide to running an uncensored language model on your own computer: choosing a model, GGUF quantisation, and tools like Ollama, LM Studio and llama.cpp.
Now pick a model.
Use the directory to find a model that matches your numbers.