Converts XML documents into a JSON representation, preserving element hierarchy, attributes, and text content. Handles nested elements, repeated child elements (converted to arrays), and XML namespaces. Useful for working with legacy XML APIs or data sources in modern JavaScript applications.
Modernise XML data for use with JSON-based APIs and tools without writing a custom parser. To go the other way, try the JSON to XML converter.
Simple XML
Input
<person><name>Alice</name><age>30</age></person>
Output
{"person":{"name":"Alice","age":"30"}}Convert a JSON object or array to an XML document.
Format, beautify, and validate XML documents.
Beautify, minify, and validate JSON with syntax highlighting.
Convert CSV data into a JSON array of objects.
Convert Markdown to HTML instantly.
Convert HTML markup to clean Markdown syntax.