YAML ↔ JSON Converter
Edit either side and the other updates instantly — paste YAML on the left to see its JSON equivalent, or paste JSON on the right to see it as YAML. Both panes stay editable, so you can round-trip between config file formats without leaving the page. Invalid input is flagged with the exact line and column of the problem.
Frequently asked questions
Are comments preserved when converting?
Comments in the YAML pane stay exactly as you typed them, since editing that side never overwrites it. But JSON has no concept of comments, so any comments are necessarily dropped from the JSON output, and converting from JSON back to YAML can't restore comments that never existed there.
What YAML features are supported?
This uses a standard YAML 1.2 parser, so anchors, multi-document markers, flow and block styles, and typed scalars (dates, numbers, booleans) are all handled.