XML to JSON
Convert XML markup to a clean JSON object instantly online, for free. Perfect for parsing SOAP responses, RSS feeds, and legacy XML APIs.
Attributes become @name keys; text nodes use #text; repeated sibling tags become arrays.
JSON output will appear here...
More
Part of the JSON Toolkit.
Related tools
XML Formatter
Format, validate, and beautify XML markup online with proper indentation, for free.
JSON Formatter
Format, validate, and minify JSON online for free.
YAML to JSON
Convert YAML to JSON online, free and instant.
CSV to JSON
Convert CSV data or spreadsheet files to a JSON array instantly online, for free.
Frequently asked questions
How do I use XML to JSON?+
Paste any well-formed XML and get a clean JSON object. Attributes are preserved with an @ prefix, repeated sibling tags become arrays. Well-formedness errors are shown in plain English. Useful for SOAP responses, RSS feeds, and legacy XML APIs