Sign up free

View Page Source Online, Even on Your Phone

Read a page's HTML with colors, line numbers and search, on your phone or your computer.

About View Page Source

Phone browsers make it hard to view page source, yet you often need the raw HTML: to check a meta tag or canonical link, confirm an analytics or site verification code is in place, look for injected links, or copy a snippet. Enter a URL and we fetch the HTML exactly as the server sends it, before any JavaScript runs, which is what search engines receive first. Text files such as robots.txt show the same way. The Hacked Website Checker looks for injected links and spam redirects automatically.

The source comes with line numbers and syntax colors. Find in source highlights the lines that match, counts them and jumps to the first, and Wrap lines keeps long lines on screen. Under Visit as, choose a desktop or phone browser, Googlebot, Baiduspider or Bingbot to see whether a site serves crawlers something different. Pages up to 3 MB are fetched and the first 2 MB are shown. Copy the whole source or save it as an .html file. To compare crawler and visitor versions, use the Search Engine Spider Simulator.

How to use View Page Source

  1. 1
    Enter the URL

    Paste a page address, or a robots.txt, sitemap or CSS file.

  2. 2
    Choose Visit as

    Keep Desktop browser, or pick a phone, Googlebot, Baiduspider or Bingbot.

  3. 3
    Click View source

    The raw source appears with line numbers and colors.

  4. 4
    Search, copy or save

    Use Find in source and Wrap lines, then Copy it or Save it as an .html file.

Why use Cubfile for this

  • Readable source

    Line numbers and syntax colors, with optional line wrapping.

  • Find in source

    Matching lines are highlighted and counted, and the first scrolls into view.

  • Seven user agents

    See what a desktop or phone browser, Googlebot, Baiduspider or Bingbot receives.

  • Made for phones

    Check a page's HTML from your phone, no computer needed.

FAQ

View Page Source: questions and answers

How do I view page source on a phone?
Open this page in your phone's browser, paste the address and tap View source. The HTML appears with line numbers and a search box.
Why is this different from the Elements panel in my browser?
This is the HTML as the server sent it, before JavaScript runs. The Elements panel shows the page after scripts have changed it, so anything JavaScript adds only appears there.
Can I see what Googlebot or Baiduspider gets?
Yes. Choose Googlebot, Googlebot (smartphone), Baiduspider, Baiduspider (mobile) or Bingbot under Visit as. The request carries that crawler's user agent but comes from our server, so sites that verify crawler IP addresses may still treat it as a normal visitor.
Is there a size limit on the page source I can view?
Pages up to 3 MB are fetched and the first 2 MB of source are shown. Very long pages are shown without syntax colors so they stay quick to scroll.
Is View Page Source free?
Yes, with no sign-up and no daily tasks used, and the fetched source isn't stored on our side.
Share View Page Source with a friendIt runs in any browser, and they can try it without signing up.

Related tools

WEB Website Speed TestTime DNS, connection, first byte and download for a page, and see what slows it down.
SSL SSL Certificate CheckerCheck a site’s certificate: issuer, expiry, domains covered and whether browsers trust it.
HTTP HTTP Status Code CheckerCheck the status code of one URL or a whole list at once.
HTTP Redirect CheckerFollow every redirect hop, with status codes and timing, and catch loops.
WEB Website Technology DetectorSee the CMS, frameworks, analytics, CDN and server a website uses.
WEB Is It Down?Find out whether a site is down for everyone, and which step fails.
WEB CDN CheckerFind out whether a domain is behind a CDN, and which one.
WEB GZIP and Brotli CheckerCheck whether a page is sent compressed and how much it saves.