Json2Toon App Icon

Json2Toon

Convert JSON to TOON and back. Seamlessly. A thoughtfully designed utility for Apple's ecosystem with syntax highlighting, token visualization, and quick clipboard access.

iOS iPadOS macOS visionOS
Get it for free on the App Store
Get it for free on the App Store

What is TOON? Token-Oriented Object Notation (TOON) is a compact, human-readable encoding of the JSON data model designed for LLM input. It combines YAML's indentation-based structure with CSV-style tabular arrays to minimize tokens while maintaining clarity. TOON achieves better accuracy with fewer tokens than JSON or YAML, making it ideal for cost-effective AI workflows.

Read more about TOON here

Token Count
TOON 2,744 tokens
JSON 4,545 tokens
LLM Accuracy
TOON 73.9%
JSON 69.7%
Efficiency
TOON 26.9 acc/1K
JSON 15.3 acc/1K
Structural Validation
TOON 70.0%
JSON 50.0%
Json2Toon App Interface

Effortless data transformation, beautifully designed. Json2Toon offers an elegant native interface with support for mixed content parsing, making it useful for AI workflows and prompt engineering. Syntax highlighting helps you see data structure clearly, while the built-in tokenizer tracks token counts to optimize for LLM efficiency.

Syntax Highlighting

Multiple syntax themes. Choose from a variety of professionally designed color schemes to match your preferences and enhance readability.

Real-time token counting. See exactly how many tokens your data uses, helping you optimize for LLM efficiency and stay within API limits.

Build powerful automation workflows. Seamlessly integrate Json2Toon into your Shortcuts, creating intelligent pipelines that transform data between your apps. Chain conversions with AI tools and other actions to create sophisticated workflows that save time and boost productivity.

Apple Shortcuts on iPad
Recruitment Shortcut Example

Recruitment & Hiring. This shortcut takes a job candidate's data in JSON format, combines it with a job description, converts both to TOON using Json2Toon, and sends the compact data to an AI prompt. The AI analyzes the candidate and decides whether to interview or reject. By converting to TOON first, you save tokens and get more reliable AI responses when processing structured data.

macOS

Convert at the speed of thought. Access Json2Toon instantly through Spotlight without ever leaving your current task. Simply invoke Spotlight, type your command, and transform your data in seconds. Stay in your flow while the app works its magic in the background.

macOS

Transform data anywhere, instantly. Json2Toon integrates directly into your system-wide Services menu. Select text in any application, access the Services menu, and watch your data transform in place. It's conversion that works everywhere you do.

Services Menu

Frequently Asked Questions

What is Json2Toon?

Json2Toon is a bidirectional converter between JSON and TOON formats. TOON is a human-readable data format that's easier to read and edit than JSON, especially for complex nested structures. You can convert JSON to TOON for readability, or convert TOON back to JSON for use in APIs and applications.

Available on iOS, iPadOS, macOS, and visionOS.

When should I not use TOON?

TOON excels with uniform arrays of objects, but there are cases where other formats are better:

  • Deeply nested or non-uniform structures: JSON-compact often uses fewer tokens.
  • Semi-uniform arrays: Token savings diminish. Prefer JSON if your pipelines already rely on it.
  • Pure tabular data: CSV is smaller than TOON for flat tables, though TOON adds structure that improves LLM reliability.
  • Latency-critical applications: Some deployments may process compact JSON faster despite TOON's lower token count.

How do I convert JSON to TOON?

There are several ways:

  1. Paste: Click the Paste button or press ⇧⌘V while in JSON view
  2. Type/Edit: Directly edit text in the JSON editor
  3. Switch Views: Use the segmented picker at the top to switch from JSON to TOON view (auto-converts)
  4. Keyboard: Press ⌘] to switch to TOON view

The conversion happens automatically when you switch to the TOON view.

How do I convert TOON back to JSON?

Converting TOON to JSON is just as easy:

  1. Switch Views: Click JSON in the segmented picker or press ⌘[
  2. Auto-Convert: The app automatically converts TOON to JSON when switching views
  3. Copy Result: Use the Copy button or press ⇧⌘C in TOON view to copy the result

The app preserves your data structure during round-trip conversions.

Can I process mixed content (text with embedded JSON)?

Yes! Json2Toon intelligently handles mixed content:

  • Detects JSON blocks within regular text using brace/bracket matching
  • Detects TOON blocks using pattern recognition
  • Preserves surrounding text while converting only the structured data

Simply paste your mixed content, and the app will extract and convert only the JSON or TOON portions, leaving the rest of your text unchanged.

This is perfect for converting data within documentation, emails, or log files.

What is the Tokenizer view?

The Tokenizer is a special view mode that:

  1. Shows Token Count: Displays the total number of tokens in your text (useful for LLM token limits)
  2. Color-Coded Tokens: Each token is highlighted with a unique color for visual distinction
  3. Read-Only: The tokenizer view is for visualization only

Toggle: Click the number icon # in the toolbar or press ⌘T to show/hide the tokenizer.

This feature is particularly useful when working with AI/LLM applications that have token limits.

What does TOON look like?

Simple values:

name: Alice
age: 30
active: true

Lists:

tags[3]: reading,gaming,coding

Objects:

user:
  name: Alice
  email: alice@example.com

Arrays of objects:

users[2]{name,age,city}:
  Alice,25,NYC
  Bob,30,LA

What are the keyboard shortcuts?

Json2Toon supports these keyboard shortcuts on macOS:

Clipboard:

  • ⇧⌘V: Paste JSON from clipboard
  • ⇧⌘C: Copy TOON to clipboard

View Switching:

  • ⌘[: Switch to JSON view
  • ⌘]: Switch to TOON view

Zoom:

  • ⌘+: Zoom in (increase font size)
  • ⌘-: Zoom out (decrease font size)
  • ⌘0: Reset to actual size

Tokenizer:

  • ⌘T: Toggle tokenizer view

How do I change the syntax highlighting theme?

To change the syntax highlighting theme:

  1. Go to View > Syntax Theme in the menu bar (macOS)
  2. Select from available themes:
    • Xcode (default)
    • Atom One Dark
    • GitHub
    • And more...

Your theme preference is saved and will persist across app launches.

Note: Themes are only available in the standard editor view, not in tokenizer mode.

Is my data sent to any servers?

No! Json2Toon is completely offline and private:

  • All conversions happen locally on your device
  • No network requests are made
  • No data collection or analytics
  • No account required

Your data never leaves your device. You can use the app without an internet connection.