Your text stays in this browser. Nothing you paste is uploaded.
Plain text is encoded locally with the DeepSeek V4 tokenizer. API chat templates and system instructions are not added.
Count tokens with the pinned DeepSeek V4 Pro tokenizer and inspect the token pieces and IDs without uploading your text.
Your text stays in this browser. Nothing you paste is uploaded.
Plain text is encoded locally with the DeepSeek V4 tokenizer. API chat templates and system instructions are not added.
This page runs the pinned DeepSeek V4 Pro tokenizer locally in a browser Worker and returns token pieces and IDs.
Only plain text is encoded. API chat templates, system instructions, tools, and other 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.
DeepSeek V4 Pro tokenizer sourceHigh confidenceChecked 2026-07-19
StackLens pins DeepSeek's tokenizer JSON and runs it locally in a browser Worker. API chat templates and system instructions are not included.
It uses the pinned tokenizer JSON for DeepSeek V4 Pro and labels that exact basis on the page.
No. The tokenizer runs locally in a browser Worker after its asset is loaded.
Yes. The tool shows token boundaries, raw pieces, and numeric IDs returned by the tokenizer.
Not always. This is a plain-text count; API message formatting, system instructions, tools, and model-specific processing can change the final total.