Your text stays in this browser. Nothing you paste is uploaded.
Tokenizer and API totals may differ when request formatting or model-specific processing adds tokens.
Count text with OpenAI, Gemini, Gemma, DeepSeek, Qwen, Mistral, Llama, or Claude. Inspect token boundaries and IDs when the selected tokenizer provides them.
Your text stays in this browser. Nothing you paste is uploaded.
Tokenizer and API totals may differ when request formatting or model-specific processing adds tokens.
OpenAI, Gemini, Gemma, DeepSeek, Qwen, Mistral, and Llama tokenization run locally on plain text in your browser. Their token boundaries come from the selected tokenizer rather than from splitting text on spaces. Claude counts come from Anthropic's official token-count API through a server-side request.
Claude reports the input-token total for a complete user message and does not return token pieces or token IDs. That total may include message formatting and tokens Anthropic adds for system optimizations, so it is not directly comparable with the plain-text OpenAI or Gemini counts.
For request-volume and output-token calculations, see the monthly LLM API cost guide. Using OpenAI? Check the current OpenAI API token prices.
To compare the same English, Chinese, JSON, and code samples, open the reproducible tokenizer comparison.
Using Gemini? Open the focused Gemini tokenizer.
Want another tokenizer? Send a request.
A tokenizer splits text into the smaller units a language model processes. A token can be a whole word, part of a word, punctuation, whitespace, or another character sequence.
Model families can use different tokenizers. The same text may therefore produce different token boundaries, token IDs, and total counts.
Token IDs are the numeric identifiers assigned to token pieces by the selected tokenizer. The IDs are specific to that tokenizer and should not be treated as universal across models.
No. This page tokenizes the text you paste. An API request may add message formatting, tools, images, or other provider-specific tokens.
OpenAI, Gemini, Gemma, DeepSeek, Qwen, Mistral, and Llama modes run locally. Claude mode sends the text through StackLens to Anthropic's official token-count API. StackLens does not store the submitted text.
No. It provides Gemini-compatible plain-text tokenization. Gemini API usage can differ because of message formatting, tools, media, and model-specific processing.
No. Anthropic's official token-count API returns the input-token count for a complete message, but it does not return individual token boundaries or token IDs. The count may include message formatting and Anthropic-added system tokens, so do not compare it directly with a plain-text tokenizer count.