Free YAML to JSON Converter
Convert YAML into clean, indented JSON, instantly and entirely in your browser.
How to convert YAML to JSON
-
1
Paste your YAML
Paste any block-style YAML document — a mapping, a list, or a nested structure — into the input box.
-
2
Click "Convert →"
The YAML is parsed and re-printed as indented JSON.
-
3
Copy or download
Click "Copy JSON" to grab the text, or "Download .json" to save it as a file.
Example use cases
Reading a config file in code
Turn a Docker Compose, Kubernetes, GitHub Actions or CI config into JSON so it's easy to parse or feed into a script.
Migrating between formats
Move data from a YAML-based tool into a system or API that only accepts JSON.
Debugging a config value
See exactly how YAML's indentation and shorthand resolve into explicit JSON keys and values.
Frequently asked questions
What does this converter do?
It reads block-style YAML — mappings, sequences and scalars — and re-prints the same data as indented JSON.
Which YAML features are supported?
Nested maps and lists via indentation, quoted and unquoted strings, numbers, booleans, null/~, comments (#), and simple flow-style arrays and objects like [a, b] or {a: 1, b: 2}.
What happens with invalid or unusual YAML?
If a line can't be parsed — for example inconsistent indentation or a missing colon — the tool shows an error message pointing at the problem instead of guessing.
Is my data uploaded anywhere?
No. Conversion happens locally in your browser using JavaScript — nothing you paste is sent to a server.