TOML → CSV Converter
Convert TOML to CSV locally. The root must contain an array of tables; TOML datetimes become ISO-8601 strings.
Required TOML structure
CSV is a flat, tabular format. The converter expects your TOML to contain an array of tables at the top level — each table in the array becomes one CSV row, and the table keys become column headers. TOML's [[array-of-tables]] syntax is the idiomatic way to express this.
Input
[[users]] id = 1 name = "Alice" email = "[email protected]" active = true [[users]] id = 2 name = "Bob" email = "[email protected]" active = false
Output
id,name,email,active 1,Alice,[email protected],true 2,Bob,[email protected],false
Warning: If your TOML root is a plain table (not an array of tables), the converter will fail. Wrap your data in
[[table-name]] blocks or restructure it as an array.Type handling
| TOML type | CSV cell | Notes |
|---|---|---|
| String | value | Unquoted unless it contains comma or newline |
| Integer | 42 | Rendered as-is |
| Float | 3.14 | Rendered as-is |
| Boolean | true / false | Lowercase string |
| Datetime | 2024-01-15T10:30:00Z | ISO-8601 string |
| Array | (serialised JSON) | Arrays stringified — flatten first |
| Sub-table | (serialised JSON) | Nested tables stringified — flatten first |
| null | (not supported) | TOML has no null — use empty string or omit |
Note: TOML datetimes become ISO-8601 strings (e.g.
2024-01-15T10:30:00Z) in the CSV output. Most spreadsheet apps recognise this format and parse it automatically as a date.Frequently Asked Questions
Your files stay on your computer. Dad promised.