TOML to JSON Converter
Turn TOML into JSON, with errors that name the line. Tables, arrays of tables and inline tables are supported.
Processed on your device. Files are not uploaded
How to convert TOML to JSON
Paste your TOML
Paste or type it into the box, or press Try an example.
Pick the layout
Choose how the JSON is laid out.
Copy or download
Use the JSON in your code.
Worked example
This is what TOML to JSON Converter gives for its own sample values. Open the tool above and change anything to try your own.
TOML
title = "Example" version = "1.2.0" [owner] name = "Ada" tags = ["tools", "developer"] [[servers]] host = "alpha" port = 8080 [[servers]] host = "beta" port = 8081
- Indentation
- 2 spaces
JSON
{
"title": "Example",
"version": "1.2.0",
"owner": {
"name": "Ada",
"tags": [
"tools",
"developer"
]
},
"servers": [
{
"host": "alpha",
"port": 8080
...About TOML to JSON Converter
Turn TOML into JSON. Tables, dotted keys, arrays of tables, inline tables, multi-line strings and hex, octal and binary numbers are understood. Dates and times are kept as text.
FAQs
How are dates handled?
JSON has no date type, so TOML dates and times are kept as strings.
What does the error mean?
It names the line and the problem, such as a duplicate key or a string without quotes.
Can I convert JSON to TOML?
Use JSON to TOML Converter.