Local StudioDEVELOPER TOOLS

TOML to JSON

Convert TOML tables, arrays and values into JSON while preserving their structure and order within arrays.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
TOML to JSON showing the converted server array with a date and a quoted Boolean-looking value.
The sample keeps both server objects in order. The date and the quoted Boolean-looking value are JSON strings.

How to Convert TOML to JSON

  1. Open the HTML, review Security Check, then select Continue.
  2. Paste TOML 1.0, open a UTF-8 .toml file up to 1 MiB, or choose Open Sample.
  3. Choose two spaces, four spaces or compact JSON and select Convert to JSON. Dates and times become ISO strings. Unsafe integers and nonfinite values are rejected.
  4. Review the JSON and choose Copy JSON or Download JSON. Use the download for byte-precise file output.

Preserve Tables, Arrays and Values

  • Preserve nested tables, dotted keys and ordered arrays of tables.
  • Use ISO temporal strings without local timezone conversion.
  • See a line and column when TOML or an exact numeric conversion fails.

Formats and Compatibility

InputPaste TOML 1.0 or select one UTF-8 .toml file up to 1 MiB. Choose two spaces, four spaces or compact JSON.
OutputReview the formatted JSON and the count of dates and times converted to strings. Copy or download the full JSON result.
BrowserA modern browser with local file support.
ScopeConvert one UTF-8 TOML 1.0 document up to 1 MiB into JSON. Dates and times become ISO strings. Unsafe integers and nonfinite numbers are rejected.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Convert TOML to JSON without uploading files. The browser-based tool works offline with no upload.

Select Open Sample to see the workflow with the included example.

Dates, Times and Numbers

All four TOML date and time types become ISO strings. Local values keep their local form, and offset values retain their numeric offset. Integers outside ±9,007,199,254,740,991 and nonfinite numbers are rejected.

Review and Save the JSON

The sample preserves the order of two servers, the date as text and the quoted string "false". Comments and TOML formatting stay in the source file.

Frequently Asked Questions

How do I convert TOML to JSON offline?

Get the TOML to JSON download, extract the ZIP and open TOMLToJSON.html. The free TOML to JSON tool includes a local sample.

Can I convert TOML to JSON in browser?

Yes. The local TOML to JSON workbench reads the source and writes JSON on your device.

Can I convert TOML to JSON online?

Open the hosted TOML to JSON browser tool. Conversion takes place on your device.

How are dates and times represented?

They become ISO strings. An offset remains as supplied, local times stay local, and fractional seconds keep their digits.

What happens to integers and floating-point values?

Integers within the JavaScript safe range become JSON numbers. Larger integers, inf, nan, and floats that overflow or underflow to zero are rejected. Finite floats follow binary64 precision.

How much TOML can I open?

Use one UTF-8 TOML 1.0 document up to 1 MiB. JSON output is limited to 8 MiB. Compact JSON reduces indentation overhead.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.