Tokenizer visualizer
See how a GPT tokenizer splits your text: every token shown as a coloured block, with the exact token count.
Set up for this job. It runs on Token counter, where every option is there to change.
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.