DevTools Logo

AI Token Boundary Colorizer

AI Token Boundary Colorizer

See BPE token boundaries and statistics locally in your browser

Tokenize text

Tokenizer boundaries are invisible in plain text but they decide cost, context limits, and even model behavior. This colorizer encodes your text with the OpenAI BPE tokenizers (o200k_base for GPT-4o-class models, cl100k_base for GPT-4/3.5) and renders every token with its own background color, plus token IDs from the vocabulary. Statistics show total tokens, characters, and the characters-per-token ratio so you can estimate prompt costs and see why unusual spellings or code fragments tokenize inefficiently. Tokenizer tables load lazily; all encoding happens locally and nothing is uploaded.

About this tool

See exactly how o200k_base and cl100k_base tokenizers split your text, with per-token colors, token IDs, and character-to-token statistics. Free and client-side. AI Token Boundary Colorizer runs in the browser on DevTools. There is no signup, and your input stays on this device unless the tool explicitly performs a live network lookup.

What this tool does not do

  • AI Token Boundary Colorizer is a free in-browser utility, not a hosted API. It does not keep server-side history and is not a substitute for production verification in your own stack.

How do I use this tool?

  1. How do I use AI Token Boundary Colorizer?

    Open AI Token Boundary Colorizer, enter or paste your input, and copy the result. The page works without an account.