Tool capabilities
- Input
- XML
- Output
- JSON
How to use XML to JSON
Convert XML elements and attributes to JSON while preserving text values as strings. This xml to json works directly in your browser and is free to use without an account.
- Paste or open your input in the editor.
- Run the tool and inspect the output. If the input is invalid, correct the reported error and run it again.
- Copy the result or download it to your device.
XML to JSON · Example
Input
<tools><tool local="true">LocalKit</tool></tools>
Output
{
"tools": {
"tool": {
"#text": "LocalKit",
"@_local": "true"
}
}
}Usage notes
Inputs and results are processed on this device. Tool content is not sent to a processing server.
XML DTD and entity declarations are disabled. Formatting may change whitespace; XML to JSON keeps tag values as strings and prefixes attributes with @_.
XML input is limited to 1 MiB.