Loading formatter...

How to Format TOON Data - Step by Step Guide

Step 1

Input Your TOON Data

Start by inputting the TOON data you want to format. The formatter will beautify it with your chosen options:

Paste directly: Copy your TOON data and paste it into the editor
Upload a file: Click "Upload" to select a .toon file from your computer
Try the sample: Click "Sample" to load example TOON data
Step 2

Choose Format Options

Customize your TOON formatting with powerful options:

Delimiter selection: Choose between comma, tab, or pipe delimiters
Length marker: Add or remove the # prefix in array length markers
Indentation: Set 2-space or 4-space indentation
Real-time preview: See formatted output instantly as you adjust options

Example: Format Options in Action

Same data with different delimiters:

Comma delimiter:

subscribers[3]{id,name,plan}:
  1,Sarah Mitchell,Unlimited 5G

Tab delimiter:

subscribers[3	]{id	name	plan}:
  1	Sarah Mitchell	Unlimited 5G
Step 3

Export Your Formatted TOON

Get your beautifully formatted TOON data ready for use:

Copy to clipboard: One-click copying for quick use
Download as file: Save as .toon file with your chosen formatting
Automatic formatting: Changes apply instantly as you adjust options

Frequently Asked Questions

What is the difference between delimiter options?

Comma is the default and most common in TOON format. Tab delimiter often tokenizes better for LLMs and reduces quote-escaping needs. Pipe delimiter is useful when your data contains many commas, similar to CSV standards. The formatter lets you easily switch between them for optimal token efficiency.

What does the length marker option do?

The length marker adds an optional # prefix to emphasize that the bracketed value is a count, not an index. For example, [3] becomes [#3]. Both are valid TOON formats.

Can I convert between different TOON delimiter types?

Yes! That's one of the main features. Input TOON with comma delimiters and convert to tab or pipe delimiters instantly. The formatter validates and reformats your data automatically.

Does formatting change my data?

No! The formatter only changes the presentation (delimiter, spacing, markers) but preserves all your data values and structure. It's completely safe to reformat TOON data.

What indentation should I use?

2 spaces is the TOON standard and most common. Use 4 spaces if that matches your team's coding standards or if you prefer more visible indentation. Both are valid.

Is the TOON formatter free?

Yes, completely free with no limitations. Format unlimited TOON files with all options available. Also check out our JSON to TOON, TOON to JSON, and TOON Validator tools.