Dad’s Data formats tools

JSON ↔ TOML Converter

Convert between JSON and TOML — locally, instantly. Root must be an object.

JSON Input
TOML Output

TOML output will appear here.

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

What is TOML?

TOML (Tom's Obvious Minimal Language) was designed for config files that humans edit directly. It's more explicit than YAML, avoids YAML's ambiguities, and maps cleanly to hash tables (objects). Used heavily in Rust projects (Cargo.toml), Python packaging (pyproject.toml), and Hugo site configs.

Input
{"database":{"host":"localhost","port":5432,"name":"mydb"},"server":{"host":"0.0.0.0","port":8080}}
Output
[database]
host = "localhost"
port = 5432
name = "mydb"

[server]
host = "0.0.0.0"
port = 8080

What TOML Can and Cannot Express

JSON typeTOML equivalentNotes
Stringkey = "value"Always double-quoted
Integerkey = 42No quotes
Floatkey = 3.14No quotes
Booleankey = trueLowercase; no quotes
Array of scalarskey = [1, 2, 3]Inline array syntax
Object[section]Section header
Nested object[a.b]Dotted section path
Array of objects[[items]]Array of tables syntax
null❌ Not supportedTOML has no null type
Warning: JSON null has no TOML equivalent. If your JSON contains null values, the conversion will fail. Replace nulls with a sentinel value (0, "", false) before converting.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools