YAML ↔ JSON Converter
Pick a direction, paste your text and press Convert.
How to use
This is the tool for the seam where two formats meet: a service config written in YAML but an API that wants JSON, or the other way round. Nesting of any depth is handled, along with lists, quotes, comments and block text using | and >.
When the input is malformed you get the line number and what went wrong, rather than a flat refusal. That saves real time: YAML almost always breaks on indentation, and knowing the line is usually enough.
FAQ
Are anchors and references supported?
No. Anchors (&) and references (*) need a full YAML parser, which weighs more than this entire site. The tool says plainly that it found an anchor instead of quietly producing a wrong result — expand them by hand and try again.
What about multiple documents in one file?
Files with --- separators between documents need converting one part at a time. The tool notices and tells you.
What happens to comments when converting to JSON?
They disappear, because JSON has no comments. That is a limitation of the format, not of the tool.
Is my data sent to a server?
No. Configs often carry internal hostnames and names, so all conversion happens in your browser.