Free online tool - No installation required

View Page Source on Mobile

See the HTML behind any web page right on your phone - no app, no computer. Paste a URL below for formatted, syntax-highlighted source, or follow the iPhone and Android step-by-steps further down.

https://
source.html

Page Speed

🖥 Server Info

    📄 Page Info

      Viewing a page's source on your phone

      Mobile browsers hide the source - this tool (and the steps below) bring it back.

      On a desktop, viewing a page's HTML is one keyboard shortcut away. On a phone it is not: iPhone Safari has no "view source" and blocks view-source: URLs entirely, while Chrome on Android does support view-source: but shows the raw HTML crammed onto one long, unreadable line.

      The tool at the top of this page works on any phone or tablet. It fetches the page on our server and returns the HTML formatted and syntax-highlighted, so it is easy to read on a small screen - no app to install and no computer needed. Below are the native methods for each platform, plus when to reach for the tool instead.

      How to view page source on iPhone (Safari)

      iOS has no native view-source, so a web tool is the simplest route.

      1. Use the tool above (easiest)Paste the page address into the box at the top of this page and tap View Source. It works in Safari, Chrome, or any iOS browser and gives you clean, highlighted HTML you can copy or download.
      2. Add a "View Source" bookmarkletFor power users: save a small JavaScript bookmarklet to your Safari bookmarks, then run it on any page to open its source. Handy, but fiddly to set up on iOS.
      3. Use a Mac for the live DOMConnect your iPhone to a Mac, enable Web Inspector under Settings → Safari → Advanced, and open Safari’s Develop menu to inspect the JavaScript-rendered DOM.

      Note: typing view-source: before a URL does not work in iOS Safari - it just searches for the text. The tool above is the reliable option on iPhone.

      How to view page source on Android (Chrome)

      Chrome for Android has a built-in method - plus an easier, formatted alternative.

      1. Use view-source: in ChromeTap the address bar and type view-source: immediately before the URL, e.g. view-source:https://example.com, then go. Chrome displays the page’s raw HTML.
      2. Use the tool above for readable outputChrome’s raw view is unformatted and hard to scroll on a phone. Paste the same URL into the tool at the top for indented, syntax-highlighted source you can copy or download.
      3. Remote-debug for the live DOMTo inspect the JavaScript-modified DOM, connect the phone to a computer and open chrome://inspect in desktop Chrome over USB.

      Why use this instead of the native view on mobile

      What you get over Chrome’s raw view-source: - and what iPhone can’t do natively at all.

      ✓ This tool

      • Formatted & highlighted - indented, colour-coded HTML
      • Works on iPhone - where view-source: is blocked
      • Copy & download - save the HTML to your device
      • No app, no computer - just a browser

      ⓘ Native view-source:

      • Android Chrome only - not on iPhone
      • Raw HTML, often one long minified line
      • No highlighting, awkward to scroll on a phone
      • No one-tap copy or download

      Want the same formatted view on a laptop, or a dedicated formatter? Try the HTML Viewer, or read how to view source in every desktop and mobile browser.

      Frequently asked questions

      Common questions about viewing HTML source on mobile.

      Can you view page source on an iPhone?

      iOS Safari has no built-in 'view source', and view-source: URLs do not work on iPhone. The easiest way is a web tool like this one - open this page, paste the URL, and tap View Source. You can also use a bookmarklet, or connect the iPhone to a Mac and use Safari's Web Inspector.

      How do I view source in Chrome on Android?

      In Chrome for Android, type view-source: before the address in the URL bar, for example view-source:https://example.com. Chrome shows the raw HTML. It is unformatted, so for readable, syntax-highlighted output use the tool at the top of this page.

      Does view-source: work on mobile?

      On Chrome for Android, yes. On iPhone Safari, no - it is blocked. This tool works on both, and on any other mobile browser, because the page is fetched by our server rather than the browser.

      Do I need to install an app?

      No. This is a web tool - open it in any mobile browser and paste a URL. There is nothing to download or install.

      Can I see a page's HTML without a computer?

      Yes. Paste the URL on your phone and you get the formatted HTML source instantly, without needing a desktop or laptop.

      Why is the code easier to read here than with view-source:?

      Native view-source: shows the raw HTML, often minified onto one long line that is painful to read on a small screen. This tool pretty-prints and syntax-highlights the markup so it is readable on a phone.

      Can I copy or save the HTML on my phone?

      Yes. Use Copy to put the HTML on your clipboard, or Download to save it as an .html file on your device.

      Does it show HTML added by JavaScript?

      No. It shows the raw HTML the server returns, before client-side JavaScript runs - the same starting point a search engine sees. To inspect the live, script-modified DOM you need desktop DevTools or remote debugging.

      Related tools & guides

      Dive deeper into web content, source code, and SEO with these resources.