Convert TOML to CSV

Turn TOML files into CSV. The first array of tables, such as [[items]], becomes the rows with one column per key.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TOML files on the dialor turn it to pick what to do

A TOML file as a CSV table.The first array of tables becomes the rows, with one column per key.

  1. What you get

    One CSV file. The first array of tables, such as [[items]], becomes the rows, and each key becomes a column.

    A file without an array of tables becomes one row.

  2. Nested values

    Nested tables and lists do not get columns of their own. Each one is written into its cell as JSON text.

  3. When it stops

    If the TOML cannot be parsed, the conversion stops with input_corrupted. The file needs to be valid TOML before it converts.

    There are no options. The same rules apply to every file.

TOML and CSV.What each format is.

The formats

From · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data
To · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data

In your code.The same TOML to CSV conversion through the API, for your app or your agent.

terminal
$ cv convert report.toml report.csv
$ cv convert report.toml report.csv

Questions.What people ask about TOML to CSV.

01OF 04

The first array of tables, such as [[items]]. Each key in it becomes a column.

The whole file becomes one row.

They are written into their cell as JSON text.

The file could not be parsed as TOML. The conversion stops with input_corrupted in that case.

More conversions.Other ways in and out of TOML and CSV.