JSON to TOML

Convert JSON to TOML format

About JSON to TOML

JSON to TOML converts a flat or one-level-nested JSON object into TOML text, entirely in your browser — nothing is uploaded to a server. One level of nested objects correctly becomes a TOML table section, but JSON arrays are mishandled — converted into numbered keys instead of a proper TOML array — and objects nested two or more levels deep produce invalid, literal object-text rather than valid TOML.

How to use JSON to TOML

  1. 1Paste a flat or one-level-nested JSON object into the input box.
  2. 2Click 'Convert' to generate TOML text.
  3. 3Review the output carefully, especially for arrays or deeply nested values.
  4. 4Click 'Copy' to copy the result to your clipboard.

Frequently Asked Questions

Is JSON to TOML free to use?

Yes, it's completely free with no signup required.

Does it convert JSON arrays correctly?

No — array values are converted into numbered keys (0, 1, 2, ...) inside a table instead of proper TOML array syntax like tags = ["a", "b"].

Does it handle deeply nested JSON?

Only one level of nesting converts correctly into a TOML table. Objects nested two or more levels deep produce invalid output instead of valid TOML.

Is my data uploaded to a server?

No, conversion happens entirely in your browser.

Tips & Tricks

  • Stick to flat JSON, or JSON with at most one level of nested objects, for reliable results.
  • Avoid JSON arrays in your input, since they're not converted into valid TOML array syntax — rewrite them by hand afterward.
  • For deeply nested JSON, flatten or restructure it before converting, since anything past one level of nesting won't convert correctly.
  • Always validate the output with a TOML linter or parser before using it in a real configuration file.