Go to File Converters

File Converters

XML to JSON Online

Convert simple XML into formatted JSON.

Runs in your browserNo upload requiredNo signup required

XML to JSON converter

Convert simple XML documents into formatted JSON with attributes preserved.

Workflow

  1. 1Paste XML into the input box.
  2. 2Click Convert to JSON.
  3. 3Review the formatted JSON output.
  4. 4Copy the JSON for development or data cleanup.

FAQ

Are XML attributes preserved?

Yes. Attributes are kept under an @attributes key in the JSON output.

What happens with repeated XML tags?

Repeated child tags are converted into arrays.

Does this XML converter upload files?

No. The XML is parsed in your browser.

Related tools