Convert XML documents to JSON format for use in APIs, databases, and modern JavaScript applications. Handles nested elements, XML attributes, CDATA sections, and RSS/Atom feeds. The output JSON reflects the XML structure with attributes prefixed by @_ for clarity. Useful for consuming legacy SOAP APIs, parsing RSS feeds, or processing XML data exports.
Paste your XML
Paste any valid XML — data files, RSS feeds, SOAP responses, Android resource files, configuration files, or SVG data.
Click Convert
fast-xml-parser parses the XML into a JavaScript object. Element text content, attributes (prefixed @_), and nested child elements all map to JSON properties.
Review the structure
XML's hierarchical structure maps naturally to JSON objects. Elements with multiple children of the same tag become JSON arrays. Attributes appear as @_attributeName properties.
Copy or download
Copy the formatted JSON or download it as a .json file for use in your application.