TOON Generator

Convert between JSON and Token-Oriented Object Notation

JSON Input

TOON Output

TOON will appear here...

About TOON Format

Token-Oriented Object Notation (TOON) is a compact, human-readable encoding that combines YAML-style structure with CSV-like tabular layout for arrays:

✨ Features

  • YAML-like key: value for objects
  • CSV-style tables for uniform arrays
  • Indentation-based nesting
  • Fewer tokens than JSON
  • Optimized for LLMs

📝 Format Rules

  • Objects: key: value (newlines)
  • Primitives: [3]: 1,2,3
  • Tables: [2]{id,name}:
  • Nested: 2-space indentation

JSON Example

{
  "name": "Alice",
  "skills": ["JS", "TS"],
  "projects": [
    {"id": 1, "active": true},
    {"id": 2, "active": false}
  ]
}

TOON Example

name: Alice
skills[2]: JS,TS
projects[2]{id,active}:
  1,true
  2,false
💡 Best For: Uniform arrays of objects (like database rows). Not ideal for deeply nested or irregular data.