📄 TOML / INI Converter

Parse and convert between TOML, INI, and JSON formats, with the work done by this page's own script rather than a server.

Last updated: November 8, 2026 · By the BoltQuickTools team

Input (TOML) 0 lines, 0 chars
Output (JSON) 0 lines, 0 chars
Ready. Paste your content and it will be converted automatically.

Move settings between TOML, INI and JSON

Config often has to cross formats: a Cargo.toml or pyproject.toml value needed in a script that only reads JSON, or an old .ini file being moved to a newer app. This page converts between JSON and each of the other two, for one file at a time.

Picking a direction

Under Conversion Mode, choose TOML to JSON, JSON to TOML, INI to JSON or JSON to INI, then paste into the input panel. Output updates shortly after you stop typing, and the Convert button runs it on demand. The four sample buttons, such as Sample TOML, load test data and set the matching mode. Copy Output copies the result and the status bar shows any error. TOML and INI errors include a line number; JSON errors are the browser's own message.

There is no direct TOML to INI mode. Go through JSON in two steps.

Example: TOML to JSON

title = "Billing API"
port = 8080
tags = ["prod", "eu"]
started = 2026-03-01T09:00:00Z

[db]
host = "10.0.0.5"
pool = { min = 2, max = 16 }

[[worker]]
name = "mailer"

[[worker]]
name = "reports"
retries = 3

becomes:

{
  "title": "Billing API",
  "port": 8080,
  "tags": [
    "prod",
    "eu"
  ],
  "started": "2026-03-01T09:00:00Z",
  "db": {
    "host": "10.0.0.5",
    "pool": {
      "min": 2,
      "max": 16
    }
  },
  "worker": [
    {
      "name": "mailer"
    },
    {
      "name": "reports",
      "retries": 3
    }
  ]
}

In the other direction, JSON to TOML turns {"service":{"name":"auth","port":443},"debug":false,"owner":null} into the output below. Note that owner is gone, because TOML has no null.

debug = false

[service]
name = "auth"
port = 443

What the TOML side changes or misses

The parser covers common TOML but is not a strict validator, so a file passing here may still be rejected elsewhere.

What the INI side changes

Swap to Input, arrays and YAML

Why did Swap to Input give me a JSON error?

The button guesses the next mode from the output text and sometimes guesses wrong. Output that has no [, such as a = 1, stays in a JSON mode, and TOML starting with a [table] line is mistaken for a JSON array. Pick TOML to JSON or INI to JSON by hand and the text converts normally.

Can the input be a JSON array?

No. Both JSON modes need an object at the top level, since TOML and INI files are key-value documents.

What about YAML?

YAML is handled by the JSON and YAML converter. For help choosing a config format, see the comparison of YAML, TOML and JSON5, and use the JSON formatter to check JSON before converting it.