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

TOML to JSON

Parse and convert TOML to JSON locally, with nested data and validation.

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 TOML keys, tables and arrays into JSON data structures.

Actions: Convert

Example

The [server] table becomes a nested JSON object with two-space indentation.

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

  • TOML date/time values become strings through JSON serialization; comments and original TOML formatting are not retained.

Common mistakes

  • TOML integers outside JavaScript safe precision cause an error; they are not automatically converted into strings.

Related tools

JSON to TOML TOML 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.