Copy the address
In Safari, tap the address bar or the share button and copy the URL of the page you want to inspect.
Safari on iOS simply has no view source button. This tool does the job in your browser: paste any public URL and read its HTML with line numbers, search, copy and download.
On a Mac, Safari can show page source once you switch on the Develop menu. On iPhone and iPad, that menu does not exist. There is no setting to enable, no long-press trick and no address-bar prefix that reveals the HTML — the view-source: scheme that works on desktop browsers is ignored by every iOS browser, because all of them are built on the same WebKit engine Apple requires.
The workarounds people find online are clumsy: bookmarklet scripts that break after iOS updates, Shortcuts automations that need several setup steps, or App Store utilities of mixed quality. For a quick look at one page, none of that should be necessary. An online viewer needs nothing installed: our server fetches the page and formats the result for your screen.
Works in Safari and Chrome on any iPhone or iPad running a modern iOS.
In Safari, tap the address bar or the share button and copy the URL of the page you want to inspect.
Paste the address into the field at the top of this page and tap Inspect Source. The public HTML is fetched for you.
Search inside the code, copy the parts you need, or download the HTML into the Files app for later.
Verifying your own site from the couch. Published a change and want to confirm the new title tag, meta description or canonical URL is live? Your iPhone is the computer you have with you — check the head section directly instead of guessing from how the page looks.
Studying how pages are built. Web design students and junior developers often do their reading on an iPad. Opening the source of a well-built page and studying its heading structure, semantic elements and image markup is one of the fastest ways to learn real-world HTML.
Sharing evidence. If a page is serving the wrong content — an outdated cached version, a missing script, a broken redirect — downloading the exact HTML it returned gives you something concrete to send to a developer or a support team.
As everywhere, the boundary is the same: you see only the public HTML a server sends to any browser. Private backend code, databases and credentials are never part of that response.
The general mobile guide for phones and tablets of every kind.
For Android phones, where the old view-source: prefix no longer works.
The full viewer workspace for desktop and mobile source inspection.
Save the HTML of any public page as a file for offline review.
Or go back to the main view source page online tool.
Safari on iPhone has no view source command, so use this online tool instead: copy the page address, paste it into the field above and tap Inspect Source to read the full HTML with line numbers.
No. Unlike Safari on Mac, which has a Develop menu after you enable it in settings, Safari on iPhone and iPad offers no built-in way to view page source, and the view-source: prefix does not work in iOS browsers.
Yes. This viewer runs in the browser, so there is nothing to install from the App Store and no shortcut to set up. It works in Safari and Chrome on iOS.
Yes. After inspecting a page, use the Download button to save the HTML file to the Files app, where you can open or share it later.
Paste a public URL and explore its source, metadata and structure in seconds.
Inspect a Page