Online tokenizers

Choose a tokenizer by model family

Open the tokenizer that matches your model family. Count tokens, inspect boundaries, and view token IDs when the selected tokenizer exposes them.

FAQ

Online tokenizer questions

Which online tokenizer should I choose?

Choose the model family that will process the text. Token boundaries and IDs are specific to a tokenizer, so the same text can have a different count in another family.

Do these tokenizers upload my text?

OpenAI, Gemini, Llama, Gemma, Qwen, Mistral, and DeepSeek tokenization runs locally in your browser. Claude uses Anthropic's official token-count API and sends the submitted text to Anthropic for counting; StackLens does not store it.

Will a plain-text tokenizer match an API bill exactly?

Not always. Roles, chat templates, tool definitions, images, and provider-specific request formatting can add tokens beyond the plain text entered into a tokenizer.