YAML to JSON Converter
Convert between YAML and JSON, both directions, in your browser.
Recommended next steps
Related tools
Format, validate, and beautify JSON, in your browser.
Format, indent, and validate XML, in your browser.
Convert JSON arrays to CSV and CSV back to JSON, in your browser.
Frequently asked questions
No. The conversion runs entirely in your browser using a JavaScript library loaded on this page. Your YAML and JSON never leave your device, so it's safe to paste config files or other sensitive data.
Yes. Use the toggle to switch between YAML to JSON and JSON to YAML. You can also press “Use output as input” to feed a result straight back in and flip the direction for a quick round trip.
YAML is whitespace-sensitive, so common causes are inconsistent indentation, a tab character used for indentation (tabs aren't allowed), or an unclosed bracket or quote. The error message shows the line and column the parser stopped at to help you locate it.
You choose 2 or 4 spaces with the indent selector, and it applies to both JSON and YAML output. Comments are not preserved, because YAML comments have no equivalent in JSON and are dropped during parsing.
Last updated 2026-06-23.