100% Client-Side Processing

Your data never leaves your browser

No uploads
No storage
Instant processing

TOON Converter

Transform JSON, YAML, XML, and CSV into compact TOON format. Reduce data size with real-time token analysis.

TOON Converter

Transform structured data to compact TOON format

Input0 tokens
Output0 tokens
JSON Input
TOON Output

TOON output will appear here...

Example Datasets

What is TOON Format?

TOON (Token-Oriented Object Notation) is a compact, schema-aware data format optimized for LLM prompts. Created by @toon-format, it reduces token count by 30-60% compared to JSON.

1
Schema-aware arrays

[count]{key1,key2}: header with comma-separated rows

2
No redundant syntax

Eliminates curly braces, brackets, colons, and quotes on every row

3
LLM-friendly

Models parse it naturally once they see the pattern

Example Conversion

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

Why Use This Converter?

Real-time Conversion

Instant conversion as you type with live token count

Multi-Format Support

JSON, YAML, XML, and CSV input formats supported

100% Private

All processing happens in your browser. No uploads.

Example Datasets

Try pre-built examples to see the format in action

Supported Input Formats

JSON

JavaScript Object Notation - the most common data format

yml

YAML

Human-friendly data serialization format

</>

XML

Extensible Markup Language for structured data

CSV

Comma-separated values from spreadsheets

Frequently Asked Questions

Does my data leave the browser?

No. All conversion happens locally in your browser. Your data is never sent to any server.

How is token count calculated?

We estimate tokens based on words and special characters. It's an approximation, not an exact count.

When does TOON save the most space?

TOON is most efficient for uniform arrays of objects, where repeated keys can be reduced to a single header row.

Can I convert TOON back to JSON?

This tool focuses on one-way conversion. TOON is designed for human readability and compact storage.