JSON to YAML Converter

Turn JSON into clean YAML with configurable indentation, ready for config files and Kubernetes manifests.

Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.

Turn JSON into clean, readable YAML — ideal for Kubernetes, Ansible, GitHub Actions or any config that prefers YAML. Strings that YAML would misread (like yes or 012) are quoted automatically, and long lines are never folded.

Step by step

  1. Paste JSON: Or open a file, or try Load sample.
  2. Choose indentation: 2 spaces is the usual YAML style; 4 is also available.
  3. Optional: sort keys: Alphabetical keys make large configs easier to scan.
  4. Download: Save as data.yaml.

Handy for

Kubernetes manifests

Convert JSON from kubectl -o json back to YAML.

CI configs

Write pipeline steps as data and convert.

Readable docs

Show JSON examples in a more readable form.

Config migration

Move settings from JSON files to YAML.

Good to know

  • Invalid JSON is pointed out with a line and column before conversion.

  • Repeated objects are written out in full rather than as YAML anchors, for maximum compatibility.

Questions

Will comments be added?

No — JSON has no comments to carry over, and the converter doesn't invent any.

Is my data sent anywhere?

No. Everything is processed by JavaScript in your browser tab — nothing you paste or open is uploaded, logged or stored on a server. You can even use the tool offline once the page has loaded.

More Developer Tools tools

All Developer Tools tools