Nested structures
JSON objects and arrays are converted with readable indentation.
Quickly transform your JSON into clean, indented YAML. This free online converter preserves data types, ordering, and nested structures, making it ideal for Kubernetes manifests, docker-compose files, and CI/CD configs. No download required, completely browser-based.
Converted output will appear hereJSON objects and arrays are converted with readable indentation.
Your JSON data stays on your device.
Useful for Docker Compose and CI/CD configuration files.
import yaml from "js-yaml";\nimport { readFile } from "node:fs/promises";\n\nconst input = JSON.parse(await readFile("data.json", "utf8"));\nconsole.log(yaml.dump(input));