JSON to YAML Converter
Paste JSON to produce readable YAML. Reverse mode pretty-prints JSON. Complex YAML tags are not parsed.
Keyboard: Ctrl or ⌘ + Enter copies. Escape clears. Text stays in this browser.
Part of JSON tools
JSON objects into indented YAML
Paste a JSON object or array to emit YAML with indentation suitable for Kubernetes snippets, GitHub Actions, and app config. Reverse mode pretty-prints JSON rather than attempting a full YAML 1.2 parser with custom tags, anchors, or merge keys.
Config files vs document streams
Use this for a single mapping you would commit as `.yaml`. Multi-document `---` streams, `!Ref` CloudFormation tags, and binary `!!binary` nodes need a dedicated YAML library. Pair with JSON Formatter when you only need braces readable, not a YAML file.
Types, nulls, and quoting
JSON `null`, booleans, and numbers become YAML equivalents. Strings that look like numbers or `on`/`off` may need quotes in YAML 1.1 engines—review before deploy. Conversion is local; secrets in a sample payload are not uploaded.
Frequently asked questions
Can it convert YAML back to JSON losslessly?
Simple mappings round-trip. Anchors, aliases, and custom tags will not survive a JSON-only model.
Why did my date become a string?
JSON has no date type. ISO strings stay strings unless a YAML parser later coerces them.
Is the output valid for Helm or Ansible?
Structurally yes for plain maps. Chart and playbook conventions (templates, filters) are out of scope.