TOML to CSV Converter
Convert TOML to CSV format
TOML Input
CSV Output
Paste your TOML on the left and the CSV shows up here.
Or drop a file on this box, , or .
What is TOML to CSV Converter?
Some TOML files are really tables in disguise: a list of [[users]], [[servers]] or [[package]] blocks, each with the same handful of keys. That shape maps neatly onto CSV, one block per row and one key per column, and this page does exactly that conversion so the data can be sorted and filtered in a spreadsheet.
The parser follows the TOML v1.0.0 specification, then looks for the first array of tables in the document, searching nested tables too, so [[store.items]] is found as well as [[items]]. Columns are collected from every block in that array, not just the first one: a key that only the third block defines still earns a column, left blank in the first two rows. Column order follows where each key is first seen.
A file made only of [section] tables and keys, with no [[...]] block at all, has no rows to give, and the output pane says so instead of guessing at a layout.
What Makes This Tool Different
Tabular Conversion
Converts TOML tables and arrays to CSV rows. Perfect for exporting configuration data to spreadsheets.
Real-Time Conversion
See CSV output as you type or paste TOML. No waiting, no delays – immediate results.
File Upload Support
Upload TOML files directly. No need to copy-paste – just select your .toml file.
Download CSV
One click to download your converted CSV file. Open it in Excel, Google Sheets, or any spreadsheet app.
Standards Compliant
Follows RFC 4180 CSV specification. Generated CSV works with any spreadsheet application.
Privacy First
Parsing and CSV writing both happen in the tab you have open, with no request to a server in between, so an internal inventory file is safe to run through it.
How It Works
Follow these steps to convert TOML to CSV.
Paste or Upload TOML
Paste TOML on the left or Upload a .toml file; if the uploaded file is not valid TOML you get a popup saying so, and whatever was in the editor stays put. Sample loads three [[users]] blocks for Lysander, Cordelia and Barnabas with name, email, age, city and an active flag.
View CSV Output
The CSV on the right is rebuilt shortly after you stop typing. For the sample, the first line is name,email,age,city,active and each person follows on a row of their own, with false written as plain text in the active column. A city like "Portland, OR" would be wrapped in double quotes, and any quote characters inside a cell are doubled, so spreadsheets split the columns correctly.
Copy or Download
"Copy" puts the CSV on the clipboard, and "Download" saves it as a .csv file you can drop into your project.
When You'd Actually Use This
Data Analysis
Your deploy tooling keeps a [[hosts]] list with region, size and owner for each machine. Turn it into CSV, open it in a spreadsheet and you can sort by region or count machines per owner in a minute, which is awkward to do by reading the TOML.
Spreadsheet Import
Export TOML data to CSV for importing into spreadsheets. Perfect for sharing configuration data with non-developers.
Data Migration
Convert TOML to CSV for importing into databases or data systems. Perfect for migrating configuration data between systems.
Format Conversion
Convert TOML to CSV for use in systems that require CSV format. Perfect for data transformation workflows.
Common Questions
Is my TOML data stored?
No. This page turns TOML into CSV with JavaScript that runs locally, and neither the TOML nor the CSV is saved or sent to a server.
How are TOML tables converted?
The converter looks for the first array of tables, the [[name]] sections, anywhere in the file (so [[store.items]] works too). Every table in that array turns into one CSV row, and its keys are used as the column names. Plain value arrays like tags = ["a", "b"] are skipped when looking for rows.
Does it preserve all data?
Only the rows of that first array of tables end up in the CSV; other tables and top-level keys are not included, because CSV is one flat table. Inside a row, nested tables and arrays are written as JSON text in a single cell, dates keep their TOML form, and 64-bit integers keep every digit.
Can I convert CSV back to TOML?
Not in one step, there's no direct CSV to TOML page. Go through JSON: the CSV to JSON converter gives you an array, wrap it in a key (for example {"items": [...]}), then paste it into JSON to TOML to get [[items]] tables.
Does it work with large TOML files?
Within reason. The whole file is parsed on every pause in typing, so a few thousand [[rows]] convert quickly on a normal laptop. Very large exports are better pasted once and downloaded than edited in the left pane, where every change triggers a fresh parse.
Is the CSV valid?
Yes! The generated CSV follows RFC 4180 specification and is valid CSV. It works with any spreadsheet application.
Other TOML Tools You Might Need
If the file will not parse, or you need its non-tabular parts in another format, these pages pick up where the CSV export stops.