Your text stays in this browser. Nothing you paste is uploaded.
Plain text is encoded locally with the Mistral Medium 3.5 tokenizer. Chat templates and system instructions are not added.
Paste 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.
Your text stays in this browser. Nothing you paste is uploaded.
Plain text is encoded locally with the Mistral Medium 3.5 tokenizer. Chat templates and system instructions are not added.
This page runs the pinned Mistral Medium 3.5 tokenizer locally in a browser Worker and returns token pieces and IDs.
Only plain text is encoded. Mistral chat templates, roles, system instructions, tools, and model-specific request formatting are not added.
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.
The counter sends the exact editor contents to the local tokenizer. Nothing is estimated or split on spaces.
Words, punctuation, indentation, spaces, and line breaks are all part of the string being tokenized.
The Text and Token IDs views come from the pinned Mistral tokenizer asset, so you can inspect boundaries as well as the total.
The result does not add chat templates, roles, tool definitions, images, or other API request formatting.
Mistral Medium 3.5 tokenizer sourceHigh confidenceChecked 2026-07-19
StackLens pins Mistral's tokenizer JSON and runs it locally in a browser Worker. Chat templates and API request wrappers are not included.
Paste text into the editor and the page runs the pinned Mistral Medium 3.5 tokenizer locally. The total, token pieces, and token IDs update from the tokenizer result.
It uses the pinned tokenizer JSON for Mistral Medium 3.5 and states that version explicitly.
Yes. Tokenization runs in a browser Worker, and the entered text is not uploaded by StackLens.
Yes. The page displays token pieces and IDs produced by the selected tokenizer asset.
Not always. This page counts plain text and does not add chat templates, roles, tools, or other API request formatting.