Skip to content
HQ8T

YAML ⇄ JSON Converter

Convert YAML to JSON and back.

Convert
Indent

How to use

  1. 1Choose YAML → JSON or JSON → YAML.
  2. 2Paste your YAML or JSON.
  3. 3Pick 2 or 4 spaces of indentation.
  4. 4Copy the converted result.

Frequently asked questions

Does it validate YAML?

Yes. If the YAML is invalid (for example wrong indentation), you'll see the error and where it is.

Are YAML comments kept?

No. JSON has no comments, so they're dropped when converting YAML to JSON.

Is my config file uploaded?

No. Conversion happens in your browser, so secrets in config files stay on your device.

Does it support multi-document YAML (---)?

It converts a single document. Split multi-document files at each --- and convert them one by one.