TOML to JSON Converter
Convert a TOML file like Cargo.toml or pyproject.toml to JSON, or JSON to TOML. If the TOML has an error, you see its line number.
0 characters0 bytes
0 characters0 bytes
TOML dates and times become strings in JSON. TOML has no null value.
How to Use It
- Choose the direction.
- Paste the TOML or the JSON.
- Copy the output, or read the error with its line number.
Questions and Answers
What is TOML?
A simple format for config files, used by Cargo (Rust), pyproject.toml (Python), and Hugo.
Good to Know
TOML 1.0. Comments do not survive in JSON. Dates and times become strings, and inf and nan become null in JSON. Integers larger than 2 to the 53rd are rounded.
Related Tools
- JSON and YAML ConverterConvert JSON to YAML or YAML to JSON. Several YAML documents become one JSON array.
- JSON Formatter and ValidatorPretty-print or minify JSON, or find its errors with the line and column.
- YAML Formatter and ValidatorFormat YAML with even indentation or check that it is valid. Comments stay, and an error shows its line and column.
Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)