json-tools .ru

JSON to YAML

Parses JSON and renders it as block-style YAML — handy for Kubernetes manifests, CI configs, and docker-compose files.

How the conversion works

The JSON is first turned into plain Python structures (dict, list, str, bool, number), then PyYAML serializes them in block style: nested objects get indented, arrays render as dash-prefixed lists.

What to watch for

JSON true/false/null become unquoted YAML true/false/null. Strings that look like numbers or booleans (a ZIP code like "10115", for example) get auto-quoted on output so YAML doesn't reinterpret them as a number or boolean.

Format
JSON → YAML
Source text Paste text or upload a file
Result Type is not detected yet
Statistics appear after formatting