Skip to content
FileConvertora

Free JSON to TOML

Convert JSON to TOML for Python, Rust and Hugo configuration files.

Runs on your device

What to do next

How to use JSON to TOML

  1. 1

    Paste JSON or drop a .json file.

  2. 2

    The TOML appears as you type; set the indent or sort the keys if you like.

  3. 3

    Copy the TOML or download it as a file.

JSON to TOML converts JSON into TOML, the config format used by Python (pyproject.toml), Rust (Cargo.toml), Hugo and many other tools. Nested objects become [tables], ready to paste into a config file.

TOML has no null value, so empty values are left out, and FileConvertora tells you when that happens.

Top level

A TOML file starts with named values, not a list. If your JSON is a list, it’s placed under an items key.

Readability

Simple values come first and tables after them, in the order TOML expects, so the result reads like a hand-written config.

FormatLooks likeUsed forNotes
JSONBraces and quotesAPIs, web apps, configStrict: no comments
TOMLKey = value and [sections]Config files (Rust, Python pyproject)Easy to read, comments allowed

  • Move data from a JSON source into a tool that expects TOML.
  • Check how JSON data looks in TOML before using it in a config or an import.

  • The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
  • Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.

It says the input is invalid
The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
Nested data looks flat
CSV can’t hold nested objects; nested values are joined into column names like address.city.

Questions

What happens to null values?

TOML has no null, so those keys are left out, and FileConvertora tells you when that happens.

Is my data uploaded?

No. Everything is converted in your browser, so private config files and data stay on your device.

Something not working, or a question that isn’t here? Tell us about it

Popular conversions

More file tools

See all 28