Toolbox / JSON to TOML Runs in your browser中文
Converter

JSON to TOML

Parse and convert JSON to TOML locally, with nested data and validation. JSON5 is also supported.

Ctrl / ⌘ + Enter Run

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

Less switching. More focus.Functional build · Validation in progress

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

TOML to JSON JSON to YAML

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.