Token & Whitespace Inspector
Token heatmap (estimate — tokenizer loading)
2 hidden / risky characters found
- nbsppos 13U+00A0No-Break Space
- zero-widthpos 20U+200BZero Width Space
Bidi controls and zero-width characters can hide instructions or spoof code (the "Trojan Source" class of attacks). Remove them unless you added them intentionally.
What This Tool Does
Token & Whitespace Inspector is built for deterministic developer and agent workflows.
Visualize tokenization boundaries and reveal hidden whitespace and unicode gotchas in a prompt.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/token-whitespace-inspector/
For automation planning, fetch the canonical contract at /api/tool/token-whitespace-inspector.json.
How to Use Token & Whitespace Inspector
- 1
Paste your prompt
Drop the prompt or text you want to inspect into the input box. The heatmap and stats update as you type.
- 2
Read the token heatmap
Each token gets an alternating background so you can see exactly where the tokenizer splits your text, with a live token count.
- 3
Reveal whitespace
Toggle whitespace markers to turn spaces into middots and surface tabs and newlines, exposing trailing or doubled spacing.
- 4
Reveal hidden characters
Toggle hidden-character highlighting to catch zero-width, non-breaking, and bidi controls, each labeled with its codepoint and name.
- 5
Copy the report
Copy a plain-text summary of character, token, whitespace, and hidden-character counts plus the position of each flagged character.