TOML to JSON Converter
This TOML to JSON converter turns a configuration file into JSON while keeping the types TOML actually distinguishes: integers stay integers, floats stay floats, booleans stay booleans, and arrays of tables become arrays of objects. TOML dates and times are a real first-class type rather than strings, which JSON has no equivalent for at all — those come out as ISO 8601 strings, the closest representation JSON can offer. Useful when a tool configured in TOML has to be read by something that speaks JSON, or when you want to inspect exactly how a nested table structure is actually being parsed.
How it works
Converts TOML to JSON, keeping the types the format actually distinguishes: integers stay integers, floats stay floats, booleans stay booleans, and arrays of tables become arrays of objects.
TOML dates and times are a genuine type rather than strings, which JSON has no equivalent for — those come out as ISO 8601 strings, which is the closest JSON can represent.
Everything runs in your browser — nothing you paste is sent to a server.
The syntax that confuses people
TOML has two bracket forms and they mean different things:
[server] # one table
[[endpoints]] # an element of an array of tables A single bracket declares a table, which becomes a JSON object. A double bracket declares one entry in an array of tables — repeat it and you get several entries, which become a JSON array of objects.
Dotted table names
[server.tls] declares a table nested inside server, equivalent to a nested object in
JSON. It does not have to appear after [server], which makes the flat file structure slightly
deceptive until you see the JSON.
Dates are real
TOML supports offset date-times, local date-times, dates and times as distinct types. JSON has none of them, so they are converted to ISO 8601 strings — meaning a round trip back to TOML produces a string rather than a date.
Frequently asked questions
How do I convert TOML to JSON?
Paste your TOML into the left panel. The JSON appears on the right immediately.
Are types preserved?
Yes. Integers, floats, booleans and strings all keep their types, and arrays of tables become arrays of objects.
What happens to TOML dates?
They become ISO 8601 strings. TOML has genuine date and time types; JSON has none, so a string is the closest available representation.
What is an array of tables?
The [[name]] syntax, which declares a repeated table. It becomes a JSON array of objects — the most common source of confusion when reading TOML.
Where will I meet TOML?
Rust Cargo.toml, Python pyproject.toml, Hugo and Netlify configuration, and a growing number of tools that wanted something more readable than YAML and less error-prone than JSON.
Is my config uploaded?
No. Parsing happens entirely in your browser.
Related tools
JSON to TOML Converter
This JSON to TOML converter writes nested objects as tables and arrays as [[tables]].
TOML Validator
This TOML validator reports the first error with its line and column.
YAML to JSON Converter
This YAML to JSON converter parses YAML into JSON online, supporting anchors, aliases, and multi-document files.