TOML to JSON

Runs in browser

Convert TOML configuration files to JSON instantly.

Parse TOML configuration files to formatted JSON in your browser. Paste text or open a .toml file — ideal for Rust, Hugo, and CI configs.

TOML to JSON tool

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

Files never leave your browser.

Drag and drop a file here, or tap to select

🔒 Runs in your browser · No uploads · Your data never leaves your device

How to use

  1. Paste or upload

    Paste TOML or load a .toml file from disk.

  2. Review JSON

    Formatted JSON updates as you edit.

  3. Copy or download

    Copy the JSON or download a .json file named after your source file.

Common use cases

  • Converting Rust/Cargo configs to JSONTransform Cargo.toml files to JSON for programmatic processing or comparison with other config formats.
  • Migrating config formatsConvert TOML configuration files to JSON when a tool or API requires JSON input.

Examples

  • Cargo-style TOML

    Package and dependencies tables.

    Input
    [package]
    name = "demo"
    Output
    { "package": { "name": "demo" } }

Frequently asked questions

Is TOML parsed on a server?
No. Parsing uses @iarna/toml entirely in your browser.
Does it support TOML 1.0?
The parser follows the @iarna/toml implementation; typical Cargo and Hugo files work well.

Key concepts

TOML
Tom's Obvious, Minimal Language — a config file format designed to be easy to read, used by Rust's Cargo and many other tools.

You might find these useful too.

More json tools