TOON Formatter

    Convert JSON to TOON, validate TOON syntax, compare payloads, and estimate prompt token savings. Everything runs locally in your browser.

    Valid JSON
    Valid TOON output readyAuto-detects JSON, TOON, YAML, and XML from pasted content.
    Input
    13 lines
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    Live TOON
    8 lines
    1
    2
    3
    4
    5
    6
    7
    8
    -400">users-500">[3]-400">{id,name,email,role}:  1,Alice,alice@example.com,admin  2,Ravi,ravi@example.com,editor  3,Mina,mina@example.com,viewer-400">source-500">-400">: api-400">active-500">-400">: -400">true-400">region-500">-400">: ap-south-1-400">tags-500">[3]-400">: llm,prompt,compact
    Live JSON
    32 lines
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    {
      -400">"users": [
        {
          -400">"id": 1,
          -400">"name": "Alice",
          -400">"email": "alice@example.com",
          -400">"role": "admin"
        },
        {
          -400">"id": 2,
          -400">"name": "Ravi",
          -400">"email": "ravi@example.com",
          -400">"role": "editor"
        },
        {
          -400">"id": 3,
          -400">"name": "Mina",
          -400">"email": "mina@example.com",
          -400">"role": "viewer"
        }
      ],
      -400">"meta": {
        -400">"source": "api",
        -400">"active": -400">true,
        -400">"region": "ap-south-1"
      },
      -400">"tags": [
        "llm",
        "prompt",
        "compact"
      ]
    }