Free · No account · Nothing uploaded
Token counter
Paste text to count tokens, words, and characters. Counting starts automatically.
Paste replaces this box. You can also touch and hold to paste.
Tokenizer & context settings · o200k_base
0 used · 128,000 remaining in the selected target
Counting runs in a worker inside this browser tab. This tool has no submit action or saved history. Your text is held in this page’s memory while you use it; Clear removes it and stops the worker. We do not upload it or save it in browser storage. Tools pages do not send analytics events. Normal requests are still needed to load the website and tokenizer files.
This counts raw text for the selected encoding. Chat message wrappers, tools, images, provider-specific formatting, and hidden system instructions can add tokens. Treat it as an encoding count, not a billing guarantee for every model or product. Special-token spellings are counted literally. Words are whitespace-separated groups; characters are Unicode code points. The context target is a budget you choose, not a claim about a particular model’s supported limit.
How to use token counter
- Paste or type text. The token count updates automatically.
- Open Tokenizer & context settings to choose o200k_base or cl100k_base and set your own context target.
- Tap Copy count to copy the token total. Clear removes your input and resets the results.
A quick example
Hello, world!
4 tokens · o200k_base 2 words · 13 characters
Does this give the exact billable token count?
It counts raw text for the selected encoding. Chat wrappers, tools, images, and hidden instructions can add tokens. This is not a universal count for every AI model or a billing guarantee.
What is the context target?
A budget you choose to compare against your text. It does not assert that a specific model supports that limit. The default encoding is o200k_base; changing it can change the token count.
Does this tool save my text?
No. Your input is processed in this browser tab, with no uploads, saved history, or analytics events on Tools pages. Clear an input to remove it and its result. Normal network requests load the page and its code. Copying a result puts it on your device’s clipboard, which is managed by your operating system.