XML to JSON Converter

Convert XML to JSON, keeping attributes with an @ prefix and turning repeated elements into arrays.

How to use XML to JSON Converter

  1. Paste XML.
  2. Copy or download the JSON.

Supported features and limitations

Invalid XML shows an error message. All values come out as strings, and element order between different names is not preserved.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

How are attributes shown?

As keys starting with @, for example "@id".

Does it support namespaces?

Prefixed names are kept as written.

Related tools

More Text & Document Tools · All free tools