XML to JSON Converter

Parse XML documents, RSS feeds, and SOAP payloads into normalized JSON structures.

Initializing Data Studio Workspace...

Conversion Guide

XML to JSON Conversion & Tree Parsing Guide

Turn XML into JSON objects. Attributes, nested elements and text content are all kept.

  1. 01

    Input XML Document

    Paste XML markup into the editor. Supports standard XML tags, attribute nodes, and XML property elements.

  2. 02

    Automatic Element Coercion

    Numeric strings and boolean values inside XML nodes are automatically coerced to JSON numbers and booleans.

  3. 03

    Read the JSON

    Attributes appear as keys starting with `@`, text next to child elements appears under `#text`, and numbers and true/false values become real JSON numbers and booleans. DOCTYPE and ENTITY declarations are removed before parsing, so entity tricks such as XXE are not processed.

Frequently Asked Questions

Answers about this tool.

How are XML attributes converted to JSON?

Each attribute becomes a property whose name starts with `@`. For example, `<user id="7">` gives `"@id": "7"`.

Are XXE vulnerabilities blocked during XML parsing?

Yes. DOCTYPE and ENTITY declarations are stripped before the XML is parsed, and parsing happens in your browser, which does not fetch external entities.

Related tools

🍪 We value your privacy

We use strictly necessary cookies to run this site (login, billing). With your consent, we'd also like to use cookies to serve personalized ads and analyze our traffic. Declining only turns off those optional cookies. Read more in our Privacy Policy.