YAML ⇄ JSON ⇄ TOML
Convert between YAML, JSON and TOML in either direction.
Convert YAML to JSON, and JSON to YAML or TOML, instantly with validation. Free online converter that runs in your browser — nothing is uploaded.
About YAML ⇄ JSON ⇄ TOML
The YAML JSON TOML Converter is a free, in-browser tool that converts configuration and data between JSON, YAML, and TOML in either direction. Pick a source and target format (or let auto-detect guess), and it parses and re-serializes the data instantly as you type, with adjustable 2- or 4-space indentation. Everything runs locally in your browser, so your config files are never uploaded and need no signup.
How to use YAML ⇄ JSON ⇄ TOML
- Paste or type your JSON, YAML, or TOML into the input box on the left (or keep the sample to try it).
- Set the 'From' format, or flip on 'Auto-detect input' to let the tool identify it (confirm the format via the chips if the input is ambiguous).
- Choose the 'To' format you want to convert into: JSON, YAML, or TOML.
- For JSON or YAML output, pick 2- or 4-space indentation; the converted result appears live on the right.
- Copy the output, or download it as a .json, .yaml, or .toml file.
- Use the Swap button to flip the From/To formats and move the output back into the input for a quick round-trip.
Frequently asked questions
- Is it free, and do I need an account?
- Yes, it is completely free with no signup or account required. Just open the page and start converting.
- Are my files or data uploaded to a server?
- No. All parsing and conversion happen entirely in your browser using JavaScript. Your data never leaves your device and is never sent anywhere.
- Which formats and directions are supported?
- It converts between JSON, YAML, and TOML in any direction, so you can go JSON-to-YAML, YAML-to-TOML, TOML-to-JSON, and every other combination. JSON and YAML output also let you choose 2- or 4-space indentation.
- Why won't my array or single value convert to TOML?
- TOML requires an object (table) at the root, so a top-level array or scalar value can't be represented. Wrap it in a key (for example, value = ...) or choose JSON or YAML as the output format instead.
- Does it preserve YAML anchors and aliases?
- No. YAML anchors (&name) and aliases (*name) are resolved during parsing, so the referenced data is inlined and the converted output won't keep them, which may make it larger. The tool shows a warning when it detects them.
- Is there a size limit on the input?
- Yes. Input is capped at 10 MB of characters because everything is parsed in your browser on each keystroke, and much larger pastes could freeze or crash the tab.
People also search for
YAML ⇄ JSON ⇄ TOML is also known as yaml to json converter, json to yaml, yaml to toml, toml to json, yaml json converter online, convert yaml file to json, yaml json toml converter.