Mastodon
99Tools.net

TOML to JSON Converter

How to Use TOML to JSON Converter

  1. Paste Your Code: Locate the large text box labeled “TOML Input.” Paste your TOML configuration string directly into this area.
  2. Convert: Click the dark blue “Convert to JSON” button in the center. The tool will instantly process the syntax.
  3. View Results: Your formatted JSON will appear immediately in the “JSON Output” box below.
  4. Copy or Clear: Click the “Copy JSON” button to save the result to your clipboard for immediate use. If you need to start over, simply hit the “Clear” button to empty both fields.

Example Conversion

To help you understand how the conversion works, here is a simple example of how a standard TOML configuration file is transformed into a JSON object.

TOML Input:

Ini, TOML

title = "TOML Example"

[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00

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

JSON Output:

JSON

{
  "title": "TOML Example",
  "owner": {
    "name": "Tom Preston-Werner",
    "dob": "1979-05-27T15:32:00.000Z"
  },
  "database": {
    "server": "192.168.1.1",
    "ports": [
      8000,
      8001,
      8002
    ],
    "enabled": true
  }
}
You Might Also Need: JSON to Base64
RECOMMENDED
JSON to JAVA Converter
Try Now âž”