YAML to JSON
Convert YAML into JSON and validate it at the same time. Errors are reported with a clear message. Your YAML never leaves your browser.
This tool runs entirely in your browser.
Loading tool…
How to use the YAML to JSON
- 1Paste YAML into the input.
- 2The JSON output appears as you type.
- 3Copy or download the JSON.
What is the YAML to JSON?
Aliases (*name) and multi-line strings are resolved into plain JSON values. Merge keys (<<:) are not expanded and appear as a literal "<<" key.
In-depth guide
YAML to JSON: Fixing Indentation Errors and Type Surprises →Frequently asked questions
Does it support multiple YAML documents?
No. Input with several documents separated by --- is rejected; convert one document at a time.
Is the YAML to JSON free and private?
Yes. The YAML to JSON is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.
