Token counter: see how much of Claude’s context window your text fills
Paste a prompt, a document or your agent’s memory. The count is an estimate computed in your browser: your text is not sent anywhere.
A context window holds your text and the model’s answer. This number is the room set aside for the answer.
| Model | Tokens | Window used | One request | Requests needed | Input cost |
|---|---|---|---|---|---|
| Claude Fable 5.21,000,000 tokens | 0 | 0.0% | |||
| Claude Opus 5.51,000,000 tokens | 0 | 0.0% | |||
| Claude Sonnet 5.51,000,000 tokens | 0 | 0.0% | |||
| Claude Haiku 5.51,000,000 tokens | 0 | 0.0% | |||
| Claude Haiku 4.5200,000 tokens | 0 | 0.0% |
“Fits” means the text and the tokens kept for the answer hold in one context window. “Higher rate”: above 100,000 tokens in one request, Claude Haiku 5.5 is billed at a higher price per token.
Estimates, measured on November 17, 2026 against Anthropic’s token counting: off by 6% on average on our test texts, and within 13% nine times out of ten. The questions below give the error by kind of text. Model limits and prices checked on November 3, 2026 against Anthropic’s documentation.
A memory block that grows with every user takes more of the window on every call. CrystalBrain merges duplicate memories and returns only the ones relevant to each request.
Start freeFree up to 25 tracked users, no card.
Why it helps
Know before you send
See whether a prompt, a document or a chat history fits in one request, before the model cuts it or the call fails.
Budget the context window
Split a request into system prompt, memory, history and message, and see what each part takes.
Measured, and private
A chat assistant asked to count tokens guesses. This page applies a formula measured against Anthropic’s token counting, publishes its error, and keeps your text in your browser.
How it works
- Paste a text or open a fileA prompt, a document, a chat export, the memory of your agent. It stays in the page.
- Read its weight for each modelTokens, the share of the context window, whether it fits in one request, and what it costs as input.
- Budget a whole requestSplit it into system prompt, memory, history and message, and see what each part takes from the window.
Keep the memory part of the window small
Memory is the part of a request that grows with every user. CrystalBrain keeps it lean.
- Each request gets the memories relevant to it, not the whole history.
- Duplicate memories are archived and related ones merged by the weekly checks.
- Memories your AI has not read in 90 days go to a review queue, or are archived automatically.
Free up to 25 tracked users, no card.
Questions
- How many tokens is 1,000 words?
- It depends on the language and on the model. On our English test texts, 1,000 words weighed about 1,644 tokens for the current Claude models; on our French ones, about 2,446. Code, JSON and other alphabets weigh more per word.
- Why an estimate and not an exact count?
- Anthropic does not publish the tokenizer of its current models. The exact count comes from its API, which means sending your text to a server. This page keeps your text in your browser and applies a formula measured against that API. On our test texts, each one estimated by a formula tuned without it, the estimate was off by 6% on average, and within 13% nine times out of ten. Each request also carries a few tokens of its own, which the estimate leaves out.
- How far off can it be for my kind of text?
- Average error measured on 102 samples, by kind of text: English prose 4%; French prose 9%; Spanish and German prose 10%; Japanese, Chinese, Korean, Russian, Arabic, Greek and emoji 24%; Markdown documentation 1%; A system prompt and a chat 5%; TypeScript and JSX code 5%; Python code 9%; JSON 4%; SQL 6%; CSS 3%; CSV, logs, YAML, URLs and identifiers 6%. English, Markdown and most code are the closest. Other alphabets and emoji are rough, and a kind of text that is not in this list can be further off.
- What is a context window?
- It is the most text a model can handle in one request: your system prompt, the memory you add, the conversation so far and the new message, plus the answer it writes. What does not fit must be cut, summarised or sent in several requests.
- Why do models give different counts?
- Each model family cuts text into tokens in its own way, so the same text can weigh more for one model than for another. The table shows each model with its own count.
- Does my text leave my browser?
- No. Counting, trimming and reading a file all happen in the page. We only count that the page was opened and used, without your text, without a cookie and without anything that identifies you.
- What does Trim remove?
- Three things, and it tells you how many of each: spaces at the end of lines, extra blank lines, and long lines that repeat an earlier line word for word, such as page headers pasted from a document. Short repeated lines are kept, because in code or data they mean something. You can undo it.
- Why only Claude models?
- A model is listed once its limits and price are checked against its provider's documentation and its counts are measured. Models from other providers will be added the same way.