Input JSON

Loading editor…

TOON

Output initialises when this pane is visible.

How to use

Everything you need to know, one click away.

Quick start get going in seconds
  1. Paste or import JSON in the left pane — the status bar tells you instantly if it's valid.
  2. Click Convert — TOON output appears on the right in real time.
  3. Copy or Download the result from the output toolbar.
TOON output what gets generated
  • Nested objects become indented key blocks — readable without any brackets.
  • Primitive arrays are compacted to arr[n]: v1,v2,v3.
  • Arrays of objects become table blocks: arr[n]{col1,col2}: followed by rows.
  • The root must be a JSON object — TOON is object-rooted by design.
Tips & troubleshooting common questions
  • If JSON is invalid, conversion pauses — the status bar shows exactly what's wrong.
  • If conversion fails, check that arrays don't mix objects and primitives in the same array.
  • Use the search box to find keys or values in large JSON documents.
  • Everything runs locally — nothing is ever uploaded.

Features

Everything this converter can do — all processed locally in your browser.

Live TOON preview

The TOON output updates as you type. Paste your JSON and the compact, indented result appears instantly on the right — no button clicking needed.

Compact, human-readable notation

TOON removes JSON's bracket noise. Nested structures use indentation, primitive arrays collapse to a single line, and object arrays become readable table blocks.

Import from file or URL

Open a .json file from your computer, drag and drop it onto the editor, or fetch JSON directly from any CORS-enabled URL.

Copy or download

Grab the TOON output to your clipboard with one click, or download it as a .toon file — ready to use wherever the format is supported.

100% private, works offline

All conversion happens entirely in your browser. Your JSON never leaves your device, and once loaded the tool works without any network connection.

FAQ

Common questions about the JSON to TOON converter.

Is my JSON data safe?

Yes, completely. Conversion runs entirely inside your browser using JavaScript. Your data is never sent to any server and never stored anywhere outside your own device. You can even disconnect from the internet after the page loads and it will still work.

What is TOON format?

TOON (Token-Oriented Object Notation)

TOON (Token-Oriented Object Notation) is an experimental data serialization format designed to be more compact, token-efficient, and easier for AI systems and humans to process compared to traditional formats like JSON.

Core Idea

Traditional formats such as JSON contain a lot of structural punctuation like braces, commas, and quotation marks. TOON-style formats attempt to reduce this syntactic overhead while preserving structured data.

JSON Example

{
  "name": "John",
  "age": 25,
  "skills": ["JS", "Python"]
}

TOON-style Example

name: John
age: 25
skills[
  JS
  Python
]

Why “Token-Oriented”?

Large Language Models (LLMs) process text as tokens. JSON can become verbose because of repeated punctuation and quoted keys. TOON-style formats aim to reduce token usage, making prompts and structured data more compact for AI workflows.

Main Goals

Lower Token Usage

Reduces unnecessary syntax to save prompt space and improve AI context efficiency.

Better Readability

Minimizes clutter from braces, commas, and quotation marks.

Faster Parsing

Some implementations aim for deterministic parsing and lightweight streaming support.

AI-Friendly Structure

Optimized for agent memory, prompt engineering, and structured AI communication.

TOON vs JSON

Feature JSON TOON-style
Standardized Yes Usually Experimental
Verbosity Higher Lower
LLM Efficiency Moderate High
Browser Support Native Limited
Human Readability Good Often Better
Ecosystem Massive Small / Emerging

Important Note

TOON is not currently a universally standardized format. Different implementations may use different syntax rules and parsing strategies. When working with TOON, it is important to define or reference the specific grammar being used.

Related Formats

Potential Use Cases

  • AI Prompt Compression
  • Agent Memory Storage
  • Structured AI Communication
  • Lightweight Config Formats
  • Data Transformation Tools

What JSON shapes are supported?

The root must be a JSON object (TOON is object-rooted). Inside, all valid JSON types are supported — nested objects, arrays of primitives, and arrays of objects. Mixed arrays (where some elements are objects and others are primitives) are not currently supported and will produce a conversion error.

Does it work offline?

Yes. Once the page has loaded and its assets are cached, all features work without a network connection. The only time the network is used is to load the editor on first visit, and optionally when you use "Load from URL".

Other tools

Load JSON from URL

The URL must allow CORS. Plain JSON only.

Paste JSON

Clipboard access denied. Paste your JSON below.