JSON ↔ YAML
Convert between JSON and YAML
Loading...
About this tool
Convert between JSON and YAML instantly. YAML is widely used in configuration files (GitHub Actions, Docker Compose, Kubernetes and CI/CD pipelines), while JSON is the standard format for APIs and applications.
Instead of rewriting the structure by hand, paste the content and switch formats while preserving objects, lists and data types.
How to use
- Choose the direction (JSON → YAML or YAML → JSON).
- Paste the content into the text area.
- Click Convert.
- Copy or share the result.
Frequently asked questions
Does the generated YAML keep proper indentation?
Yes, with 2-space indentation, the standard in most projects.
Does it support nested lists and objects?
Yes, nested structures are preserved in both directions.
Are YAML comments kept?
No. JSON has no comments, so they are lost when converting to JSON.
Advertisement