About TOON

What is TOON?

TOON (Token-Oriented Object Notation) is a compact, human-readable, schema-aware format designed specifically for LLM prompts. It reduces token usage while maintaining readability and explicit structure.

Key Benefits

  • Token efficiency: Reduces token count for AI/LLM prompts compared to JSON
  • Human-readable: Easy to read and understand
  • Schema-aware: Explicit structure with array lengths and field headers
  • Best for tabular data: Especially effective for uniform arrays of objects

Example

JSON:
{
  "items": [
    { "id": 1, "qty": 5 },
    { "id": 2, "qty": 3 }
  ]
}
TOON:
items[2]{id,qty}:
  1,5
  2,3

Learn More

This converter uses the official @toon-format/toon library for accurate conversion.