🔄

JSON to TOON Converter

Convert JSON to TOON format to reduce LLM token usage by 30-60%

49% Token Savings
73 tokens → 37 tokens (saved 36)
73 tokens
37 tokens
{
  users:[id|name|email|age]
1|Alice|alice@example.com|28
2|Bob|bob@example.com|34
3|Charlie|charlie@example.com|22,
  metadata:{total:3,page:1}
}

What is TOON Format?

Token-Oriented Object Notation

TOON is a data format designed to minimize token usage when sending data to LLMs. It uses tabular headers for arrays and minimal syntax, reducing tokens by 30-60%.

// JSON (more tokens)
[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]
// TOON (fewer tokens)
[id|name]
1|Alice
2|Bob

Benefits

  • 30-60% fewer tokens = lower API costs
  • Faster processing with less data
  • More context fits in the same token limit
  • Human readable unlike binary formats
  • Lossless conversion back to JSON

Frequently Asked Questions

When should I use TOON?

Use TOON when sending large datasets or repetitive structures to LLMs. It's especially effective for arrays of objects with the same keys.

Does the LLM understand TOON?

Yes! Modern LLMs like GPT-4 and Claude can understand TOON format. Just explain the format in your system prompt or include a brief description.

Is my data secure?

Yes! All conversion happens locally in your browser. Your data never leaves your device.