Converter
JSON to TOML
Parse and convert JSON to TOML locally, with nested data and validation. JSON5 is also supported.
Ready when you are
01
Add your contentPaste text or try a sample
02
Choose an actionClear options. Predictable results.
03
Take it with youCopy, download and carry on
Using this tool
Convert JSON/JSON5 configuration objects to TOML, rejecting data that cannot be represented safely.
Actions: Convert
Example
The nested server object becomes a [server] table; TOML uses the serializer’s formatting.
Example action and settings
Action: Convert Indent spaces: 2
Input / action
{"name":"Ada","server":{"port":8080}}Result / expected behavior
name = "Ada" [server] port = 8080
Available options: Indent spaces
Scope and limitations
- Root arrays, root scalars and null at any depth cannot be converted to TOML.
Common mistakes
- Do not blindly replace null with the string "null" merely to pass conversion; that changes the data’s meaning.
Related tools
Privacy and browser support
Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.