JSON to YAML Converter

Paste JSON below and get clean YAML — great for config files, GitHub Actions, Kubernetes, and Docker Compose. Everything runs in your browser; nothing is uploaded.

How it works

JSON is a subset of YAML, so the conversion is exact: objects become mapping keys, arrays become sequences, and nesting is indented with two spaces. Types are preserved carefully — a value like "123" or a ZIP code "007" stays a quoted string instead of silently turning into a number, which is the bug most online converters have. It all happens locally; your data never leaves the page.

Working with large or messy JSON?

Use the JSON viewer to explore and validate it first, or the fix-JSON-errors guide if it won't parse.