JSON to TOON Converter — Cut Tokens in LLM Prompts

Paste JSON to get TOON, a compact format built for sending data to ChatGPT, Claude and other LLMs. The token counts show whether TOON actually saves anything for your data.

AI DevRuns in your browser — nothing uploaded

Direction
Delimiter

How it works

  1. 1

    Lists become tables

    An array of objects with the same keys is written once as a header — orders[5]{id,city,total}: — followed by one comma-separated row per item. Keys aren’t repeated, which is where most of the savings come from.

  2. 2

    Objects use indentation

    Nested objects are written like YAML: key: value, indented two spaces. No braces, and strings are only quoted when they have to be.

  3. 3

    Honest comparison

    Tokens are counted for pretty JSON, minified JSON and TOON. If TOON isn’t smaller than minified JSON for your data, the tool says so.

  4. 4

    Converts back exactly

    Switch to TOON → JSON to decode. Array lengths and row counts in the header are checked, so a truncated or edited TOON block shows an error instead of silently losing data.

Questions, answered

TOON (Token-Oriented Object Notation) is an open, MIT-licensed format that encodes the same data as JSON with fewer tokens. It mixes YAML-style indentation for objects with CSV-style rows for uniform arrays.

Popular uses