YAML to JSON
Convert YAML config into JSON.
Loading tool…
How to use YAML to JSON
Paste your YAML, or drop a .yaml or .yml file into the editor.
The JSON appears on the right; parsing errors point at the offending line.
Copy the JSON or download it as a .json file.
Frequently Asked Questions
Which YAML features are supported?
Nested mappings, sequences, inline flow collections, quoted strings, block scalars and comments. Anchors, aliases and multi-document streams are not supported.
What happens to my comments?
JSON has no comment syntax, so comments are dropped during the conversion. The data itself, including key order, is preserved exactly.
Is it safe to paste secrets?
The parsing runs entirely in your browser and nothing is uploaded, so a manifest containing environment variables or keys stays on your device.
Related tools
Looking for something else? Browse all developer tools.