JSON ↔ YAML Converter
Convert JSON to YAML and YAML back to JSON right in your browser. Paste either format to get clean, correctly-indented output — ideal for config files, CI pipelines, and Kubernetes manifests.
Indent
Enter data above to see the converted result here.
How to use JSON to YAML Converter
- 1
Choose a direction
Use the toggle to pick JSON to YAML or YAML to JSON. The swap button moves your result into the input so you can convert it back the other way.
- 2
Paste your data
Paste JSON or YAML into the input box. The conversion runs automatically as you type, with structure, nesting, and data types preserved.
- 3
Pick the indent
Choose a 2-space or 4-space indent to match your project's style. The output stays clean and correctly indented for either format.
- 4
Copy the result
Review the converted output and copy it to your clipboard, ready to drop into a config file, a pipeline, or your code.
Frequently asked questions
What is the difference between JSON and YAML?
How do I convert JSON to YAML?
Can it convert YAML back to JSON?
Is parsing untrusted YAML safe here?
Is my data uploaded to a server?
Related tools
Keep going with these handy tools