Token and context counter
Language models don’t read characters or words. They read tokens: pieces of text chosen by a tokeniser, from whole common words down to single bytes. Context windows, prices and rate limits are all measured in tokens, so a count tells you whether a prompt fits and what it costs.
94 o200k_base tokens use 0.009% of GPT-6.1 Sol’s context window.
Your text
Your text stays in this browser and is never uploaded. Up to 200,000 characters.
Window and price from the model list, checked 2026-10-24.
Room kept free for the model’s output.
System prompt, chat history or tool definitions sent with this text. Count them separately.
Context fit: OpenAI GPT-6.1 Sol
- Input
- Reserved for the reply
This is a o200k_base count. It is exact only if this model uses o200k_base. The model list doesn’t record which encoding each model uses, so check OpenAI’s documentation.
Where the tokens split
Each block is one token. · is a space, ↵ a new line, ⇥ a tab.
↵
Deciding·how·long·to·keep·an·entry·is·a·trade-off·between·speed·and·accuracy,·and·the·right·setting·depends·on·how·often·the·underlying·data·changes.
Showing all 94 tokens.
What it shows
Context windows, prices and rate limits are all measured in tokens, so a count tells you whether a prompt fits and what it costs.
Paste text to count it with OpenAI’s tiktoken encodings, o200k_base or cl100k_base, and see each token as a block. Pick a model to see how much of its window the text uses and what the input costs for one call. Your text never leaves your browser.
How to read it
- Tokens is the count under the chosen encoding. Characters per token is the average for this text and varies a lot between prose, code and other languages.
- Each block is one token. A dot (·) is a space and an arrow (↵) a new line. A character split across tokens is one block, with a note on hover.
- “Context window used” counts this text plus any other input tokens you add.
- “Tokens left after the reply” subtracts the room you reserve for output. If it goes negative, the call won’t fit.
- “Input cost, one call” is the model’s listed input price times your input tokens. Reserved output is not billed here.
- For models outside OpenAI, figures are OpenAI-encoding counts. Each provider’s own tokeniser will differ.
Questions
What is a token?
A token is a piece of text that a model treats as one unit. A tokeniser learns the pieces from a large body of text, so common words are often one token, rarer words are split into several, and any text can fall back to single bytes.
Why does my provider show a different count?
Each model family has its own tokeniser and vocabulary. This page uses OpenAI’s encodings, so for Anthropic, Google or other models it is a stand-in, not their number. Use the provider’s own token-counting tool when the exact figure matters.
What is the difference between o200k_base and cl100k_base?
They are two tiktoken vocabularies. cl100k_base has about 100,000 entries and o200k_base about 200,000. The larger one covers more words and non-English scripts with a single token, so the same text often needs fewer tokens. Which one a given OpenAI model uses is listed in OpenAI’s documentation.
Is my text sent anywhere?
No. Counting runs in your browser, in a background thread. The page downloads the tokeniser’s vocabulary, which is the same for everyone, and sends nothing back.
Why is some text slow to count?
The byte-pair merge step gets slow on very long runs of characters with no spaces or punctuation, such as base64 data. The page counts in a background thread, so it stays usable, and offers a Stop counting button.
Sources
Explore further
- TiktokenizerPaste a prompt and see every token, for many model tokenizers.
Last updated
More tools
All tools- estimatorLLM cost estimatorCost per request and per month across LLM APIs, with caching, batch pricing and routing.Open tool
- estimatorAgent run cost estimatorCost of an agent run by model, steps and prompt caching, with context growth and the step where the window fills.Open tool
- estimatorVector index memory plannerRAM for a vector index by type, element size and replicas, with a breakdown of vectors, links, ids and codebooks.Open tool