OpenAI, Gemini, Gemma, Llama, Qwen, Mistral, and DeepSeek
These pages run their pinned tokenizer assets in your browser and show the produced pieces and IDs. StackLens does not upload the text.
Paste text into the tokenizer family that matches your model. Get a real token count, inspect token pieces and IDs when available, and understand when a plain-text result will differ from an API total.
Count plain-text tokens with current or legacy OpenAI encodings, then inspect each token boundary and ID in your browser.
Open tokenizer Runs locally · Token pieces + IDsCount Gemini-compatible plain-text tokens and inspect token boundaries and IDs in your browser.
Open tokenizer Official API count · API input totalCount the API input tokens for a Claude user message with Anthropic's official token-count endpoint.
Open tokenizer Runs locally · Token pieces + IDsSee how a Llama 3 tokenizer splits plain text, inspect token IDs, and keep your text in the browser.
Open tokenizer Runs locally · Token pieces + IDsSee how Gemma 3 splits plain text into tokens, inspect token IDs, and keep the text in your browser.
Open tokenizer Runs locally · Token pieces + IDsTokenize text with the pinned Qwen 3.5 tokenizer, inspect token boundaries and IDs, and keep your input local.
Open tokenizer Runs locally · Token pieces + IDsPaste text, a prompt, or code to count tokens with the pinned Mistral Medium 3.5 tokenizer, then inspect the exact token pieces and IDs in your browser.
Open tokenizer Runs locally · Token pieces + IDsCount tokens with the pinned DeepSeek V4 Pro tokenizer and inspect the token pieces and IDs without uploading your text.
Open tokenizerThere is no universal token count for the same text. Use the matching tokenizer when you need a model-specific input total.
These pages run their pinned tokenizer assets in your browser and show the produced pieces and IDs. StackLens does not upload the text.
The Claude option uses Anthropic's token-count endpoint, so the submitted text is sent to Anthropic for counting. StackLens does not store it.
Roles, tools, chat templates, images, and retries can change an API bill. Use the measured count in the API cost calculator for scenario planning.
Choose the model family that will process the text. Token boundaries and IDs are specific to a tokenizer, so the same text can have a different count in another family.
OpenAI, Gemini, Llama, Gemma, Qwen, Mistral, and DeepSeek tokenization runs locally in your browser. Claude uses Anthropic's official token-count API and sends the submitted text to Anthropic for counting; StackLens does not store it.
Not always. Roles, chat templates, tool definitions, images, and provider-specific request formatting can add tokens beyond the plain text entered into a tokenizer.