About this tool
The JSON to YAML Converter turns JSON into clean YAML and YAML back into JSON, live in both directions. Paste a JSON document on one side and read the YAML on the other, or edit a Kubernetes manifest, GitHub Actions workflow or Docker Compose file in YAML and get the equivalent JSON. Choose 2 or 4-space YAML indentation, and 2 spaces, 4 spaces, tabs or minified output for JSON, and sort keys alphabetically to make two files easy to compare. When the input is not valid, the error says what is wrong and gives the line and column, such as a trailing comma or single quotes in JSON, or a duplicate key or bad indentation in YAML. Multi-document YAML becomes a JSON array, anchors and aliases are expanded, and warnings flag anything JSON cannot hold, like very large integers or .inf. Load a sample to try it, then copy or download either side. Conversion uses the open-source yaml library and runs in your browser.
