How JSON ↔ YAML works
Paste JSON to get YAML, or YAML to get JSON. Switching direction carries your last valid result across, so you can round-trip a config and copy or download either side.
Conversion uses the yaml package's parse and stringify functions. Everything runs in your browser; no data is uploaded.
Questions
- Which direction does it convert?
- Both. Use the tab switcher to choose JSON to YAML or YAML to JSON. Your last valid output is carried over when you flip directions.
- Does it preserve data types?
- Yes. Numbers, booleans, null, strings, arrays, and nested objects all round-trip cleanly between the two formats.
- Is my data sent to a server?
- No. Parsing and serialization happen entirely in your browser using the yaml library.
- Why did my YAML fail to parse?
- YAML is whitespace-sensitive. Check that nested keys are indented with spaces (not tabs) and that list items start with a dash.