InstrumentsJSON and YAML Converter
JSON and YAML Converter
Convert JSON to YAML or YAML to JSON in your browser, with a 2 or 4 space indent for JSON output and the parser message when the input is invalid.
JSON and YAML Converter
One JSON value, up to 20,000 characters.
The YAML library follows YAML 1.2 defaults. Comments are not kept in JSON output.
Loading the converter...
FAQ
Are YAML comments kept in the JSON output?
No. JSON has no comment syntax, so comments are dropped when YAML is converted to JSON. The YAML output from a JSON input has no comments either.
Which YAML version does the converter follow?
The parser uses the YAML library defaults, which follow YAML 1.2. Under those rules, plain values such as yes and no are read as strings, not booleans.
Why does my YAML fail to convert?
The error message comes from the parser and usually gives a line and column. YAML nests with spaces, not tabs, so check indentation first. A file with more than one document separated by --- must be converted one document at a time.
Related tutorials
§04Toolbox
Related tools
Personalize your path
Choose your experience level once.
Next Step
Build fundamentals after each tool run so you can apply concepts with confidence.