JSON to YAML
Convert a JSON document into clean, correctly indented YAML.Developer ToolsJSON to YAML
Convert a JSON document to its YAML equivalent. Objects become mappings, arrays become lists.
About this tool
Config files often start as JSON and end up in a Helm chart, GitHub Action or docker-compose file. Paste the JSON and get readable YAML with consistent two-space indentation, including proper quoting for values YAML would otherwise misread.
How to use the JSON to YAML tool
- Paste your JSON. Any valid JSON document: objects, arrays, scalars and null are all supported.
- Convert. Click Convert to YAML. Invalid JSON is reported with the parser's own message.
- Copy the result. Take the YAML straight into your .yml file.
Supported formats
Input
- JSON text
Output
- YAML (two-space indentation)
Inputs are validated before anything is processed. Invalid values and unsupported files are rejected with a clear error instead of failing silently.
Frequently asked questions
Why are some strings quoted?
Values that YAML would misinterpret — pure numbers, true/false, null or strings containing ': ' — are wrapped in double quotes so the meaning survives.
Does it support comments?
No. JSON cannot represent comments, so none can carry over.
Are duplicate keys handled?
JSON parsing keeps the last occurrence of a duplicate key; the YAML reflects that result.
Is my config uploaded?
No. The conversion runs as plain JavaScript in your browser tab.
Privacy
Everything you enter stays in this browser tab. There is no upload endpoint for tool inputs, no account, and no server-side copy of your text or files. Results are produced locally and disappear when you close the page.
No account is required and no file is ever uploaded. See the privacy policy for details about analytics and the limited data this site stores.
Known limitations
- The output uses two-space indentation and cannot match a project's custom style.
- Anchors, aliases and other advanced YAML features are never generated.
- Very deep nesting produces long indentation chains that some tools dislike.
Related tools
Other free tools from the same collection.