Convert YAML to JSON
Paste YAML or upload a .yaml / .yml file and this tool converts it into nicely formatted JSON. It is handy for configuration files — Kubernetes manifests, Docker Compose, GitHub Actions or OpenAPI specs — when a tool or API expects JSON.
Anchors and aliases are resolved, and a file with several YAML documents (separated by ---) becomes a JSON array. If the YAML is invalid, you see the error with its line number. Everything runs in your browser.
Why Use This YAML to JSON Converter?
- Formatted, readable JSON output
- Anchors, aliases and multi-document YAML supported
- Clear error messages with line numbers
- Runs in your browser — nothing is uploaded
How to Convert YAML to JSON
- Paste your YAML into the left editor, or load a file from your computer or a URL
- Click "Convert"
- Copy the JSON or download it as a file
Frequently Asked Questions
Is this YAML to JSON converter free?
Yes, it is completely free and has no limits.
What happens with several YAML documents in one file?
Documents separated by --- are converted into a JSON array with one element per document; a single document becomes a single JSON value.
Are anchors and aliases supported?
Yes. Anchors (&name) and aliases (*name), including merge keys (<<), are resolved, so the JSON contains the full values.
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser; your YAML never leaves your device.