# XML to JSON Converter > Convert XML documents to JSON format — instant conversion as you type. ## What does this tool do? Parses XML input and converts it to a structured JSON object: - Elements become JSON object keys - Attributes become @attributeName keys - Text content becomes string values - Repeated elements become arrays ## Example XML input: ```xml John 30 reading coding ``` JSON output: ```json { "user": { "name": "John", "age": "30", "hobbies": { "hobby": ["reading", "coding"] } } } ``` ## How to use 1. Go to https://toolscanvas.com/tools/xml-to-json 2. Paste XML into the input field 3. The JSON output appears instantly ## Privacy & Cost - Runs 100% in the browser. No data is sent to any server. - Free. No signup required.