Step 1
Paste or type any text
Paste any prompt or document and see exactly how many tokens it uses — with the same tokenizers GPT, Qwen, GLM, Kimi, and MiniMax actually run on. Inspect the split token by token, switch encodings, and budget against context windows. Your text never leaves the browser.
Count tokens exactly with the official vocabularies of GPT, Qwen, GLM, Kimi, and MiniMax, inspect the split and IDs token by token — all locally in your browser.
Browser-side
Step 1
Paste or type any text
Step 2
Pick the encoding: OpenAI's two, or Qwen/GLM/Kimi/MiniMax
Step 3
Read the live count and the colored token split
see where every token goes
The token counter splits text with the same BPE encodings OpenAI models use and counts the result. Tokens are the common currency of the LLM world — APIs bill by them, context windows cap them, and models read by them. Whether you are writing prompts, chunking for RAG, or estimating costs, step one is knowing what your text actually costs in tokens.
Counts are exact against the official vocabularies of OpenAI (GPT family) plus Qwen3.5, GLM-5.2, Kimi, and MiniMax-M3. Claude and Gemini keep their tokenizers private, so treat those as ballpark. Vocabularies are 1–4MB, downloaded once on first use and cached after.
Barely works for English, badly wrong for Chinese and code.
Exact but costs a paid call — useless while drafting a prompt.
Same encodings, exact and local, live as you type, free.
Treat tokens as a budget and your prompts get both sharper and cheaper. Pair this with the LLM API fingerprint checker to verify your endpoint is genuine, or convert PDFs into presentations with AI — build and verify your AI workflow in one place.
FAQ
These answers explain what the tool does, what files it supports, and where the current limits are.