Dad’s Data formats tools

CSV → TOML Converter

Convert CSV to TOML locally. Rows become an array of tables ([[items]]); TOML does not support null values.

CSV Input
TOML Output

TOML output will appear here.

Paste, upload, or drop a file in the input panel to get started.

Output structure

Each CSV row is converted to a TOML array of tables entry. This is the idiomatic TOML way to express a list of records — and it maps cleanly back to CSV if you ever need to reverse the conversion.

Input
id,name,email,active
1,Alice,[email protected],true
2,Bob,[email protected],false
Output
[[items]]
id = "1"
name = "Alice"
email = "[email protected]"
active = "true"

[[items]]
id = "2"
name = "Bob"
email = "[email protected]"
active = "false"
Note: All CSV values are strings — TOML receives them as quoted strings. TOML has no type inference from CSV input. To get native integers or booleans, convert CSV → JSON first (with type inference), then JSON → TOML.

TOML key requirements

TOML keys have strict naming rules. CSV column headers become TOML keys in each array-of-tables entry. Headers that are valid TOML bare keys (alphanumeric, dashes, underscores) are used directly. Headers that contain spaces or special characters are automatically quoted.

CSV headerTOML keyNotes
namenameBare key — ideal
first_namefirst_nameUnderscore allowed
first-namefirst-nameDash allowed in bare keys
first name"first name"Space → quoted key
email@domain"email@domain"Special char → quoted key
123id"123id"Leading digit → quoted key

TOML limitations

Warning: TOML does not support null values. Empty CSV cells produce empty strings ("") in the TOML output. If your workflow requires optional fields, use YAML or JSON as the target format instead — both support null natively.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools