JSON to YAML Converter

Paste JSON to get the same data as YAML, indented with two spaces. Strings that a YAML reader could misread are put in double quotes.

Use the tool

Loading the tool…

About JSON to YAML Converter

Convert JSON into YAML, a format often used for configuration files. Paste the JSON and copy the YAML result.

Worked example

Paste a small JSON object with a name and a list. The YAML output shows the same data with indentation instead of brackets.

Limits

Some JSON values do not map cleanly to YAML. Check the output with the system that will read the file.

How to use JSON to YAML Converter

  1. Paste your JSON.
  2. Fix any error the tool reports.
  3. Copy the YAML.

Good to know

  • Text such as "yes", "no", "null", "123" or "2026-10-21" is written in quotes so a YAML reader keeps it as text.
  • Numbers are copied as your browser reads them. Whole numbers larger than 15 digits can lose precision, so put those in quotes in the JSON.
  • Comments, anchors and other YAML features are not produced. The output is plain block-style YAML.
  • The JSON must be valid. Keys and text need double quotes and no trailing commas.

Frequently asked questions

Does it convert YAML to JSON?

No, only JSON to YAML.

Why are some strings in quotes?

To make sure values like "true" or "007" are read back as text and not as a boolean or number.

Is anything I type saved or sent?

No. The work happens in your browser on this page, and nothing is stored or sent to us.