Tokenizer visualizer
See how a GPT tokenizer splits your text: every token shown as a coloured block, with the exact token count.
Runs in your browserNothing uploadedOne-time 9.7 MB engine
Set up for this job. It runs on Token counter, where every option is there to change.
Loading Tokenizer visualizerRuns on this device. Nothing is uploaded.
Questions
Which tokenizers can I see?
OpenAI's o200k_base (GPT-4o) and cl100k_base (GPT-4), and the Claude legacy tokenizer that Anthropic published for older Claude models. Current Claude models use a tokenizer that is not public.
Why do some characters take several tokens?
Tokenizers work on bytes. An emoji or a letter from a less common script can need several bytes, and if those bytes are not a known token they are split across several.
Is my text uploaded?
No. Tokenizing runs in a worker in this tab. Only the tokenizer files are downloaded, from HelpyTools itself.
Related tools
All ai and agents toolsAI and agentsjsonlClaude Code usageSee your Claude Code tokens by day, project and model from the session logs on your Mac, with an estimate at API prices. Nothing is uploaded.AI and agentsmd markdownCLAUDE.md checkerLint CLAUDE.md and AGENTS.md files for length, structure, duplicated or contradicting rules, vague wording, secrets and links to check.AI and agentsContext packerTurn a code folder into one prompt-ready Markdown or XML text with a file tree and token counts, honouring .gitignore and skipping binaries and lockfiles.AI and agentsLLM API cost calculatorWork out what an LLM API costs per call, day and month across Claude, GPT and Gemini models, with prompt caching, from official prices you can edit.AI and agentsLocal AI models on MacWhere Ollama, LM Studio and Hugging Face keep models on a Mac, how to measure them, and whether a model will fit your disk and memory.AI and agentsPrompt builderBuild a structured prompt from role, task, context, examples, constraints and output format, with {{variables}}, a live preview, token count and saved drafts.