JSON

TOON


How to convert JSON to TOON

Nothing could be simpler: just enter your data into the JSON editor, and it will automatically be converted to TOON in the result editor.

Toon format

TOON (Token-Oriented Object Notation) is a compact and readable format designed to represent JSON data in a way that is optimized for language models (LLMs). It resembles YAML with its indentation-based structure for nested objects and also resembles CSV-style tabular formatting for uniform arrays, which preserves the compactness of CSV while adding explicit structure that LLMs can easily follow and validate.

TOON is ideal for uniform arrays of objects, but JSON remains more efficient for deeply nested or non-uniform data. In practice, TOON acts as a translation layer: you use JSON for your programmatic processing, then encode your data in TOON to provide it to language models as a lossless, directly usable representation.

TOON is a very recent format, so we’ll see if it manages to find its place!

JSON to Toon converter

This converter transforms your JSON data directly in the browser. Your data is not sent to our servers; it stays in your browser.

It uses the official TOON library: https://github.com/toon-format/toon