Convert XML documents to JSON format using the browser DOM parser. Handles attributes, nested elements, and text content.
Click Convert or press Ctrl+Enter...
This tool fixes one thing. Our scanner runs 240+ checks across 10 SEO pillars and hands you a prioritised fix list — plus a savage AI roast.
XML to JSON is a conversion tool that transforms XML (Extensible Markup Language) documents into JSON (JavaScript Object Notation) format. It uses the browser's built-in DOMParser for reliable XML parsing, converts element attributes to @attribute keys, preserves text content as #text values, and automatically detects arrays when multiple sibling elements share the same tag name. Ideal for converting API responses, config files, or data feeds from XML to JSON.
Enter or paste XML content into the left text area. Click Load Example for a sample document.
Press Convert or Ctrl+Enter to parse the XML and generate JSON output.
The formatted JSON appears in the right panel. Attributes appear as @attr keys, text content as #text.
Click Copy to copy the JSON to your clipboard for use in your code or APIs.
Convert Unix timestamps to human-readable dates and back. Supports seconds and milliseconds.
Convert numbers between binary, octal, decimal and hexadecimal bases instantly.
Convert between Celsius, Fahrenheit and Kelvin with instant results and formula display.
Convert length, weight, volume, speed, area and data units. 50+ unit types supported.
Convert between bytes, KB, MB, GB, TB and PB. Binary (1024) and decimal (1000) modes.
Convert Roman numerals to Arabic numbers and back. Supports values up to 3999.