Home About Contact
Categories
Text Tools 51 Calculators 42 Converters 31 Developer Tools 64 SEO Tools 29 Image Tools 54 Security Tools 13 Social Media 28 Document Tools 54 Utility Tools 67 Health & Fitness 52 Finance Tools 78 Education & Study 84 Audio & Video 29 Printables & Templates 50 Games & Puzzles 30

XML to JSON Converter (and JSON to XML)

Convert XML to JSON and JSON to XML online – attributes, arrays and nested elements handled, with pretty output and validation.

Developer Tools Free Private

Input

Output

What is the XML to JSON Converter?

Convert XML documents (RSS feeds, SOAP responses, sitemaps, config files) into clean JSON for JavaScript and APIs – or go the other way and turn JSON into well-formed XML. Attributes become @attributes, repeated elements become arrays and text content is kept.

How to use the XML to JSON Converter

  1. Choose the direction.
  2. Paste XML or JSON.
  3. Press Convert and copy the result.

Conversion rules

  • Element attributes → "@attr": value
  • Repeated sibling elements → JSON array
  • Text inside an element with attributes → "#text"

This XML to JSON Converter is 100% free, needs no signup and runs privately in your browser – on phone, tablet or computer.

Last updated: · By NodifyTech