YAML to JSON Converter — K8s, Docker Compose & All YAML 1.2
Paste YAML and get formatted JSON instantly. Handles Kubernetes manifests, Docker Compose, anchors, and all YAML 1.2 features. Runs in your browser — nothing sent to a server.
Keywords: yaml to json, convert yaml to json, yaml json converter, yml to json, yaml parser, kubernetes to json, yaml transformation, config parser
Frequently Asked Questions
Does it support all YAML features?
Yes, including anchors, aliases, multi-line strings, and all YAML 1.2 specifications using the js-yaml library.
Are YAML comments preserved?
YAML comments are discarded during conversion since JSON doesn't support comments. The structure and data are fully preserved.
Can I convert Kubernetes manifests?
Absolutely! The tool handles Kubernetes YAML files, Docker Compose configs, and other complex YAML documents.
What about YAML anchors and aliases?
Anchors and aliases are resolved during conversion, with referenced content duplicated in the JSON output.
Is formatting customizable?
Yes, you can choose between 2-space, 4-space indentation, or minified JSON output.