DT Dev Tools

TOON to CSV

Convert TOON (Token-Oriented Object Notation) tabular arrays to CSV online. Pick the table and delimiter, flatten nested fields and open in Excel. Free and private.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

Advertisement

From TOON tables to CSV

TOON (Token-Oriented Object Notation) is closer to CSV than any other JSON encoding. Its signature feature, the tabular array, declares a length and a header once β€” products[3]{sku,name,price}: β€” and then lists one comma-separated row per line. That is why TOON is so token-efficient for LLM prompts and responses. But a TOON table is not a CSV file: it is indented, nested inside a document, and can use quotes, tabs or pipes according to its own rules. This converter decodes the TOON with the official library, finds the arrays inside it and writes a clean, RFC 4180-style CSV you can open in Excel, Google Sheets, LibreOffice or import into a database.

A typical workflow is asking a model to extract records β€” leads, invoices, products, test cases β€” in TOON to save tokens, then exporting the result here for analysis or bulk upload.

Choosing the table and handling nesting

A TOON document may hold several arrays, such as friends and hikes in the sample. The Table list shows every array by its dotted path; the first one is selected by default. Rows that are objects contribute their keys as columns; nested objects are flattened into dotted names like owner.email, while nested arrays are kept as JSON text in one cell so no data is lost. When rows have different keys, the header is the union of all of them and missing cells stay empty. A list of plain values becomes a single value column.

Delimiters and spreadsheet tips

Comma is the standard, but Excel in many European locales expects a semicolon, so switch the delimiter if columns end up merged. Tab and pipe are also available. Fields containing the delimiter, quotes or line breaks are quoted and escaped automatically. Keep Strict mode on to make sure the row count matches the declared [N] before you trust a model's export. For the reverse direction or a JSON view, see CSV to JSON and TOON to JSON; other targets are TOON to YAML and TOON to XML. Everything runs locally in your browser.

How to use

  1. Paste TOONPaste TOON with a tabular array such as items[N]{a,b}:, or click Load sample.
  2. Pick the tableIf the document has several arrays, choose which one to export and pick a delimiter.
  3. Download the CSVCopy the CSV or download it and open it in Excel, Google Sheets or a database.

Frequently asked questions

Which part of the TOON becomes CSV?
An array. The first array of objects (a TOON table) is used by default; when the document contains several (for example users and orders), pick one in the Table list. A single top-level object becomes one row.
How are nested objects handled?
They are flattened into dotted column names such as address.city. Nested arrays are written as JSON text in a single cell.
What if rows have different fields?
Columns are the union of all fields in order of first appearance; missing values are left empty.
Is my data uploaded?
No. Decoding and CSV generation run entirely in your browser.
Advertisement