How to use
- Paste the source, open a UTF-8 file or try the Sample.
- Choose the options and run the conversion or enable Auto run.
- Review the result, then copy a selection or download the complete text.
TOML to JSON Converter
Paste a valid TOML configuration. Tables become objects, arrays of tables become arrays, and base-prefixed integers become exact decimal JSON tokens. Floating-point literals retain their decimal text.
Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.
Input and processing
Dates and times become strings using the original literal text, including fractional precision and offset. The output indentation can be two or four spaces.
title = "DevToolsy"
id = 9223372036854775807
[server]
host = "127.0.0.1"
ports = [3000, 8080]{
"title": "DevToolsy",
"id": 9223372036854775807,
"server": {
"host": "127.0.0.1",
"ports": [
3000,
8080
]
}
}This example uses the default settings.
Result and limitations
JSON has no TOML date types, comments, inf or nan. Non-finite values are rejected. A conversion back to TOML cannot recover comments or infer whether a string originally represented a date.
Using the output
Review the result, then copy a selection or download the complete text.
UTF-8 input up to 1 MiB; output up to 8 MiB. Processing stops after 30 seconds.
Frequently asked questions
How are tables and numbers converted?
Paste a valid TOML configuration. Tables become objects, arrays of tables become arrays, and base-prefixed integers become exact decimal JSON tokens. Floating-point literals retain their decimal text.
How are TOML dates and times represented?
Dates and times become strings using the original literal text, including fractional precision and offset. The output indentation can be two or four spaces.
Which TOML information cannot be kept in JSON?
JSON has no TOML date types, comments, inf or nan. Non-finite values are rejected. A conversion back to TOML cannot recover comments or infer whether a string originally represented a date.
Is the input uploaded?
Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.
Can I keep the result?
Review the result, then copy a selection or download the complete text.