TOON vs JSON Token Savings Calculator
NewPaste a JSON payload and compare the estimated token count of pretty JSON, compact JSON and TOON to see how much a prompt would shrink.
| Format | Characters | Words/symbols | Est. tokens | Saved vs pretty JSON |
|---|
Token counts are estimates: the larger of characters ÷ 4 and a word/symbol-piece count, averaged. Real tokenizers vary by model; use them to compare formats, not to bill.
Frequently Asked Questions
How are tokens counted?
They are estimated from characters and word pieces. Real tokenizers differ by model, so use the numbers to compare formats rather than to bill.
When does TOON save the most?
On uniform arrays of objects, where field names are declared once instead of repeated on every row.
Can TOON be larger than JSON?
Yes, for deeply nested or irregular data the saving can be small or negative.
Is the payload sent anywhere?
No, everything is computed locally.
Related Tools
SKILL.md Generator (Agent Skills)
NewGenerate a valid SKILL.md with YAML frontmatter for Claude Code, Copilot, Codex and other Agent Skills compatible agents.
SKILL.md Validator
NewValidate a SKILL.md file against the Agent Skills specification: frontmatter, name format, description length and body size.
AI Crawler robots.txt Builder
NewBuild a robots.txt that allows or blocks GPTBot, ClaudeBot, PerplexityBot, Google-Extended and other AI crawlers separately for training and search.