YAML to JSON
Convert YAML to formatted or minified JSON.
Free
Runs in your browser
About this tool
YAML to JSON parses YAML and outputs the same data as JSON. It also tells you when the YAML is invalid, which makes it a quick way to check indentation mistakes.
How to use YAML to JSON
- Paste your YAML.
- Choose the JSON indent or minified.
- Copy the JSON or download it.
Questions people ask
Why does my YAML fail to parse?
The most common causes are tabs used for indentation, inconsistent indent levels, and a colon followed by no space.
What happens to YAML comments?
JSON has no comments, so they are dropped.
Are anchors and aliases supported?
Yes. Anchors (&name) and aliases (*name) are expanded into full copies in the JSON.
More developer tools
See all 24 →
JSON to CSVTurn a JSON array into a CSV spreadsheet.
CSV to JSONConvert CSV with headers into a JSON array.
HTML Entity Encoder / DecoderEscape or unescape HTML entities like &.
User Agent ParserSee your browser, OS and device from a user agent.
Screen Resolution CheckerCheck your screen size, viewport and pixel ratio.
HTTP Status CodesSearchable list of HTTP status codes and meanings.