TOML to JSON

Convert TOML to JSON format

About TOML to JSON

TOML to JSON parses simple TOML — [section] headers and key = value pairs, one level deep — into a JSON object, entirely in your browser — nothing is uploaded to a server. It doesn't support nested tables (like [section.subsection]), arrays, multi-line strings, or TOML's native date/time literals, so more advanced TOML files won't convert correctly.

How to use TOML to JSON

  1. 1Paste simple, single-level TOML into the input box.
  2. 2Click 'Convert' to parse [section] headers and key = value pairs into JSON.
  3. 3Review the output, especially for nested tables, arrays, or dates.
  4. 4Click 'Copy' to copy the JSON to your clipboard.

Frequently Asked Questions

Is TOML to JSON free to use?

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

Does it support nested tables, like [section.subsection]?

No — only one level of [section] headers is recognized; dotted or nested table headers aren't parsed into nested JSON objects.

Does it support TOML arrays or date/time values?

No — arrays (key = [1, 2, 3]) and TOML's native date/time literals aren't parsed specially; they'll come through as unparsed text rather than proper JSON arrays or dates.

Can I download the JSON as a file?

No, there's only a 'Copy' button — paste the copied text into a file yourself if you need one.

Tips & Tricks

  • Works best on simple, flat TOML with basic key = value pairs and single-level [section] headers.
  • For nested tables, arrays, or advanced TOML features, use a dedicated TOML parser library instead.
  • Numbers are auto-detected and converted to JSON numbers; quoted string values have their surrounding double quotes stripped.
  • Review the output carefully for any file using TOML features beyond simple flat key-value pairs.