TOON (Token-Oriented Object Notation)
A compact way to write data for AI prompts that uses fewer tokens than standard JSON.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Computer
- An ordinary computer is fine
A compact way to write data for AI prompts that uses fewer tokens than standard JSON.
When programs send data to an AI model, they often use JSON, a common data format. AI services charge by the "token" (small chunks of text), and JSON spends many tokens on brackets and repeated labels.
TOON writes the same data in a shorter, tidy form, listing field names once and then one row per item, a bit like a spreadsheet. Its makers say it can cut tokens a lot for lists of similar items, and that it converts back to JSON with nothing lost.
They also say plain JSON can still be more efficient for deeply nested or irregular data. The project includes a TypeScript library, a command-line tool and benchmarks.
Developers who send lots of structured data to AI models and want to save on costs.
Developers only. A code library and command-line tool for programmers. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?