What this tool does
Parses XML and outputs a JSON representation. Attributes, text nodes, and nested elements are all preserved.
Data and text tool
Convert XML to JSON instantly. Useful for working with legacy APIs, SOAP responses, RSS feeds, and config files in modern JavaScript applications.
Complete guide
Developer tools guide for xml to json converter users.
XML is still used extensively in enterprise software, SOAP APIs, RSS/Atom feeds, configuration files, and government data exports. Converting to JSON makes it usable in modern JavaScript applications and APIs.
This tool parses XML and outputs a clean JSON representation. Attributes are preserved under an '@attributes' key by default. Text content is under '#text'.
Parses XML and outputs a JSON representation. Attributes, text nodes, and nested elements are all preserved.
Paste XML. Click Convert. Copy or download the JSON. Attributes appear as '@attributes' keys.
SOAP API response processing, RSS feed parsing, Android/iOS resource file conversion, config file migration.
Answers
Attributes are nested under an '@attributes' key in the JSON for each element that has them.
Repeated sibling elements with the same tag name become a JSON array.
Namespace prefixes are preserved as part of the key name (e.g. 'ns:element' becomes 'ns:element' in JSON). Namespace declarations are stored as attributes.
Yes — use the JSON to XML tool.