Example input
[app]
name = "DataHub"
active = true
ports = [80, 443]
DataHub
Tools
TOML Formatter JSON
Local-first
Format simple TOML config and convert it to JSON locally in your browser.
The page loads smol-toml 1.7.0 locally for TOML parsing and serialization. It supports quoted keys, dates, multiline strings, nested tables, inline tables, arrays, and arrays of tables, and rejects invalid or duplicate definitions.
[app]
name = "DataHub"
active = true
ports = [80, 443]{
"app": {
"name": "DataHub",
"active": true,
"ports": [80, 443]
}
}TOML dates and special numeric values may not have a one-to-one JSON representation; inspect converted values before replacing a configuration file.
TOML 1.0 defines the source grammar; JSON conversion necessarily maps TOML values into JSON-compatible serialized values.
Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.
The browser loads smol-toml 1.7.0 locally.
Yes. They are parsed according to the TOML library, but inspect their JSON representation.
No. Invalid duplicate definitions produce an error.
TOML output uses config.toml and JSON output uses config.json.