URL to HTML
Fetch any live URL and get back its raw HTML source — for web scraping, archiving, and development. Server-side fetch, so it works even when the page blocks CORS.
Input
The page is fetched server-side and its raw HTML source is returned.
Output
Guides
URL to HTML fetches a live web page server-side and returns its raw HTML source — the same markup you'd get from "View Source", minus the browser tab. Handy when a site blocks the page from being fetched by your own code (CORS), or when you just want the source without opening dev tools.
How to use this tool
- Enter the URL of the page you want to inspect.
- Click Fetch HTML.
- Copy the source, or download it as a
.htmlfile.
What it's for
- Web scraping and data extraction — grab a page's markup to parse or archive without wiring up your own fetch/CORS handling.
- SEO and dev debugging — check exactly what markup a server actually sends, before any client-side JavaScript runs.
- Archiving — save a snapshot of a page's HTML as it exists right now.
Privacy
The URL is fetched server-side, not from your browser — this avoids CORS restrictions but means the request comes from our servers, not yours. Requests to localhost and private/internal network addresses are blocked. Nothing is stored after the response is returned to you.
To convert the fetched HTML into clean prose instead of raw source, see the HTML to Markdown Converter (paste the HTML you got here into it). To pull just the title, meta tags, and headings out of a page, use the HTML Meta Extractor, which can also fetch a live URL directly.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/url-to-html \
-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-html` tool (URL to HTML) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.