Convert TOML Configs to JSON
0 bytes uploadedConvert TOML v1.0 sections, inline tables, arrays, and RFC 3339 timestamps from Cargo.toml or pyproject.toml into valid JSON locally.
or drop a text or data file here · Ctrl V to paste · or drop a .toml file · Ctrl V to paste TOML
- 100% browser-local
- 0 bytes uploaded
- Strict TOML v1.0 parser
Instant Before & After Preview
title = "Worker Runtime"
[server]
host = "127.0.0.1"
port = 8787
tls = true
[limits]
max_bytes = 25165824{
"title": "Worker Runtime",
"server": {
"host": "127.0.0.1",
"port": 8787,
"tls": true
},
"limits": {
"max_bytes": 25165824
}
}Source vs. target format specification comparison: TOML → JSON
| Property | Source: TOML | Target: JSON |
|---|---|---|
| Structure type | Hierarchical | Hierarchical |
| Human readability | High | High |
| Nesting support | Yes | Yes |
| LLM token efficiency | Medium | Low |
| File extension | .toml | .json |
| MIME type | application/toml | application/json |
| Best for | Rust Cargo.toml, Python pyproject.toml, Hugo/Netlify configs, and typed app settings. | REST/GraphQL APIs, structured application state, NoSQL documents, and machine-to-machine data exchange. |
How it works
How to convert TOML to JSON locally
Inspect nested TOML tables and array-of-tables syntax cleanly as standard JSON.
- Paste or drop .tomlLoad Cargo.toml, pyproject.toml, hugo.toml, or wrangler.toml.
- Set JSON indentationPick 2-space, 4-space, or 0-space compact output.
- Copy or convert to YAMLDownload valid JSON or continue to JSON to YAML or JSON Formatter.
FAQ
Frequently asked questions
Does TOML to JSON handle [[array.of.tables]] syntax?
Yes. Full TOML v1.0 support via smol-toml converts dotted keys, inline tables, multiline strings, and arrays of tables accurately.
How are native TOML dates represented in JSON?
Native TOML Offset Date-Time and Local Date values serialize into standard ISO 8601 strings in JSON.
Are TOML comments kept in JSON?
Standard JSON does not allow comments, so # comments are stripped cleanly while preserving every key and typed value.