Convert JSON to YAML instantly
YAML is easier to read and edit than JSON, which is why Kubernetes manifests, Docker Compose files, GitHub Actions and many CI systems use it. Paste JSON and get equivalent YAML with consistent two-space indentation.
How to use it
- Paste JSON into the Input panel or open a file.
- The YAML appears in the Output panel and updates as you type.
- Copy it or Download it as a
.yamlfile.
How the YAML is written
- Objects become indented
key: valueblocks; arrays become- itemlists. - Strings that YAML would misread, such as
yes,no,on,nullor numbers, are quoted automatically. - Empty objects and arrays are written as
{}and[]. - Use a JSONPath query to convert only part of a document.
More JSON tools
All tools are free and run privately in your browser.
JSON to YAML FAQ
Is YAML a superset of JSON?
YAML 1.2 is designed to be a superset of JSON, so most JSON is valid YAML. Converting to block-style YAML makes it far more readable.
Why are some strings quoted in the YAML?
Values like yes, no, on, off or 1.0 would be read as booleans or numbers by YAML parsers, so they are quoted to keep them as strings.
Is my data uploaded to a server?
No. The JSON to YAML runs entirely in your browser using JavaScript. Your data is never uploaded, logged or stored, and the tool keeps working offline after your first visit.