URL to JSON
Fetch any live URL and get back a structured JSON snapshot of the page — title, description, canonical URL, heading hierarchy, links and word count — for API testing, data extraction, and web scraping.
Input
The page is fetched server-side and returned as a structured JSON snapshot.
Output
Guides
What this tool does
Enter a live URL and this tool fetches the page server-side and returns a structured JSON snapshot: 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. Use it for quick API testing, prototyping a scraper's expected data shape, or pulling a page's key facts into another program without writing your own HTML parser.
How to use it
- Enter the page's URL.
- Click Convert to JSON.
- Copy the result or download it as a
.jsonfile.
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.
What's in the links array?
Every <a href> link, resolved to an absolute URL and capped at 500 items for very large pages. Each entry includes the link text and whether it's internal (same host as the page you fetched) or external.
I need XML instead of JSON — is there a version of this? Yes — URL to XML returns the exact same data, serialized as XML instead.
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-json \
-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-json` tool (URL to JSON) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.