Input (TOML)
title = "Demo"
[owner]
name = "Ada"
active = trueTOML ↔ JSON converts TOML configuration into JSON and back again. TOML tables become JSON objects, arrays map directly, and typed values like integers, booleans, and dates are preserved. It's useful for inspecting a TOML config as JSON, feeding it to JSON-only tooling, or generating a TOML file from existing JSON data — the conversion works in both directions.
TOML (Tom's Obvious, Minimal Language) is a configuration format designed to be easy to read, with explicit tables, key-value pairs, and first-class date and number types. JSON (JavaScript Object Notation) is the ubiquitous data-interchange format of objects and arrays. This converter maps TOML's tables and typed scalars onto JSON's structure and back, bridging human-friendly config with machine-friendly interchange.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
title = "Demo"
[owner]
name = "Ada"
active = true{
"title": "Demo",
"owner": {
"name": "Ada",
"active": true
}
}ports = [80, 443]
hosts = ["a", "b"]{
"ports": [80, 443],
"hosts": ["a", "b"]
}[[products]]
name = "Hammer"
sku = 738
[[products]]
name = "Nail"
sku = 284{
"products": [
{ "name": "Hammer", "sku": 738 },
{ "name": "Nail", "sku": 284 }
]
}[servers.alpha]
ip = "10.0.0.1"
port = 8080{
"servers": {
"alpha": {
"ip": "10.0.0.1",
"port": 8080
}
}
}count = 42
ratio = 3.14
enabled = false
ts = 1979-05-27T07:32:00Z{
"count": 42,
"ratio": 3.14,
"enabled": false,
"ts": "1979-05-27T07:32:00Z"
}point = { x = 1, y = 2 }
name = "origin"{
"point": { "x": 1, "y": 2 },
"name": "origin"
}big = 1_000_000
hex = 0xFF
ratio = 6.626e-34{
"big": 1000000,
"hex": 255,
"ratio": 6.626e-34
}The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste TOML to get JSON, or paste JSON to generate TOML.
TOML tables map to JSON objects and arrays map directly.
Typed values like integers, booleans, and dates are preserved.
Dotted keys and [table] headers become nested object structure.
Arrays of tables round-trip into arrays of objects.
Both directions run locally in your browser; nothing is uploaded.
Fine for config holding sensitive values.
Inspect a TOML config as JSON to feed JSON-only tooling.
Generate a starter TOML file from existing JSON data.
Output
JSON output