TB
Developer

JSON to TOON Converter

Convert JSON to TOON (Token-Oriented Object Notation) — a compact format that cuts LLM prompt token costs by 30–60%.

JSON Input
Documentation

How to Use

1

Paste your JSON

Paste any valid JSON — an API response, config, or data payload you want to include in an LLM prompt.

2

Convert

Click Convert to TOON. The tool encodes your data using TOON's compact syntax.

3

See the savings

View the estimated token reduction and copy the TOON output to use in your prompt.

Pro Tips
TOON uses tabular format for arrays of objects with identical keys — the biggest savings come here
All transformations are lossless: TOON can round-trip back to JSON
Ideal for passing structured data in system prompts or RAG contexts

Examples

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

Related Tools