Notes
Strings that could be read as numbers, booleans or null are quoted so the YAML keeps the same types as your JSON. To check or tidy the input first, use the JSON Formatter.
FAQ
How do I convert JSON to YAML?
Paste your JSON on the left. The YAML appears on the right as you type. Copy it or download it as a .yaml file.
Is YAML a superset of JSON?
Mostly yes. Valid JSON is almost always valid YAML 1.2, but YAML is easier to read and edit by hand, which is why config files use it.
Are comments kept?
JSON has no comments, so there is nothing to carry over. You can add comments to the YAML after converting.
More tools
JSON FormatterPaste JSON to pretty-print it, find syntax errors with line and column, or minify it. Everything runs in your browser.JSON ValidatorPaste JSON to check it. You get a clear pass or the exact line and column of the first error.JSON MinifierRemove all unneeded whitespace from JSON and see how much smaller it gets.JSON to CSVPaste a JSON array of objects and get CSV. Nested objects become columns like address.city.CSV to JSONPaste CSV or TSV and get a JSON array of objects. Quoted fields and commas inside values are handled.Base64Encode text to Base64 or decode it back. Handles UTF-8, emoji and URL-safe Base64.URL Encode/DecodePercent-encode text for a URL or decode it back. Handles UTF-8 and full URLs.Timestamp ConverterConvert Unix timestamps to dates and dates to Unix time, in seconds or milliseconds.JWT DecoderPaste a JSON Web Token to read its header and payload. The token stays in your browser.