URL to XML
Fetch any live URL and get back a structured XML snapshot of the page — title, description, canonical URL, heading hierarchy, links and word count — for web services, data exchange, and system integration.
Input
The page is fetched server-side and returned as a structured XML snapshot.
Output
Guides
What this tool does
Enter a live URL and this tool fetches the page server-side and returns a structured XML document: the page's title, meta description, canonical URL, its full H1-H6 heading hierarchy, every link on the page (split into internal/external), and a word count. Useful for feeding a page's data into a system that expects XML — data exchange formats, legacy integrations, or an XML-based pipeline.
How to use it
- Enter the page's URL.
- Click Convert to XML.
- Copy the result or download it as an
.xmlfile.
Frequently asked questions
Why does this run on the server instead of my browser? Browsers block cross-origin page fetches (CORS) for most sites, so fetching an arbitrary URL has to happen server-side. Only the requested page is fetched; nothing else is stored.
I'd rather have JSON — is there a version of this? Yes — URL to JSON returns the exact same data, serialized as JSON instead.
What's in the links element?
Every <a href> link, resolved to an absolute URL and capped at 500 items for very large pages. Each <link> includes the link text and an internal flag (same host as the page you fetched, or not).
Does it run JavaScript on the page? No. It only sees the HTML the server returns on the initial request — content injected by client-side JavaScript after page load won't appear in the result.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/url-to-xml \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `url-to-xml` tool (URL to XML) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.