Paste JSON and get block-style YAML with a 2-space indent, ready for Kubernetes, GitHub Actions or Docker Compose files. Strings are always double-quoted so their type survives a round trip.
When to use this
Use to: convert a JSON config file to Kubernetes-friendly YAML, port REST API payloads (JSON) to GitHub Actions workflow inputs (YAML), generate Docker Compose YAML from a JSON spec, transform a Postman collection's JSON into YAML for docs.
Frequently Asked Questions
Which YAML version does the converter output?
YAML 1.2 (current standard since 2009). Most modern YAML libraries (PyYAML, js-yaml, snakeyaml, libyaml) support 1.2 natively. The output is also compatible with the older YAML 1.1 spec - so it works with legacy parsers too.
Can I convert JSON with embedded multi-line strings?
Yes. Every string is written double-quoted, so a multi-line value stays on one line with \n escapes, which any YAML parser reads back as the same text. Block scalars (| or >) are not used.
Powered by Data Converter - JSON / XML / CSV / YAML.