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
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
JSON Minifier
Strip whitespace to produce compact JSON.
JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.