Skip to content
ZeroServer.tools

JSON to TOML Converter

Convert JSON to TOML format — objects become [tables], arrays of objects become [[arrays]].

title = "TOML Example"

[owner]
name = "Tom Preston-Werner"
active = true

[database]
server = "192.168.1.1"
ports = [8001, 8001, 8002]
enabled = true

[[servers]]
ip = "10.0.0.1"
role = "frontend"

[[servers]]
ip = "10.0.0.2"
role = "backend"

How JSON to TOML conversion works

TOML (Tom's Obvious Minimal Language) is a configuration file format. JSON objects map to TOML [tables], arrays of objects become [[array of tables]], and scalar arrays use inline syntax key = [1, 2, 3]. Strings are quoted and special characters are escaped.

For the reverse conversion, use the TOML to JSON Converter. To format existing TOML, try the TOML Formatter. To convert between JSON and YAML, see JSON to YAML Converter.

Private & free — this tool runs entirely in your browser.

Recommended: IndieKit Ship your Next.js startup in days.affiliate

Related Converters tools