Data converter

JSON to YAML converter

To convert JSON to YAML, drop your JSON file in the box below. It converts straight away; press Download to save the YAML. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

JSON to YAMLWhat happens
StyleBlock style, two-space indents
QuotingStrings that YAML could misread (yes, no, 1.0, 2024-01-01, on) are quoted
Multi-line textWritten as | blocks
OrderKeys keep their order
CommentsJSON has none, so there are none to carry

How to convert JSON to YAML

  1. Add your JSON. Drop the file in the box, or click to choose it. It becomes YAML straight away.
  2. Check the result. Look at the preview. The delimiter and value types are set for you; change them if needed.
  3. Download. Press Download to save the YAML.
Why YAML

YAML is easier to read and edit by hand, and it is what Kubernetes, GitHub Actions and many config files use.

Questions

Values like "yes", "no", "on" or "1.0" would turn into booleans or numbers in some YAML readers. Quoting keeps them as text.

Yes. The output is written so that reading it back gives the same data.

Yes. Invalid JSON gives an error with the line and column, with a hint for trailing commas, comments or single quotes.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions