Token-Oriented Object Notation
Token-Oriented Object Notation is a text-based data format. It encodes the JSON data model in a compact way. TOON is designed to reduce token usage in LLM prompts while staying human-readable.
History
TOON was introduced in 2024 by the TOON Project. The goal was to make structured data smaller for AI systems. Version 1.0 focused on basic JSON conversion. Version 2.0 added array headers. Version 3.0, released in 2025, improved syntax and added official media type.Features
TOON was created for three main reasons:- Reduce token count in AI prompts. TOON saves about 30–60% on tokens compared to JSON.
- Stay easy for humans to read and write. Similar to YAML and comma-separated values in style.
- Keep data lossless when converting to and from JSON.
Syntax
users:
1,Alice,admin
2,Bob,user
This means an array named "users" with two objects having fields "id," "name," and "role."
Comparison to JSON
TOON and JSON both represent objects and arrays. TOON removes braces and commas. It uses headers for arrays instead of repeating keys. This makes TOON shorter but less strict than JSON.The same TOON-defined data above as JSON:
Other information
The provisional media type istext/toon. Files use the .toon extension.Official implementations exist in TypeScript. Community versions are in Python, Go, Rust, and.NET.