Text Input
Tokens
Enter text on the left to see token visualization here
About Token Counter & Visualizer
See exactly how large language models break your text into tokens. Paste any text and instantly see the token count alongside a rainbow color-coded visualization of every token boundary. Useful for prompt engineering, cost estimation, and understanding how LLMs process text.
- Uses the GPT-4o tokenizer (o200k_base) — different models tokenize slightly differently, but counts will be very close across all major LLMs
- Rainbow color-coded inline visualization of token boundaries
- Real-time token count and character count
- Runs entirely in your browser — your text never leaves your device