// free-toolXML → JSON

XML to JSON

Paste XML and get structured JSON: attributes are kept with an @_ prefix, repeated sibling elements collapse into arrays, and text content is preserved. Parsing runs locally with fast-xml-parser — useful for taming legacy SOAP or RSS payloads.

Loading tool…

no signup · no watermark · unlimited use

Frequently asked questions

How are XML attributes handled?

They are preserved on the JSON object with an @_ prefix (e.g. @_id), so no information from the XML is lost.

Is my XML uploaded?

No — parsing happens in your browser.

More data tools

Need custom tools like this in your product?

I build fast, privacy-first web applications with Next.js — these converters run entirely in the browser, and yours can too.

Start a conversation