Convert YAML to JSON
Paste YAML or drop a .yml file for nicely formatted JSON right away. It validates as you type and points to the exact line of any mistake, all in your browser.
Converted on your device. Your data never leaves your browser.
Turning YAML into JSON
- 1
Paste the YAML into the input box, drop a .yaml or .yml file onto it, or press Open file.
- 2
Choose 2 spaces, 4 spaces or minified output.
- 3
Copy the JSON or press Download .json.
What makes this YAML to JSON converter handy
Errors with line numbers
Indentation slips and other YAML mistakes are reported with their line number, so it works as a YAML validator too.
Full YAML support
Anchors, aliases, merge keys, multi-line strings and comments are all understood.
Multi-document files
Files with several documents split by --- become a JSON array with one item per document.
Private and instant
Conversion happens in your browser, so API keys and secrets in configs stay on your device.
What people use the YAML to JSON converter for
Use configs in code
Load YAML settings into tools and languages that expect JSON.
Check YAML is valid
Errors point to exactly where indentation or syntax goes wrong.
Convert Kubernetes and Helm files
Get JSON for APIs and scripts.
OpenAPI specs
Turn YAML API definitions into JSON.
Also searched for as: YAML to JSON converter, YML to JSON, YAML parser online and YAML validator.
Related searches
- convert yaml to json online
- yml to json converter free
- kubernetes yaml to json
- docker compose yaml to json
- validate yaml by converting to json
Quick data conversions in the browser
Switch between CSV, JSON and YAML, or turn images into Base64, without installing anything. Everything is processed in your browser, so exports, customer data and API keys stay on your machine rather than going to someone else's server.
Questions & answers
Can I use this to validate YAML?
Yes – paste it in. If it converts, the YAML is valid; if not, you'll see the error and the line it's on.
What happens to comments in the YAML?
JSON doesn't support comments, so they're left out. Everything else, anchors and aliases included, is resolved into plain JSON values.
How are files with several YAML documents handled?
Documents separated by --- become a JSON array with one element each. A single document becomes a single JSON value.
Do my files get uploaded anywhere?
Never. The work is done by JavaScript running in your own browser, on your own device. Nothing is sent to a server or kept anywhere, which makes it safe for personal photos and sensitive data – and it carries on working even on a patchy connection.
You might also need
Guides for this tool
- How to Turn YAML into JSON online
- How to Turn YAML into JSON on Mac
- How to Turn YAML into JSON on Windows
- How to Turn YAML into JSON on Chromebook