Skip to main content

URL to JSON

Third-party service

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

JSON output
 
Was this helpful?

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

  1. Enter the page's URL.
  2. Click Convert to JSON.
  3. Copy the result or download it as a .json file.

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.

webpage to jsonstructured datascrape jsonpage dataweb scraperapi testingjson export

Use it from code

From 3 credits per call

REST 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_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Part of a workflow

All collections

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.