Free · runs in your browser · no upload · no quota
YAML to JSON Converter
Paste YAML — a Kubernetes manifest, a Compose file, an OpenAPI spec — and get JSON back. Anchors and aliases are resolved, and a file with several documents (separated by ---) becomes a JSON array.
How to Convert YAML to JSON
- Add your YAML
Paste it into the left box or open a .yaml / .yml file. Errors are reported with their line and column. - Choose the output style
Pretty-printed JSON is easier to read; turn it off for compact, single-line JSON. - Copy or download the JSON
Copy the result, or click Download to save a .json file.
Example
service: web ports: - 80 - 443 env: DEBUG: false
{
"service": "web",
"ports": [
80,
443
],
"env": {
"DEBUG": false
}
}Frequently Asked Questions
-
Does it support anchors (&) and aliases (*)?Yes. They are resolved, so the JSON contains the full values.
-
What happens with several YAML documents in one file?Each document separated by
---becomes one element of a JSON array. -
Where is the error in my YAML?If the YAML cannot be parsed, the message shows the line and column of the problem — most often an indentation mistake or a tab character.
-
Is my file uploaded?No. It is parsed in your browser and never leaves your device.