JSON ⇄ YAML
Type in either box — the other updates instantly.
Processed locally. Your data never leaves your browser.
Common questions
Are YAML comments preserved when converting to JSON, or back to YAML again?
No — JSON has no concept of comments, so converting YAML → JSON discards them, and converting that JSON back to YAML has no way to bring them back. Round-tripping through JSON will always lose any comments in the original YAML.
Does this support YAML anchors and aliases (&name / *name)?
Yes — an alias is resolved to a full copy of the anchored data in the JSON output, rather than being rejected or left as a raw, unresolved reference.
Is this safe against malicious YAML, like YAML that tries to instantiate arbitrary object types?
Yes — YAML parsing uses this library's safe default loader, which rejects non-standard type tags (like !!js/function) rather than the unsafe schema some YAML libraries offer, which can be used to execute arbitrary code from crafted input. Verified directly by feeding it such a tag and confirming it's rejected, not silently accepted.