Everything runs on your machine — your file is processed right here in your browser and never uploaded to any server.
Input
JSON
Loading...
Output
YAML
Loading...

About this tool

Modern infrastructure speaks YAML: Kubernetes manifests, docker-compose files, GitHub Actions workflows, and Ansible playbooks all rely on it. Documentation and API responses, on the other hand, usually arrive as JSON. This converter closes that gap by rewriting any valid JSON document as equivalent YAML with proper two-space indentation.

DevOps engineers reach for it when translating a JSON configuration example into a Helm values file, and backend developers use it to migrate an application's settings from config.json to config.yaml without retyping a single key. Because the two formats represent the same data model, nothing is lost in translation.

How to use

  1. Type or paste JSON into the editor on the left, or bring in an existing file with the Load File button.
  2. The YAML equivalent renders live in the right-hand editor as you edit — there is no convert button to press.
  3. Scan the output to confirm nesting looks right; indentation levels replace the braces and brackets from your JSON.
  4. Hit Copy to grab the YAML for a pull request, or Download to save it with a .yaml extension.

Everything on this page runs locally. Your configuration data is parsed and re-serialized by your browser alone, and no fragment of it ever crosses the network — which matters when config files contain credentials, tokens, or internal hostnames.

Frequently asked questions

Will the YAML convert back to the same JSON?

Yes. YAML's data model is a superset of JSON's, so every object, array, string, number, boolean, and null survives the round trip unchanged. Only formatting differs between the two representations.

Does the converter add comments to the YAML?

No. YAML supports comments but JSON has no way to express them, so the output is pure data. You can add explanatory comments by hand after copying the result.

How does the tool indent nested structures?

Nested objects are indented with two spaces per level, the convention used by Kubernetes, GitHub Actions, and most style guides. Arrays are written as dash-prefixed list items under their parent key.