Language models do not read characters or words, they read tokens, and tokens are what you pay for and what fills the context window. Tiktokenizer makes that visible: pick a model, paste text or build a conversation with several messages, and see the count and the token split. Building the conversation shows the cost of the chat format, not just the text.
Some findings show up fast. Non-English text often needs more tokens to say the same thing, spaces and line breaks count, and indented JSON costs more than compact JSON. The show-whitespace toggle makes this obvious. It is a good way to compare two versions of a prompt before shipping.
The trap is treating the number as true for every model. The tokenizer changes by model: the tool relies on tiktoken, while Claude, Gemini and open models use their own. For those, the count is a ballpark; the exact number comes from the vendor. And do not paste prompts containing secrets or customer data.