What is TOON?

Why Use TOON?

TOON helps reduce data size by removing unnecessary elements. Compared to JSON which is filled with:

  • Quotation marks ""
  • Curly braces { }
  • Commas ,
  • Repeated key names

⚙️ Key Benefits

  • Token Savings — Reduces bandwidth for data transmission
  • Cost Reduction — Fewer tokens = money saved
  • Faster Responses — Lower latency means quicker AI responses

📝 Comparison Example

TOON uses indentation instead of curly braces and a table format for repeated data — like combining YAML (readable) with CSV (compact).

JSON:

[
  { "id": 101, "name": "Dev", "role": "Admin" },
  { "id": 102, "name": "Film", "role": "Editor" }
]

TOON:

users[2]{id, name, role}:
101, Dev, Admin
102, Film, Editor

📍 How to Use

  1. Install the library (e.g., Python has the toon package)
  2. Convert JSON to TOON string before sending the prompt
  3. Send to LLM (ChatGPT, Claude, etc.) for processing

💡 Recommended for: Those building AI Agent systems or handling large amounts of data