Convert YAML (config files, Kubernetes manifests, OpenAPI specs, front matter) into formatted JSON. The YAML is parsed in your browser with the open-source yaml library bundled into this page; nothing is uploaded.
How to use
- Paste YAML into the input box.
- Click Convert.
- Copy the pretty-printed JSON (2-space indent) from the output box.
Good to know
- Syntax errors are shown with the parser’s message, which usually includes the line and column.
- Files with several documents separated by
---show an error. Convert them one document at a time. - Comments are dropped, because JSON has no comments.
- YAML anchors and aliases are resolved into plain values.
Related
JSON formatter · JSON Schema generator · JSON to CSV
How we check
Checked against the tool’s unit tests and a manual run in a desktop browser on 2026-11-13 (Asia/Colombo). Corrections: [email protected].