YAML to JSON Converter
Convert YAML to JSON and JSON to YAML — free, handling multi-document YAML, anchors and aliases. 100% in your browser; config files never uploaded.
100% private — runs entirely in your browser. Nothing you enter is uploaded or logged.
Handles multi-document YAML, anchors/aliases and standard type coercion. Converted entirely in your browser — config files never leave your device. Powered by the open-source js-yaml library.
How to use the YAML to JSON Converter
- Choose YAML to JSON or JSON to YAML.
- Paste your document.
- Read the converted output.
- Copy it into your config or code.
What you can use it for
- Convert Docker/Kubernetes/CI YAML to JSON
- Turn JSON into readable YAML config
- Resolve anchors and multi-document YAML
- Convert config files privately in the browser
More free tools
Wrangling code or data?
Format, encode, hash and minify with our free developer tools — 100% in your browser.
Browse all free developer tools →Frequently asked questions
How do I convert a YAML config to JSON?
Paste the YAML and it outputs formatted JSON; switch modes to go the other way.
Does it support multi-document YAML?
Yes — documents separated by — are parsed into an array of objects.
How are YAML anchors and aliases handled?
They're resolved during parsing, so the JSON output contains the expanded values.
Why did yes/no become true/false?
YAML coerces yes, no, on and off to booleans by default — quote them ("yes") if you need the literal string.
Is my config uploaded to convert it?
No — conversion is entirely in-browser, so Docker, Kubernetes and CI configs stay on your machine.