XML to JSON Converter - By URL or Pasted XML API avatar

XML to JSON Converter - By URL or Pasted XML API

Pricing

$10.00 / 1,000 file converteds

Go to Apify Store
XML to JSON Converter - By URL or Pasted XML API

XML to JSON Converter - By URL or Pasted XML API

Convert XML to JSON. Input: url or xmlText. Output: clean JSON preserving attributes, handling namespaces, and producing predictable arrays for repeated elements. No parser setup needed - cheap pay-per-result at $0.01 per file converted.

Pricing

$10.00 / 1,000 file converteds

Rating

0.0

(0)

Developer

Anthony Snider

Anthony Snider

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

XML to JSON Converter

Turn any XML into clean, predictable JSON — attributes preserved, namespaces handled, no parsing headaches.

Live on the Apify Store — run it instantly or call it as an agent tool via Apify MCP.

What you get

  • Convert XML by URL (RSS feeds, sitemaps, SOAP responses, configs) or by pasting raw XML.
  • Attributes preserved with a clean @ prefix (e.g. @id, @href).
  • Automatic root element detection so you always know the document shape.
  • Bulk mode: pass an array of URLs and get one JSON result per document.
  • Per-document size cap (maxBytes) to stay safe and fast.

Input

{
"url": ["https://www.w3schools.com/xml/note.xml"],
"maxBytes": 5242880
}

Or paste raw XML:

{
"xml": "<note id=\"1\"><to>Tove</to><from>Jani</from></note>"
}

Output

{
"url": "https://www.w3schools.com/xml/note.xml",
"finalUrl": "https://www.w3schools.com/xml/note.xml",
"status": 200,
"bytes": 224,
"root": "note",
"json": {
"note": {
"to": "Tove",
"from": "Jani",
"heading": "Reminder",
"body": "Don't forget me this weekend!"
}
}
}

Each input produces exactly one dataset item.