Convert JSON to YAML
Converts a JSON file or text into YAML with two-space indentation.
Workspace · Convert JSON to YAML
How to use it
Upload a .json file or paste the JSON into the editor.
The tool validates the JSON and converts it to YAML with a two-space indentation.
Check the result and download the .yaml file.
Examples
Docker Configuration
Converts a JSON configuration into human-readable YAML.
CI workflow
Convert a JSON object to YAML for a GitHub Actions file.
What you need to know
The JSON is validated before being converted. If there is a syntax error, the approximate position is indicated. The generated YAML does not use anchored references and preserves the data types (numbers, booleans, nulls and strings).
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
Convert YAML to JSON
Converts YAML into valid JSON with syntax error detection.
JSON formatter and validator
Formats, validates and organises JSON with error detection.
Convert JSON to XML
Generates XML from JSON with a custom root and attributes.
