XML to JSON Converter

Convert XML to JSON, keeping attributes, repeated elements and text.

How is XML converted to JSON?

XML to JSON conversion reads an XML document and represents each element as a JSON property, repeated elements as arrays and attributes as prefixed keys, so XML feeds and APIs can be used easily in JavaScript.

How to use the XML to JSON Converter

    Frequently asked questions

    Are XML namespaces supported?

    Yes, prefixed element and attribute names are kept as they are, e.g. "xhtml:link".

    Why is a single element not an array?

    Elements become arrays only when they repeat. A single child is a plain value.

    Is my XML uploaded?

    No, it is converted in your browser.