YAML to JSON Converter
Convert Kubernetes manifests, Docker Compose files, OpenAPI specs and CI configs between YAML and JSON in either direction — with validation built in.
How to use the YAML to JSON Converter
- Paste YAML (or JSON) into the box.
- Choose the JSON indentation.
- Press YAML → JSON or JSON → YAML and copy the result.
About the YAML to JSON Converter
YAML and JSON describe the same kinds of data — maps, lists, strings and numbers — but YAML is designed for people to write and JSON for programs to exchange. Converting between them is a daily task: many APIs accept only JSON, while Kubernetes, GitHub Actions and Ansible are written in YAML. Indentation errors are the most common YAML problem, and this converter reports the line and column so you can fix them quickly. It uses js-yaml, a widely used open-source parser, and supports multi-document YAML separated by ---.
Frequently asked questions
Why does my YAML fail to convert?
Usually inconsistent indentation, tabs instead of spaces, or a colon inside an unquoted value. The error message gives the line and column.
Does it support multiple documents with ---?
Yes. Multi-document YAML becomes a JSON array with one item per document.
Are comments kept?
JSON has no comments, so YAML comments are dropped when converting to JSON.
Is my config uploaded?
No. Conversion runs entirely in your browser.
Related free tools
- Hash Generator — SHA-256 / SHA-1 / SHA-512 of any text.
- Regex Tester — Test regular expressions with live match highlighting.
- Unix Timestamp Converter — Timestamp ⇄ human-readable date.
- Markdown Preview — Live preview of headings, bold, lists, links & code.
- CSV ⇄ JSON — Convert CSV data to JSON and back.
- HTML Viewer & Tester — Paste any HTML/CSS/JS and see the live output instantly.
Runs in your browser — what you enter stays on your device. Published .