Convert JSON to TOON & Save LLM Tokens

-30–60% Tokens

Convert structured JSON into Token-Oriented Object Notation (TOON) locally—shrinking GPT-5, Claude 4, and Gemini 2.5 prompt tokens by 30%–60%.

100% Client-Side — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tab

or drop files here · Ctrl V to paste · or drop .json files · Ctrl V to paste JSON payload
  • 0 bytes uploaded
  • Saves 30–60% LLM tokens
  • Live token savings meter

Instant Before & After Preview

-51% LLM tokens
Before (Input)users-payload.json
{
  "users": [
    { "id": 1, "name": "Alice Chen", "role": "admin", "active": true },
    { "id": 2, "name": "Bob Tanaka", "role": "editor", "active": true },
    { "id": 3, "name": "Clara Diaz", "role": "viewer", "active": false },
    { "id": 4, "name": "David Kim", "role": "editor", "active": true }
  ]
}
After (Output).toon
users[4]{id,name,role,active}:
  1,Alice Chen,admin,true
  2,Bob Tanaka,editor,true
  3,Clara Diaz,viewer,false
  4,David Kim,editor,true

Source vs. target format specification comparison: JSON → TOON

PropertySource: JSONTarget: TOON
Structure typeHierarchicalHierarchical
Human readabilityHighHigh
Nesting supportYesYes
LLM token efficiencyLowHigh
File extension.json.toon
MIME typeapplication/jsontext/plain
Best forREST/GraphQL APIs, structured application state, NoSQL documents, and machine-to-machine data exchange.Cutting LLM prompt token costs by 30–60% when sending uniform JSON object arrays to GPT-5, Claude 4, or Gemini.

How it works

How to compress LLM JSON prompts with TOON

Eliminate repetitive JSON property keys and braces before inserting arrays of records into AI system prompts.

  1. Paste or drop API JSONProvide any JSON payload—uniform arrays of objects see the largest token reductions.
  2. Watch live token savingsCompare input JSON tokens vs. TOON tokens live using o200k_base, Claude 4, or Gemini 2.5 estimation.
  3. Copy TOON into your promptCopy the compact TOON payload or inspect full model costs inside LLM Token Counter.

FAQ

Frequently asked questions

Why does TOON save so many tokens compared to formatted JSON?

TOON declares column keys once in a compact header (`users[4]{id,name,role}:`) and streams values per row, removing repeated key names, quotes, and braces.

Can LLMs understand TOON reliably without special plugins?

Yes. TOON combines familiar YAML indentation with explicit array counts and CSV-like rows, making it self-describing for frontier models.

Can TOON convert back to identical JSON?

Yes. Use TOON to JSON anytime to round-trip TOON back into typed JSON arrays, objects, booleans, and numbers.