JSON ⇄ YAML
Convert JSON to YAML and YAML to JSON in your browser, with indent, sort-key and multi-document support.
🔒 Runs in your browser — files never leave your deviceFree · No sign-up
JSON input
Drop a .json / .yaml file, or click to choose
YAML output
How to use the JSON ⇄ YAML converter
- Pick a direction — JSON → YAML or YAML → JSON. Pasting usually sets it for you, because JSON starts with
{or[. - Paste your text, drop a
.json/.yamlfile, and adjust indent, line width or key sorting on the left. - The result appears instantly on the right; copy it or download it as
data.yaml/data.json.
FAQ
Does it support anchors and aliases?
Yes. YAML anchors (&base) and aliases (*base) are resolved while reading, so the JSON contains the expanded value. Going the other way, repeated objects can be written back as anchors — turn that option off if you want a flat, duplicated file.
What about a file with several YAML documents?
Documents separated by --- are all read and returned as a JSON array, and a note tells you how many were found.
Is my data uploaded anywhere?
No. Parsing runs on js-yaml inside your browser tab; the text and any file you drop never leave your device.