XML, YAML & JSON Converter
Convert structured data while keeping values and XML attributes explicit.
Local processing · Up to 200,000 characters. Review the XML mapping below before using XML output in another system.
Understand the conversion
XML → JSON/YAML uses {"$xml":{"name":"root","attributes":{},"children":[]}}. Children retain element order and text; attributes stay strings.
JSON/YAML → XML uses a typed data document to preserve objects, arrays, numbers, strings, booleans, and null. A single $xml envelope instead restores the original XML tree.
Formatting and comments are lost. XML declarations, CDATA boundaries and processing instructions are omitted; XML whitespace normalization applies. YAML aliases, custom tags, non-string keys, and non-finite numbers are rejected. Numbers use JavaScript precision: quote precision-sensitive values as strings.
About XML, YAML & JSON Converter
Convert JSON-compatible YAML and JSON, or preserve an XML document as an ordered tree. Processing uses your browser’s XML parser and an established YAML parser, with no uploads. XML document types and entity declarations are rejected. Outputs are downloadable text files.