YAML ↔ JSON Converter

Convert YAML to JSON or JSON back to YAML, entirely in your browser.

Copied

Last updated

Converted output will appear here.
Copied

What's supported

This covers the YAML most configuration files actually use: nested mappings and sequences via indentation, block-style lists, quoted and unquoted strings, numbers, booleans, and null. It doesn't cover the full YAML spec — flow-style collections like {a: 1} or [1, 2], anchors/aliases, and multi-document files aren't handled. If a conversion looks wrong, the most common cause is mixed tabs and spaces in the indentation; YAML requires spaces only.

JSON → YAML output uses 2-space indentation and quotes strings only when needed (if they contain special characters or could be mistaken for a number or boolean). Nothing you paste here is uploaded — conversion happens locally in your browser.