Paste or type your text
Use a prompt, paragraph, or a piece of code. Your results update as you write.
Paste your text, get an instant GPT token count, and check how it fits your token budget. No signup, no clutter.
Your text stays in your browser. The tokenizer code loads from a third-party CDN, but your typed text is not sent to our servers.
AI models process text as tokens—small pieces of words, characters, and punctuation. The same sentence may use a different number of tokens with a different encoding.
Use a prompt, paragraph, or a piece of code. Your results update as you write.
Pick the AI model you use to see the most relevant token count for your text.
Set your own token allowance and watch the usage bar as your text grows.
A token is a unit used by language models to process text. Tokens aren't always whole words: punctuation, spaces, and parts of words can affect the count.
When the tokenizer loads successfully, the count is exact for the selected OpenAI-compatible encoding. If the tokenizer is unavailable, we clearly label an approximate estimate instead. Chat/API requests may add overhead.
Not exactly. Different providers use different tokenizers. This tool currently supports o200k_base and cl100k_base encodings, not exact Claude or Gemini token counts.
No. The text is processed in your browser and isn't submitted to a server by this website. The page downloads its tokenizer library from a third-party CDN.
The exact tokenizer needs an internet connection to download its library. If it cannot load, the tool keeps working with a clearly labelled approximate estimate.