JSON to TOON Converter

Convert JSON to TOON for LLM prompts

Conversion options
Delimiter
Indent width
JSON data
TOON data
Read-only

What is JSON to TOON Converter?

JSON to TOON Converter turns JSON data into TOON. TOON is a compact format for data sent to LLMs, and it can turn arrays of objects with the same fields into tables. Use it to review data before adding it to a prompt.

How to Use

  1. Paste JSON data into the input.
  2. Review the TOON result.
  3. Change the delimiter or indent width as needed.

Main Settings

Delimiter

Choose the character that separates rows and columns in tables. A comma is easy to read, while a tab prioritizes token efficiency. A pipe makes the separators easier to follow by eye.

Indent Width

Choose the indentation width for nested objects. The setting matters more as the data gets deeper.

Input and Output Example

{
  "users": [
    { "id": 1, "name": "Alice", "role": "admin" },
    { "id": 2, "name": "Bob", "role": "user" }
  ]
}

This JSON is represented in TOON as follows.

users[2]{id,name,role}:
  1,Alice,admin
  2,Bob,user

Use Cases

  • Making JSON for an LLM as compact as possible
  • Showing array data in a form close to a table
  • Preparing API responses or log data for a prompt

Things to Keep in Mind

  • Some tools and models cannot read TOON. Check that the target tool or model supports it
  • TOON is most effective for arrays of objects with the same fields. Deeply nested or non-uniform data may be smaller as JSON