JSON to TOML Converter
Convert between JSON and TOML in both directions
What is JSON to TOML Converter?
This JSON and TOML converter translates between the two configuration formats in either direction while preserving nested tables, arrays, and inline tables. It is most often used to migrate API responses or older config files into the TOML favored by the Rust and Python ecosystems, and it runs entirely in your browser.
How to use JSON to TOML Converter
- 1Choose the conversion direction.
- 2Paste the source content.
- 3Copy the result into your target configuration file.
Frequently asked questions
Why can some JSON structures not be converted to TOML?+
TOML has no null value and cannot hold an array at the top level. Adjust the JSON before converting: omit keys instead of setting them to null, and wrap a top-level array inside an object.
What do TOML dates become in JSON?+
Date-times are a native type in TOML but JSON has no date type, so they come out as ISO 8601 strings. Converting back the other way, strip the quotes if you want them to be real TOML dates again.
Related tools
All toolsJSON to YAML Converter
Convert JSON to YAML while preserving the nesting
YAML to JSON Converter
Convert YAML to JSON, multi-document files included
JSON to CSV Converter
Convert a JSON array of objects to CSV, with nested fields flattened automatically
CSV to JSON Converter
Convert CSV to JSON with automatic header and delimiter handling
JSON to TypeScript
Infer TypeScript type definitions from JSON
JSON to Go Struct
Convert JSON to Go structs with json tags filled in