JSON to YAML

Turn JSON into readable YAML, with a choice of indent and optional key sorting.

How it works

  • Multi-line strings are emitted as YAML block scalars so they stay readable.
  • Sorting keys alphabetically is handy for config files that are diffed in version control.
  • The YAML is produced by js-yaml, the same library GitHub Actions and many CI systems use.
  • Conversion happens entirely on your device.