Convert XML to JSON Online

Parse XML elements, attributes, and repeating nodes into clean JSON objects.

Accurate XML to JSON Data Mapping

Converts nested XML tags into JSON objects, automatically groups repeating sibling tags into JSON arrays, and preserves attributes with the `@_` prefix.

How XML Attributes and Text Nodes Are Handled

An element like `<price currency="USD">49.99</price>` cleanly converts to `{"price": {"@_currency": "USD", "#text": 49.99}}`.

Modernize SOAP & RSS Feeds for JavaScript Apps

Inspect and convert legacy XML responses into ready-to-use JSON structures for React, Node.js, and TypeScript applications.

Frequently Asked Questions

Are XML attributes preserved when converting to JSON?

Yes, attributes are preserved as properties prefixed with `@_` so zero metadata is lost during conversion.

How are repeating XML tags converted?

Multiple sibling tags with the same name (e.g., multiple `<item>` elements inside `<channel>`) are automatically grouped into a JSON array.

Are numbers and booleans in XML text nodes parsed as JSON types?

Yes, numeric and boolean text values are parsed into native JSON numbers and booleans.