Search for a tool or command
Parse XML into predictable JSON with clear attribute and text mapping.
Convert XML documents into clean, predictable JSON without leaving your browser. This XML to JSON converter maps elements to keys, exposes attributes under an @ prefix, and places element text under a #text key so nothing is lost. It handles nested structures, repeated elements and mixed content, unescaping entities like & back into their real characters.
Paste a well-formed XML document - a SOAP response, feed, or config file. The declaration and namespaces are parsed correctly.
The parser walks the XML tree, converting elements, attributes, and text into a consistent JSON shape.
Copy the resulting JSON or download it, then consume it in a modern app that prefers JSON over XML.
Attributes map to @-prefixed keys; text with attributes uses #text.
Input
<catalog>
<product sku="A100">
<name>Wireless Mouse</name>
<price currency="USD">24.99</price>
</product>
</catalog>Output
{
"catalog": {
"product": {
"@sku": "A100",
"name": "Wireless Mouse",
"price": {
"@currency": "USD",
"#text": "24.99"
}
}
}
}Convert JSON into well-formed XML with attribute and element control.
Parse any YAML config into strict, valid JSON your code can consume.
Parse CSV into a clean array of typed JSON objects, header-aware.
Pretty-print JSON with configurable indentation and instant validation.