ToolsOnline

Online XML to JSON Converter

Attributes under @attributes, repeated elements as arrays


        

About this XML to JSON converter

Paste XML to get formatted JSON (2-space indent): elements become objects, attributes are collected under the @attributes key; elements with only text and no attributes map straight to strings, while text of elements that also carry attributes goes into the _text key.

Repeated sibling elements with the same name are merged into arrays automatically, and all parsing/conversion uses the browser's native DOMParser — malformed input reports the parser's reason. The result copies with one click, handy for turning config files, RSS or SOAP responses into frontend-friendly data. Everything runs locally; nothing is uploaded.