
Beautify, minify and validate JSON with clear error messages.
Convert YAML to JSON and back. Parser loads only when needed.
Your files never leave your device. Everything runs in your browser.
YAML ↔ JSON Converter moves configuration data between YAML and JSON in both directions using the js-yaml library. YAML is common for Docker Compose, Kubernetes, GitHub Actions and CI configuration, while JSON is the natural format for APIs and JavaScript, so the converter is a quick bridge between the two.
The YAML parser uses the safe schema: it resolves only standard types and never executes code or constructs custom classes. Anchors and aliases are expanded into their values, comments are dropped because neither JSON nor a re-dump of YAML can carry them, and a multi-document YAML stream is rejected with a clear message because JSON has no equivalent for it.
The library is loaded from the jsDelivr CDN the first time you convert, so the first conversion needs a network connection. Your data itself is never uploaded — only the parser script is downloaded.
name: Ada, age: 36, active: true and a two-item list become the matching JSON object with a number, a boolean and an array."yes" when the text must stay text.No. The conversion runs in your browser. The only network request is the one-time download of the js-yaml parser from jsDelivr, which contains no user data.
The converter uses the YAML 1.2 style safe schema, where only true and false are booleans. If you need a boolean, write true or false; if you need the literal word yes, quote it or accept it as the string it already is.
No. JSON has no comment syntax and a YAML re-dump would not keep them reliably, so comments are discarded. Copy important notes into your documentation or commit the commented YAML separately.
No. JSON represents a single document, so a multi-document stream is rejected. Remove the --- separators or convert each document separately.
They are resolved during parsing, so the JSON output contains the expanded values and no anchor references. Converting back to YAML will not recreate the anchors.
After the page has loaded the parser once, the browser may keep it cached, but the first conversion on a fresh visit needs internet access to fetch js-yaml from the CDN.
Related convert tools: JSON Formatter, CSV ↔ JSON Converter, XML Formatter, HTML/CSS/JS Minifier.
Your YAML and JSON stay in the browser; only the parser script is downloaded from the CDN.