View Page Source on Mobile

View a website's HTML source code on mobile devices, including Chrome on Android and iOS. Just paste a URL to view the page source — with line numbers.

Paste a URL above to view the page source. The full HTML comes back with line numbers, exactly as the server delivered it.

Why this exists

Chrome's mobile browser no longer supports the traditional view-source: behavior. On a desktop you can press Ctrl+U or prefix a link with view-source: and read the markup; on a phone, that entry point is simply gone. This tool replaces it — enter a URL and it displays the full page source HTML directly in your mobile browser, with no desktop mode, no extensions, and no special setup.

It works for any public webpage and shows the raw HTML exactly as delivered, making it easy to copy, search, or review the source code on mobile. It's useful whether you're trying to view page source on your phone, inspect a website's source code, or replace the missing view-source Chrome mobile feature.

The source is fetched server-side and rendered as text, so you see what the server returned — the original HTML document, before any JavaScript ran in the browser. That is the same thing view-source: shows you, and it is often not what you'd see in a devtools element inspector, which shows the live DOM after scripts have modified it.

FAQ

Can you view page source on mobile?

Yes. While mobile browsers like Chrome no longer include a built-in way to view page source, this tool lets you view the full HTML source code of any public webpage directly on your phone.

How do I view source code in Chrome mobile?

Chrome on mobile does not support view-source: links. To view source code, paste the page URL into this tool and it will display the page's HTML source in your mobile browser.

Does this work on Android and iPhone?

Yes. The tool works on Android and iOS, including Chrome and other mobile browsers. It's a web page, so there is nothing to install.

Is this the same as view-source:?

Functionally, yes. This tool replaces the missing view-source: behavior on mobile by fetching and displaying the raw HTML source code of the page. The one difference worth knowing: view-source: re-requests the page from your own browser, while this fetches it from a server. For public pages the result is the same, but a page that renders differently for logged-in users will come back logged-out here.

Why does the source look different from what I see in the inspector?

The inspector shows the live DOM — the document after JavaScript has added, removed, and rewritten elements. This tool shows the original HTML response, before any of that. If a page is built client-side, the source can look nearly empty even though the rendered page is full of content. That difference is usually the point of looking.

Can I view the source of a page that requires a login?

No. The fetch is anonymous and has no access to your cookies or session, so pages behind a login return whatever a logged-out visitor would get — usually a sign-in page.

These tools are how Elegant Atomics thinks about growth for B2B SaaS. Work with us. Work with us →