XML to JSON Converter

Parse and convert XML markup and RSS feeds into structured JSON online free.

  • 100% free
  • Private in browser
  • No signup
  • No watermarks

Converted JSON

1 XML elements converted
{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<catalog category=\"books\">\n  <book id=\"bk101\">\n    <author>Gambardella, Matthew</author>\n    <title>XML Developer's Guide</title>\n    <genre>Computer</genre>\n    <price>44.95</price>\n    <publish_date>2026-08-30</publish_date>\n    <in_stock>true</in_stock>\n  </book>\n  <book id=\"bk102\">\n    <author>Ralls, Kim</author>\n    <title>Midnight Rain</title>\n    <genre>Fantasy</genre>\n    <price>5.95</price>\n    <publish_date>2026-08-15</publish_date>\n    <in_stock>false</in_stock>\n  </book>\n</catalog>"}

Rate this tool

Be the first to rate — helps others and improves this page.

About XML to JSON Converter

XML to JSON Converter on TheToolss transforms XML feeds, SOAP payloads, configuration files, and SVG data into cleanly formatted JSON. It seamlessly converts repeated elements into arrays, handles XML node attributes, strips whitespace noise, and outputs pretty-printed or compact JSON. All parsing runs client-side in your browser for complete privacy.

How to use XML to JSON Converter

  1. Paste your XML document into the input field or load a sample payload.
  2. Configure whether to include element attributes and choose compact or pretty JSON output.
  3. View the generated JSON structure and click Copy to clipboard.

Key features

  • Parses standard XML, RSS feeds, SOAP requests, and SVG trees
  • Automatically converts duplicate sibling elements into JSON arrays
  • Configurable XML attribute extraction (@attributes or merged)
  • Pretty-printed (2-space) or minified compact JSON formatting
  • 100% private and client-side parsing without remote server transmission

Frequently asked questions

How are repeating XML elements represented in JSON?
When multiple sibling XML tags share the same name (such as multiple <item> tags), the parser automatically groups them into a JSON array ([...]).
Are XML attributes preserved during conversion?
Yes. When "Include attributes" is enabled, XML attributes (e.g. <user id="123">) are preserved with an "@" prefix or merged cleanly into the JSON object.
Can I convert large XML or RSS feed files?
Yes. In-browser DOM parsing easily processes multi-megabyte XML feeds with high speed.
What happens if the XML has syntax errors?
The parser detects unclosed tags or syntax issues and provides clear error line indicators to help you fix the markup.
Is my XML payload stored or sent to a server?
No. Parsing occurs 100% locally within your browser using JavaScript. No XML code is ever sent over the network.
XML to JSON Converter Online Free | TheToolss