XML to JSON Converter
Paste XML content to convert it into a JSON object. Handles attributes (prefixed with @), nested elements, sibling arrays, CDATA sections, and empty elements. Works with RSS feeds, SOAP responses, and any XML data.
Advanced options
Include XML attributes prefixed with @
Result
Code snippets
What this tool checks
- XML attributes preserved with @ prefix
- Sibling elements auto-grouped as arrays
- CDATA section text extraction
- Empty elements converted to null
- Namespace handling
- XXE attack prevention
Automate this with the API
Run this tool programmatically from your code. Get a free temporary API key with 20 requests/day — or register for 75 requests/day.
curl https://apixies.io/api/v1/xml-to-json?xml=... \
-H "X-API-Key: YOUR_API_KEY"
Frequently asked questions
How are XML attributes handled?
What happens with repeated sibling elements?
Is this safe to use with untrusted XML?
Related tools
HTML to PDF Converter
Paste HTML content to convert it to a downloadable PDF. The converter supports full CSS styling, custom fonts, tables, images, and page layout. Useful for generating invoices, reports, certificates, or any document from HTML templates.
Markdown to HTML Converter
Paste Markdown text to convert it to clean HTML. Supports GitHub Flavored Markdown (GFM) including tables, fenced code blocks, task lists, strikethrough, and auto-linking. The output is sanitized HTML ready to embed in your pages.
JSON to CSV Converter
Paste a JSON array of objects to convert it to CSV format. The tool automatically extracts headers from object keys and flattens nested structures. Useful for data export, spreadsheet preparation, or converting API responses into formats that work with Excel or Google Sheets.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text. Base64 encoding converts binary data to ASCII text, commonly used for embedding data in URLs, emails, HTML, and API payloads. The tool supports standard Base64 encoding.