Web page source viewer
Fetch a page as a desktop or mobile browser or a search-engine crawler, then view its response headers and HTML source, formatted or as received, and download it.
Loading…
What you enter is sent to this site’s server, which looks it up or connects to it for you. Only public addresses can be checked; queries and results are not stored.
About this tool
Fetch a web page’s HTML source and response headers as a desktop Chrome browser, Safari on an iPhone, Googlebot or Baiduspider would receive them. Use it to check what search engine crawlers get from your site, to see whether a site sends phones a different page, to view a page’s source on your phone, or to save a page’s HTML.
The page is downloaded by this site’s server, following up to 10 redirects, and you see the status, final URL, server address, redirect chain, headers and the source as received or formatted. Scripts in the page do not run, and bodies over 2 MB are cut off. Only public addresses on ports 80, 443, 8000, 8008, 8080, 8081, 8443 and 8888 can be fetched; queries and results are not stored.
How to use it
- Enter the “Page URL”. An address without http:// or https:// is fetched over HTTPS.
- Choose who to “Fetch as”: “Desktop browser (Chrome)”, the default, “Mobile browser (iPhone Safari)”, “Googlebot” or “Baiduspider”.
- Select “Fetch source”.
- Check the status, final URL and redirects, and open “Response headers” to see them all.
- Switch between “As received” and “Formatted”, then “Copy” the source or “Download” it as an HTML file.
Common questions
Why is the source almost empty?
Only the HTML the server sends is shown, and scripts do not run. Sites that build their content with JavaScript often send little more than an empty frame and script tags, so their text does not appear here.
Does “Googlebot” show exactly what Google sees?
It sends Googlebot’s User-Agent, so you see what the site returns for that name. The request still comes from this site’s server, so a site that checks a crawler’s IP address may answer differently than it does for Google.
Why is the source cut off?
Bodies are read up to 2 MB. Anything beyond that is cut off, and the page marks it next to the body size.
What does “Formatted” change?
It puts each tag or run of text on its own indented line and never rejects broken HTML; the content of script, style, pre, textarea and title elements is kept as written. “Download” saves the view you are looking at.
Are pages in GBK decoded correctly?
Yes. The encoding is taken from the Content-Type header, a byte order mark or a meta charset tag in the first 2 KB of the page. Downloading from the “As received” view keeps the original bytes the server sent.
Related tools
DNS lookup
Look up a domain’s A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and other records through public DNS servers, or the PTR name of an IP address.
HTTP request tester
Send GET, POST, PUT, DELETE and other requests from the server with your own headers and body over HTTP/1.1 or HTTP/2, and see the response status, headers and body, free of browser CORS limits.
HTTP status checker
Check the HTTP status code, redirect chain, response time and server of up to 20 URLs or domains at once.
IP address lookup
See your public IP address, or the country, region and city of any IPv4 or IPv6 address or domain.
Meta tag extractor
Extract the title, keywords, description, canonical link and Open Graph tags of up to 20 pages, and export them as CSV.
Open port checker
Check whether up to 10 TCP ports of a public server accept connections, with common service ports one click away.