JSON ⇄ TOON Converter

Convert between JSON and TOON (Token-Oriented Object Notation) format. TOON reduces LLM token usage by 30-60% for structured data while maintaining readability.

Switch between JSON to TOON or TOON to JSON conversion

JSON Input
Loading...
Options

Tab delimiter often saves more tokens

TOON Output
Loading...

JSON TOKENS

0

TOON TOKENS

0

SAVED

0%

About TOON Format

TOON (Token-Oriented Object Notation) is a compact, human-readable format designed for LLM prompts. It achieves 30-60% token savings compared to JSON while maintaining structure and readability.

  • Token Efficient: Removes redundant punctuation and declares array structures once
  • LLM-Friendly: Explicit lengths and fields enable better validation
  • Tabular Arrays: Perfect for uniform data structures like user lists or analytics
  • Indentation-Based: YAML-like structure with minimal syntax

About JSON ⇄ TOON Converter

Sending JSON to a language model is expensive in tokens. Every object repeats its keys, and every bracket, quote, and comma counts. TOON (Token-Oriented Object Notation) keeps the same data but lays it out so that repeated structure is written once, which is why it can substantially cut the token count of structured payloads while staying readable to a human reviewing the prompt.

This converter goes both ways. Paste JSON to get TOON you can drop into a prompt, or paste TOON to recover the original JSON your application expects. Because the round trip is lossless, you can store or transmit data as compact TOON and convert back to JSON at the boundary where your code needs it.

It runs in your browser, so nothing you paste is uploaded. That makes it safe for real request and response payloads, including ones with data you'd rather not send to a third-party service just to reformat it.

How to use JSON ⇄ TOON Converter

  1. Pick a direction

    Decide whether you're going JSON to TOON (to shrink a prompt) or TOON back to JSON (to feed your application).

  2. Paste your input

    Drop a JSON object or array, or a TOON document, into the input. A valid document converts; malformed input is reported so you can fix it.

  3. Review the converted output

    Read the result to confirm the structure survived the round trip — especially nested objects and arrays.

  4. Copy it where you need it

    Use the TOON in your LLM prompt to save tokens, or paste the JSON into your code or API request.

Frequently asked questions