Token Bench

Compare JSON, YAML, and TOON token usage for LLM prompts.

Encoding

Input JSON

Paste any JSON object, array, or primitive.

Paste JSON to begin0.0 KB
TOON is a compact, lossless encoding of the JSON data model designed to reduce tokens for LLM prompts.

Outputs

Derived from the parsed JSON. TOON is compact and lossless.

Pick encoding closest to your target model.
Tokens pending

Results

Absolute tokens, percent savings, and a quick winner.

FormatTokens% vs Pretty% vs Compact
TOON
YAML
JSON Pretty
JSON Compact