XML to JSON Converter
Convert XML to JSON online for free — everything runs in your browser.
Local browser processing
No sign-up required
Upload & download supported
ConvertConvert XML to JSON
XMLinput.xmlJSON
Indent
⌘⏎Quick convert
Input · XMLEditable
1
2
3
4
5
6
7
8
9
10
11
Output · JSONXML valid16 lines · 242 B
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"config": {
"service": {
"endpoint": "https://formatcodes.com",
"retries": "3",
"@_name": "format-codes",
"@_active": "true"
},
"tags": {
"tag": [
"json",
"xml"
]
}
}
}
UTF-8 · Indent: 2 spacesLocal processing · Ready
How It WorksXML → JSON
Overview
This XML to JSON converter parses an XML document and outputs it as JSON — tags become object fields, attributes are prefixed with @_, and text content uses the #text field. Unlike JSON↔YAML, there's no universal standard for XML to JSON conversion; this tool follows a common industry convention, making it easy to work with XML-derived data in JSON-only tools. Everything runs locally in your browser; your data never leaves your device.
Use Cases
Debug API responses by converting XML payloads to JSONTurn RSS / sitemap feeds into JSON for processingFeed XML data into tools that only accept JSONQuickly inspect the hierarchy of an XML document
Steps
123
Paste or uploadSet optionsGet the result