YAML to JSON
Convert YAML into JSON.
Loading tool…
About YAML to JSON
Paste YAML and get the equivalent JSON. It handles the usual YAML you meet in config files — nested keys, lists, quoted strings, comments — and returns clean, valid JSON you can drop into an API request, a settings file, or a bit of code. Handy when a tool wants JSON but your source was written in YAML.
Everything happens in your browser. Your YAML is parsed with JavaScript on your own device, so nothing is uploaded to a server. It is free, needs no account, and has no limits or watermarks. Boring, but it works.
Frequently asked questions
- Is this converter free?
- Yes. It is free with no account or sign-up, and there are no usage limits or watermarks. Convert as many files as you like.
- Is my YAML uploaded anywhere?
- No. The conversion runs entirely in your browser, so your YAML never leaves your device. Nothing is sent to or stored on a server, which suits configuration files that hold private values.
- How do I convert YAML to JSON?
- Paste or type your YAML into the input box and the JSON appears alongside it. Copy the result out when you are done. There is nothing to install and no setup.
- What happens to comments and anchors in my YAML?
- JSON has no way to store comments, so any comments are dropped during conversion. Anchors and aliases are resolved into the actual values they point to, since JSON cannot represent references.
- What if my YAML has an error?
- If the YAML cannot be parsed — a bad indent, a missing colon, a stray tab — the converter shows an error instead of JSON. YAML is strict about indentation, so check that first. Only the first document in a multi-document file is converted.