Convert JSON to YAML and YAML to JSON online while you type. Repairs common JSON mistakes, fixes tabs in YAML, supports several YAML documents and keeps types exact with YAML 1.2.

JSON ↔ YAML

Validate · Convert · Download
JSON0 characters
YAML
The converted result will appear here

Comments and formatting are not preserved. Use one YAML document with text keys.

Ready to convertCtrl + Enter to convert

Frequently asked questions

How do I convert JSON to YAML?

Choose “JSON → YAML”, paste your JSON or open a file, and the YAML appears on the right as you type. You can choose 2 or 4 spaces of indentation and download the result.

Can I convert YAML with several documents?

Yes. Documents separated by --- are converted into a JSON array, one item per document.

Is my data sent to a server?

No. The conversion runs in your browser, so configuration files and secrets never leave your device.