YAML to JSON Converter
runs in your browserno sign-upfree
Convert YAML into JSON, including anchors, multi-line text and files with several documents.
Converted to JSON
About this tool
This converter turns YAML into JSON. Anchors and aliases are expanded, multi-line text (| and >) becomes normal strings, and numbers, true/false and null keep their types. A file with several documents separated by --- becomes a JSON array.
How to use
- Paste your YAML into the YAML box.
- Choose the JSON indent.
- Copy the JSON or download it as a .json file.
FAQ
What happens to comments?
JSON has no comments, so they are left out of the result.
Why is "yes" a string and not true?
The converter follows YAML 1.2, where only true and false are booleans. Words like yes, no, on and off stay text. Write true or false if you mean a boolean.
How are anchors (&) and aliases (*) handled?
Each alias is replaced by a copy of the value it points to, because JSON has no references. Very large expansions are stopped to keep your browser safe.
Is my YAML uploaded?
No. Everything runs in your browser, so config files, secrets in environment variables and other data never leave your device. Your last input is saved only in this browser; press Clear to remove it.