Convert JSON to YAML and YAML to JSON side by side in your browser. Set the indent size, array indentation and key sorting, then copy or download. Parse errors show the line and column, so broken Kubernetes manifests or config files are easy to fix.
JSON and YAML describe the same kinds of data (objects, arrays, strings, numbers, booleans and null) with different syntax. JSON is common in APIs; YAML is popular for configuration such as Kubernetes manifests, Docker Compose files and CI pipelines. This tool shows a JSON editor and a YAML editor next to each other and converts in either direction.
.json or .yaml extension.- list items under their parent key, or keep them aligned with itTo YAML with indent size 2:
With Array indent unchecked, the list items start at the same column as ports:.
&ref / *ref) are expanded into full copies.2024-01-01 become ISO 8601 strings like "2024-01-01T00:00:00.000Z" in JSON.--- cannot be converted at once; convert one document at a time.No. Both directions are converted in your browser with the js-yaml library; nothing is sent to a server.
yes and no converted to booleans?No. The parser follows YAML 1.2, where only true and false are booleans. yes, no, on and off stay strings.
The YAML contains more than one document separated by ---. Remove the extra documents or convert them one by one.