JSON ↔ YAML Converter
Convert JSON to YAML or YAML to formatted JSON locally with safe YAML 1.2 parsing, bounded aliases, and preserved key order.
Runs entirely in your browser. Nothing you type is uploaded.
About this tool
Choose a direction, paste JSON or YAML, and convert it entirely in your browser while preserving mapping order where both formats allow. YAML uses the safe core schema, rejects custom tags, and limits alias expansion and input size.
Questions & answers
- Can this converter execute YAML tags or code?
- No. It uses the YAML 1.2 core schema without custom tags, merge keys, or arbitrary code execution.
- How are YAML anchors and aliases handled?
- Ordinary aliases can be converted, but expansion is capped to prevent an alias structure from creating an excessive number of nodes.
- Is object key order preserved?
- Yes, mapping entries keep their input order where JavaScript objects and the destination format support it.