Xml Json Converter

Convert XML to JSON and JSON to XML using the browser's DOMParser.

Support
Works Offline
Privacy First
No Login
No API

XML input

Output

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

Frequently asked questions

Read more

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser