Description
Tiktokenizer is an online playground that shows how a chat prompt is split into tokens by OpenAI-style tokenizers. You choose a model, such as gpt-4o, then edit the system and user messages and add more messages as needed. The page shows the chat template wrapped around your text, including the special markers that separate roles, and then gives a token count. It lists each token with its text and its numeric ID, so you can see where one token ends and the next begins. A Show whitespace option reveals spaces and line breaks, which matters when you count tokens for a prompt. The tool is built by dqbd, and the source is on GitHub under that account. It is a single web page with no sign-up shown, and it is useful for checking how a prompt is tokenized before you send it to a model.…
Highlights
- Tokenizer playground for OpenAI-style models
- Choose a model such as gpt-4o
- Edit system and user messages
- Token count and per-token IDs
- Show whitespace option
Ratings & Reviews
No ratings yet
Be the first to rate Tiktokenizer.
People also visit
Tiktokenizer FAQ
What is Tiktokenizer?
An online playground that shows how a chat prompt is split into tokens.
Which models can I check?
The page starts with gpt-4o, and you can pick the model from its selector.
What does it show for each token?
The token text and its numeric ID, plus the total token count.
Who built it?
The page says it is built by dqbd, and the source is on GitHub.
What are the best Tiktokenizer alternatives?
Popular alternatives to Tiktokenizer include Tokentap, GPT Calculator and Tiktoken Go. See all Tiktokenizer alternatives



