JSON to YAML
Convert JSON to YAML format.
Processed locally in your browser. Nothing you enter is uploaded or stored.
- Parses the JSON first, so invalid input is caught rather than mis-converted.
- Produces readable, correctly-indented YAML.
- Runs in your browser; config isn't uploaded.
Why this is private
- Processed locally in your browser. Nothing you enter is uploaded or stored.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Converts JSON to YAML — useful for config files (Docker Compose, Kubernetes, CI pipelines) that use YAML.
How to use it
- 1Paste JSON.
- 2The YAML output updates automatically.
Frequently asked questions
What people use it for
Turn an API response into a config stubConvert a JSON sample into the YAML shape a tool expects.
Move settings into a YAML-based CI pipelineConvert JSON config for GitHub Actions, GitLab CI or CircleCI.
Author a Kubernetes or Compose file from JSONDraft in JSON, convert to the YAML these tools require.
Make a JSON blob human-editableYAML's lighter syntax is easier to hand-edit for some configs.
Related guides
- How to read JSON with a tree viewerA tree viewer turns a wall of brackets into a structure you can expand, search and copy paths from. Here's how to use one effectively.
- JSON parse errors explained: 'Unexpected token', 'Expected comma or brace', and the restWhat each common JSON error message actually means, the usual cause, and how to find the spot fast using line and column.
- How to format JSON (and actually understand the errors)JSON looks like a JavaScript object but follows stricter rules. Here's what those rules are and how to read the errors when they're broken.
Related tools
All developer toolsYAML to JSONConvert YAML to JSON — including anchors, merge keys and multi-document files.JSON Viewer & FormatterView, format, validate, edit and beautify JSON with an interactive tree view, plus a shareable link.JSON ValidatorValidate JSON syntax and pinpoint errors instantly.JSON MinifierStrip whitespace to compress JSON to its smallest size.
Ready to use JSON to YAML?
JSON to YAML