YAML to JSON Converter
Convert YAML to JSON in your browser. Anchors and multiple documents are supported, and if your YAML has a mistake you see the exact line and column.
How to use YAML to JSON Converter on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with YAML to JSON Converter
Everything this tool offers.
About YAML to JSON Converter on KickSolve
What it does and how to get the best results.
How YAML becomes JSON
YAML is parsed into objects, lists and values, which are then written as JSON. Mappings become objects, sequences become arrays, and plain values become strings, numbers, booleans or null depending on how they are written.
Dates stay as text
Some YAML tools turn a value like 2024-01-05 into a date, which then changes when written as JSON. This tool keeps such values as text, so the output matches what you typed.
Anchors, aliases and multiple documents
Anchors (&name) and aliases (*name) are replaced by the data they point to, and merge keys (<<) are resolved. A file with several documents separated by --- is written as a JSON list with one entry per document.
Errors
YAML depends on indentation, so a single misplaced space can break a file. When that happens the tool shows the line and column, the reason and the lines around it. Remember that YAML does not allow tabs for indentation.
Limits
Very large files are converted on the main page thread and may take a few seconds. The result box shows the first 400,000 characters, and Copy and Download give you everything.
Read our privacy policy for details about the site itself.
Frequently asked questions
Quick answers.
Is this YAML to JSON converter free?
Yes. It is free with no sign-up.
Is my YAML uploaded anywhere?
No. The conversion runs in your browser and nothing is sent to a server.
What if my YAML has an error?
You will see the line and column, the reason, and the lines around the problem, with a button to jump to it.
Does it support anchors and aliases?
Yes. Anchors and aliases are replaced with the data they point to, and merge keys are resolved.
What happens with several documents in one file?
Documents separated by --- are combined into a JSON list with one entry per document.
Why is my date still text?
Dates and times are kept exactly as written so the JSON matches your YAML. If you need a different format, convert it after.
Can I convert JSON back to YAML?
Yes. Use the JSON to YAML converter on this site.
More free tools from KickSolve
Related everyday tools.