YAML to JSON
Transform YAML to JSON directly in your browser. Without uploading to the server.
YAML
JSON
- File size — up to 20 MB
- Input — valid YAML
- Nested objects and arrays are supported
About the YAML to JSON converter
YAML is a convenient format for configuration files: Docker Compose, Kubernetes, Ansible, GitHub Actions. But sometimes you need to convert YAML to JSON — for example, to load it into an API or process it with a script. Our converter does this directly in the browser, without uploading the file to the server.
All data is processed locally — your configs and secrets (passwords, tokens) do not leave the device. This is important because YAML files often contain sensitive information.
What the converter can do
- Nested objects: any depth of nesting.
- Arrays: in block form (- item) and in inline form ([a, b, c]).
- Data types: strings, numbers, boolean, null.
- Quoted strings: single and double quotes.
- Multiline strings: via | and >.
- Comments: lines starting with # are ignored.
How to use
- Drop the YAML file, select it via the file browser, or paste the text manually.
- Click "Convert to JSON".
- Copy the result or download it as a data.json file.
Frequently asked questions
Where do my files go? Nowhere. The file is processed in the memory of your browser and disappears when you close the page.
What if the YAML contains multiple documents (via ---)? The converter will process only the first document. Multiple documents are not yet supported.
How to tell YAML from JSON? YAML uses indentation instead of curly braces. For example, key: value instead of {"key": "value"}.
Are anchors and aliases supported? No, those are advanced YAML features. The converter works with the basic syntax.