Loona Automation logoLoona Developer Tools
Home › Data Converters

TOML to JSON Converter

In short: paste TOML — pyproject, Cargo, Hugo config — and get strict JSON with the full table structure preserved.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

Example

Input:

title = "Demo"

[owner]
name = "Ali"

Output:

{
  "title": "Demo",
  "owner": {
    "name": "Ali"
  }
}

About this converter

Reading TOML as JSON is how you feed Rust/Python/Go config into JSON-only tooling, and how you sanity-check what a TOML file really declares. This parser covers the working TOML surface: key/value pairs with basic and literal strings, integers, floats, booleans, arrays, inline tables, [table] headers including dotted paths, and [[array-of-tables]]. Datetimes — TOML's one type JSON lacks — are carried as their string form, the only honest mapping. Multi-line basic strings are read correctly; exotic key quoting edge cases follow the spec's common path.

Frequently Asked Questions

How are datetimes handled?

As strings (their ISO form), because JSON has no datetime type.

Does it support dotted keys like a.b = 1?

Yes — dotted keys build nested objects, as the TOML spec defines.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.