Skip to content

JSON to TOON

Rewrite JSON as compact TOON to save tokens in an AI chat, or turn TOON back into JSON.

Processed on your device. Nothing is uploadedHow to check

Try a sample file:

You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).

Pasted text stays in this tab and is never sent anywhere.

TOON (Token-Oriented Object Notation) is an open format that writes the same data as JSON with fewer tokens. It saves the most on lists of objects with the same keys: instead of repeating every key for every item, TOON writes one header line with the field names and then one row per item. Paste JSON or open a .json file to get TOON before you paste the data into ChatGPT, Claude or Gemini, or paste TOON to get JSON back. The token count before and after, and the saving in percent, are shown beside the result. The conversion runs in your browser; nothing is uploaded or sent to any AI service.

Why use JSON to TOON

  • Private

    Your data is converted by your own browser and never sent to a server or to an AI service.

  • Saving shown

    See the tokens before and after and the saving in percent, counted with the same tokenizer as the token counter.

  • Works offline

    After your first conversion, the converter keeps working without an internet connection.

How it works: convert JSON to TOON

  1. Paste or open your data

    Paste JSON or TOON into the box, choose a .json file, or try a sample.

  2. Pick the direction

    Choose JSON to TOON, or TOON to JSON to turn TOON back into JSON.

  3. Compare the tokens

    The result appears with the token count before and after and the saving in percent.

  4. Copy or download

    Click Copy to paste it into an AI chat, or download it as a .toon or .json file.

What JSON to TOON handles

  • Input: pasted JSON or TOON, or a .json file.
  • Both directions: JSON to TOON and TOON back to JSON.
  • Lists of objects with the same keys, written as a header line and one row per item.
  • Token counts before and after, counted with the same tokenizer as the token counter.
  • Errors: invalid JSON or TOON shows its error instead of a result.

JSON to TOON: what it can't do

  • The saving depends on the data's shape: deeply nested or irregular data saves little, sometimes nothing.
  • TOON is new and not every tool reads it, so say it is TOON when you paste it into a chat.
  • Counts for Claude, Gemini and other models are estimates, because each model uses its own tokenizer.

JSON to TOON: questions

Is my text uploaded?
No. The JSON or TOON you paste stays in this tab and is converted by your own browser; it is never sent to a server or to any AI service. Nothing is saved on the site: no share links and no history.
What is TOON?
Token-Oriented Object Notation, an open format for the same data as JSON with less repetition. A list of objects with the same keys becomes one header line with the field names, then one row of values per item, so the keys are written once instead of for every item.
How much does TOON save?
It depends on the data. Long lists of records with the same keys often save a large share of the tokens; deeply nested or irregular data saves little, sometimes nothing. The page shows the counts before and after, so you can see the real saving for your data.
Will an AI chat understand TOON?
TOON is new, and not every tool reads it. When you paste it into ChatGPT, Claude or Gemini, say that the data is in TOON format; the header line with the field names makes it easy to follow.
Can I turn TOON back into JSON?
Yes. Choose TOON to JSON, paste the TOON and copy the JSON or download it as a .json file.
What if my JSON has a mistake?
The converter shows the error instead of a result. The JSON viewer points to the line with the problem so you can fix it.
Can I hide names and emails in the data first?
Yes. Mask data hides names, emails, phone numbers and IDs in CSV, Excel, JSON and text files, so you can mask the JSON before converting it.
How do I convert JSON to TOON?
Paste the JSON into OpenAnyDoc's JSON to TOON converter, choose JSON to TOON, and copy the result or download a .toon file; the token count before and after is shown. The conversion runs in your browser, so the data is not uploaded.

Why it's private: your files never leave your browser

Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.

How we tell you about new features

Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.