How do I use the YAML to JSON converter?
- Paste your YAML.
- Choose 2 spaces, 4 spaces or minified output.
- Copy or download the JSON.
YAML to JSON converter: frequently asked questions
Is my YAML uploaded anywhere?
No. The conversion runs entirely in your browser.
Does it support anchors and aliases?
Yes. Anchors (&) and aliases (*) are resolved into the JSON output.
What about multiple documents separated by ---?
Only the first document is converted. Split multi-document files and convert each one.
Why did my comments disappear?
JSON has no comments, so YAML comments are dropped in the conversion.
Why does “yes” become true?
This converter follows YAML 1.2, where only true/false are booleans. Quote values you want kept as text.
Can I convert JSON back to YAML?
Yes, use our JSON to YAML converter.
Why is my YAML invalid?
The most common causes are tabs instead of spaces, inconsistent indentation and unquoted strings containing a colon.
Is there a size limit?
Only your browser’s memory. Files of several megabytes convert fine on most devices.
Is there an API for this tool?
Selected tools are available through a rate-limited public API. Contact us if you need higher volumes.
Is the yaml to json converter free?
Yes. It is free with no sign-up and no usage limits for normal use.
