Convert

XML to JSON Converter

Convert XML elements and attributes into inspectable JSON without resolving external entities.

Free No sign-up Local session
Stays in this tabCtrl/⌘ + Enter
XML inputXML4 lines
JSON outputJSON1 line
Up to 2 MB · processed locally
How it works

Use XML to JSON in three steps

  1. 01

    Paste an XML document.

  2. 02

    Convert it to JSON.

  3. 03

    Inspect attributes, text, and repeated nodes.

Quick example

From input to useful output

Convert XML elements and attributes into inspectable JSON without resolving external entities.

<team name="platform">
  <member active="true">Maya</member>
  <member active="false">Noah</member>
</team>
Common questions

XML to JSON Converter FAQ

Are XML attributes preserved?+

Yes. Attributes are grouped under an @attributes property in the output.

Are external XML entities loaded?+

No. DOCTYPE declarations and external entities are rejected for safety.