TOON Input

CSV Output

What Is TOON to CSV?

You asked an LLM to return structured data in TOON (Token-Oriented Object Notation) — compact and token-efficient compared to JSON. Now you need it in a spreadsheet. CSV is tabular — rows and columns — and opens directly in Excel or Google Sheets. This converter flattens repeated TOON records into CSV rows, making it easy to analyse, filter, or import. The RFC 4180 standard defines the CSV format widely used in data pipelines. Unlike YAML or TOML, TOON is token-oriented — making it ideal as an LLM output format before converting to CSV.

The TOON is read and flattened into comma-separated rows by code running in this tab, so model output that contains customer records or internal IDs stays on your machine. A repeated block in TOON, such as a list of objects, turns into one CSV row per item. Want JSON rather than a spreadsheet? Use TOON to JSON.

TOON to CSV Examples

Convert TOON to CSV. Telecom-themed example:

Example: Subscriber records

TOON Input

CSV output:

CSV Output

Click the Sample button above to load more examples into the editor.

How to Use This Tool

1

Paste or Upload TOON

Paste the TOON your model returned into the left pane, or open a saved .toon or .txt file with Upload. Sample drops in a small record set if you just want to see how the columns come out. TOON that will not parse gives you an error message rather than a half-built table.

2

View CSV Output

CSV appears on the right. Every repeated item turns into one line of the file, with the keys supplying the header line; nested objects may be spread across extra columns. How wide the result gets depends on the shape of your TOON.

3

Copy or Download

Grab the rows with Copy, or save a file for Excel with Download. For JSON output, use TOON to JSON. For TOON formatting, use TOON Formatter.

When you receive TOON from an LLM or AI system with a list of records (e.g. search results, extracted data), converting to CSV lets you open it in Excel or Google Sheets for analysis, sharing, or importing into other systems. The RFC 4180 defines CSV format. ETL pipelines and reporting workflows often expect CSV.

When you receive TOON from an LLM or AI system with a list of records (e.g. search results, extracted data), converting to CSV lets you open it in Excel or Google Sheets for analysis, sharing, or importing into other systems. The RFC 4180 defines CSV format. ETL pipelines and reporting workflows often expect CSV.

Frequently Asked Questions

How is nesting handled?

Repeated items (arrays of objects) flatten to rows. Nested objects may become columns or concatenated values. The exact structure depends on your TOON.

Is my data private?

Yes. Turning TOON into CSV happens in your browser, and the records are not posted to any server along the way.

TOON vs CSV?

TOON is hierarchical. CSV is tabular. Use this tool when your source is TOON but you need spreadsheet-friendly output.

Can I convert to JSON instead?

Yes. Use TOON to JSON for JSON output. For JSON to CSV, use JSON to CSV.

What if my TOON has no repeated items?

A single object becomes a single row. Nested keys may become column headers. For flat key-value data, you get one row.

Related Tools

TOON. RFC 4180 CSV. JSON spec. MDN. YAML. GitHub.