TOON to CSV Converter
Convert TOON to CSV format
TOON Input
CSV Output
Paste your TOON on the left and the CSV shows up here.
Or drop a file on this box, , or .
What is TOON to CSV Converter?
A TOON (Token-Oriented Object Notation) tabular block is already half a spreadsheet: the header users[3]{id,name,email,role}: names the columns and each indented line under it is one record. No spreadsheet app opens TOON, though, so this page turns that block into plain CSV with a single header row and one line per record that Excel or Google Sheets will open without a fight.
TOON's tabular format is ideal for converting to CSV. Our converter decodes your TOON data, extracts all keys as column headers, and converts each row to a CSV record. Works perfectly with TOON arrays of objects – the most common TOON structure for tabular data.
The decoding and the CSV writing both run in the page, and the rows you paste are not stored. If you get an error such as Expected 2 tabular rows, but got 1, the [N] in the header does not match the lines under it; the TOON Validator is the quickest place to sort that out. When the records carry nested objects you want to keep as structure rather than as text in a cell, TOON to JSON is the better target.
What Makes This Tool Different
Automatic Column Detection
We analyze your TOON array and extract all unique keys automatically. Those become your CSV column headers. Works perfectly with TOON tabular data.
Excel Compatible
The CSV we generate works perfectly with Microsoft Excel, Google Sheets, and other spreadsheet apps. Open it directly without any formatting issues.
Proper CSV Escaping
Values with commas, quotes, or newlines are properly escaped according to CSV standards. Your data stays intact and readable in any spreadsheet application.
File Upload Support
Got a TOON file? Just upload it. Works with .toon and .txt files. No need to copy-paste – just drag and drop or click upload.
Download CSV
One click to download your CSV file. Drop it into any spreadsheet app or use it for data analysis – it's ready to go.
Nested Data Handling
Got nested objects or arrays? We handle them smartly by converting them to JSON strings, preserving the data structure while keeping CSV format valid.
How It Works
Paste or Upload TOON
Put a TOON tabular block in the input editor; Upload accepts .toon and .txt files if the block lives on disk. Sample fills in three Northwind users (Ava Chen, Marcus Okafor, Priya Raman) with id, name, email and role. A document that holds just one list under one key, like users[3]{...}, is unwrapped so that list becomes the rows.
Automatic Conversion
There is no Convert button. A moment after you stop typing, the right panel shows the CSV: the field names from every record are merged into one header line, each record becomes a line, a value with a comma such as "Data, 20GB" gets double quotes, and a missing or null field becomes an empty cell.
Download or Copy
Download saves the result as converted.csv, which opens straight into a spreadsheet; Copy is handier when you are pasting rows into a sheet that is already open. Both refuse to act when the right panel holds an error message instead of CSV, so you never end up with a file that just says Invalid TOON.
When You'd Actually Use This
Data Analysis
Convert TOON data from LLM outputs or APIs to CSV for analysis in Excel. Great for creating pivot tables, charts, or doing calculations on your data.
Excel Import
Import TOON data into Excel or Google Sheets. Many business users prefer working with spreadsheets, and CSV is the universal format for data import.
Data Migration
Migrate TOON data to systems that require CSV format. Many legacy systems, reporting tools, or data warehouses accept CSV imports.
Sharing with Non-Developers
Share TOON data with team members who don't work with code. CSV files open in Excel, making data accessible to everyone without technical knowledge.
Common Questions
Is my TOON data stored?
No. Your rows are read by the @toon-format/toon decoder and turned into CSV by a few lines of script, all inside this tab. Nothing is posted anywhere, so a customer list or a SIM inventory is fine to paste here.
What TOON formats work?
The converter works best with TOON arrays of objects (tabular format). Single objects are also supported. Nested objects are converted to JSON strings.
How are nested objects handled?
Nested objects and arrays are converted to JSON strings in the CSV cells. This preserves the data structure while keeping CSV format valid. You can parse them later if needed.
Can I convert CSV back to TOON?
Not in one step. Run the sheet through CSV to JSON to get an array of objects, then feed that to JSON to TOON, which writes the compact {col1,col2} header form again. Keep in mind that a CSV cell is just text, so a nested object that went out as a JSON string comes back as a string unless you clean it up in between.
What if my TOON has different keys?
The converter collects all unique keys from all objects and creates columns for each. Objects missing certain keys will have empty cells in those columns.
Does it work with large datasets?
A few thousand rows are fine. The work is a single decode plus one pass over the records, so the limit is how much text the editor can hold comfortably. For a really big export, convert it once and use Download rather than scrolling the output panel, which is the slow part on an older laptop.
Other TOON Tools You Might Need
A CSV flattens everything into cells, so these are the pages to reach for when you need the structure back, a different format, or a check before you export: