How to use the JSON to YAML Converter
- 1
Paste or type your input.
- 2
Choose the operation and options.
- 3
Copy the output or download it as a file.
Validation
Both directions parse the input first, so syntax errors are reported with their line and column instead of producing broken output.
JSON and YAML side by side
YAML describes the same data as JSON with less punctuation: indentation replaces braces, and quotes are usually optional. {"name": "web", "ports": [80, 443]} becomes name: web on one line and ports: followed by - 80 and - 443 on indented lines. Because YAML is indentation-sensitive, mixing tabs and spaces or misaligning a line changes the meaning, which is the most common cause of broken config files.
Values YAML treats specially
Unquoted values like yes, no, on and off are read as booleans by some YAML parsers, and 010 may become a number. When converting from YAML, check that such values come out as you intended. When converting to YAML, strings that could be misread are quoted so they stay strings.
Frequently asked questions
Is my data sent to a server?
No. Everything runs in your browser as you type. Nothing is uploaded or logged, so it is safe to paste API responses, tokens and private text.
Is all JSON valid YAML?
Practically yes: YAML 1.2 is a superset of JSON. Converting to block-style YAML just makes it easier to read and edit.
Are comments kept?
JSON has no comments, and comments in YAML aren't part of the data, so they're dropped when converting YAML to JSON.
Why does my YAML fail to parse?
Usually a tab character, inconsistent indentation or a colon inside an unquoted value. The error message shows the line and column to check.
Something not working, or missing a setting you need? Report a problem or request a tool.