Xml Json Converter
Convert XML to JSON and JSON to XML using the browser's DOMParser.
XML input
Output
DOMParser is not defined
About the Xml Json Converter
Parse XML documents into JSON using the native DOMParser, preserving attributes and repeated elements as arrays, or generate well-formed XML from JSON objects.
Examples
Simple XML
<a><b>1</b></a>Output
{"a":{"b":"1"}}Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Csv To Json
Converters
Convert between CSV and JSON with delimiter and header options.
INI to JSON Converter
Converters
Convert INI config files to JSON and back.
Sql To Json
Converters
Parse simple SQL INSERT INTO statements into JSON rows.
Yaml Json Converter
Converters
Convert YAML to JSON and JSON to YAML.
Csv To Markdown Table
Converters
Convert CSV into a Markdown or HTML table with alignment options.
Markdown To Html
Converters
Convert Markdown to HTML with a live preview.
Frequently asked questions
Read more
- A practical guide to formatting, validating and converting JSON
Indentation, key sorting, common parse errors, and when to convert JSON to YAML, XML or CSV instead.
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser