JSON to TOON Converter

Free. No sign-up. Your input is processed in your browser.

Turn JSON into TOON, a shorter form for AI prompts, or TOON back into JSON, and see how many tokens it saves.

How to use it

  1. Paste JSON or TOON, drop a file on the box, or press Example. The direction is detected: valid JSON becomes TOON, anything else is read as TOON.
  2. The result appears automatically. The status line compares the tokens of TOON with compact and indented JSON.
  3. Pick a Separator if your values contain many commas, then copy or download the result.

What TOON looks like

TOON writes objects as indented key: value lines. A list of objects that share the same plain fields becomes a table: the field names appear once, then one row per item.

{"users": [{"id": 1, "name": "Demo"}, {"id": 2, "name": "Test"}]}

becomes

users[2]{id,name}:
  1,Demo
  2,Test

When it helps

The saving is largest for long lists of similar records, such as table rows or search results. Deeply nested data with few repeated fields may save little, and the tool tells you when that is the case. Models read JSON well, so test TOON with your own model and prompt before you switch.

Details

Example

Made-up input, and what JSON to TOON Converter returns for it. Long text is shortened.

JSON or TOON
{
  "project": "demo-shop",
  "users": [
    {
      "id": 1,
      "name": "Demo User",
      "role": "admin",
      "active": true
    },
    {
      "id": 2,
      "name": "Test User",
      "role": "viewer",
      "active": false
    },
    {
      "id": 3,
      "name": "Sample User",
      "role": "editor",
      "active": true
    }
  ],
…
Result
project: demo-shop
users[3]{id,name,role,active}:
  1,Demo User,admin,true
  2,Test User,viewer,false
  3,Sample User,editor,true
tags[2]: shop,demo
settings:
  currency: EUR
  limit: 50

Questions

Can it turn TOON back into JSON?

Yes. Paste TOON and you get formatted JSON. If the TOON has a mistake, such as a row count that does not match its header, the message names the line.

Is my JSON sent to an AI model?

No. Converting and counting happen in your browser, with no API key.

Related tools

See all tools