TOML to JSON

Convert a TOML configuration file into JSON data.

Input

Processed on your device

How to convert TOML to JSON

Convert a TOML configuration to JSON for inspection or transfer to a consumer that only reads JSON.

  1. Paste TOML or open the file, then convert.
  2. Compare nested tables, arrays and date values with the source before replacing a configuration.
  3. Select Convert and review the result.
Example input
title = "Field Notes"
quantity = 12
[stock]
in_store = true

Example use

Inspect a project configuration in an application that is set up to visualize JSON objects.

Output and compatibility

JSON has no dedicated TOML datetime, inline-table or comment syntax. Treat the output as parsed values and review datetime and numeric types for your particular app.

Troubleshooting

If parsing fails, check bracketed table names, repeated declarations and quoted keys in the source.

Use JSON Viewer to explore nested results or TOML Formatter to keep the source format.

Frequently asked questions

Does it keep comments?

The JSON represents data, with no TOML comments.

Can I round-trip a TOML date with the original notation?

Check that value. JSON does not have a native TOML date and time type.

Find a tool