Developer tools
YAML to JSON Converter (and JSON to YAML)
Free, no sign-up, works in your browser. Convert YAML to JSON or JSON to YAML as you type, with clear errors when the YAML isn't valid. Anchors, multi-line strings and multiple documents are supported.
Anchors, aliases, multi-line strings and multiple documents (separated by ---) are supported. Comments aren’t part of JSON, so they’re left out.
Your data stays on your device.
How to use the YAML to JSON Converter
- Choose YAML to JSON or JSON to YAML.
- Paste your data or open a .yaml or .json file.
- Copy or download the result.
Frequently asked questions
- Does it check that my YAML is valid?
- Yes. If the YAML can't be read, you'll see what's wrong and on which line, such as bad indentation.
- What happens to YAML comments?
- JSON has no comments, so they're left out when converting to JSON.
- What about files with several documents?
- Documents separated by --- become a JSON list, one item per document.
- Is my data uploaded?
- No. Conversion happens on your device.
- Is the YAML to JSON Converter free?
- Yes. It's free to use, with no sign-up and nothing to install.
Related tools
- JSON FormatterPaste JSON to check that it's valid, then format it with clear indentation or minify it to one line. If something is wrong, you see the line and column of the mistake. Your data stays on your device.
- JSON to XML ConverterConvert JSON to well-formed XML, or XML to JSON, with attributes, repeated elements and text kept intact. Errors point to the line that needs fixing.
- JSON to CSV ConverterConvert a JSON array into a CSV file you can open in Excel or Google Sheets, or turn CSV back into JSON. Nested objects become columns like user.name, and nothing you paste leaves your device.