YAML to TOON Converter

Transform your YAML data into the clean, token-efficient TOON format.

How to Use YAML to TOON Converter

Converting your YAML to TOON format is simple and straightforward. Follow these steps:

  1. Paste Your YAML: Copy your YAML data and paste it into the Input YAML editor on the left side.
  2. Choose Delimiter: Select your preferred delimiter character (Comma, Pipe, or Tab) from the dropdown menu. This determines how values are separated in arrays.
  3. Set Indentation: Choose the indentation style - 2 spaces for compact output, 4 spaces for better readability, or 0 for minified format.
  4. Optional Length Markers: Enable the "Show Length Markers" toggle to add character count at the end of each line (useful for debugging).
  5. Convert Automatically: The tool auto-converts as you type or change settings. You can also click the "Convert to TOON" button for manual conversion.
  6. Review Results: Check the TOON Output on the right side to see your converted data.
  7. Copy Output: Click the "Copy" button to copy the TOON-formatted text to your clipboard.

What is TOON Format?

TOON (Token-Oriented Object Notation) is a revolutionary data format specifically designed to optimize data transmission to Large Language Models (LLMs).

Unlike traditional YAML or JSON, TOON eliminates unnecessary syntax overhead like quotation marks, brackets, and verbose formatting. It uses a compact, human-readable structure that reduces token consumption by 30-60% while maintaining complete data integrity.

Example Comparison:

YAML (35 tokens):

person:
  firstName: John
  lastName: Doe
  age: 30
  isStudent: false
  city: New York

TOON (22 tokens - 37.1% saved!):

firstName: John
lastName: Doe
age: 30
isStudent: false
city: New York

TOON is perfect for applications where token efficiency matters - API costs, context window limits, and faster response times. It's fully compatible with all major LLMs including GPT-4, Claude, Gemini, and more.