How to view page source on Android
Updated 2026-10-22T00:00:00.000Z
Quick answer
In Chrome on Android, type view-source: in front of the address. If your browser doesn’t support that, type viewhtmlonline.com/ in front of the address instead.
1. Chrome: the view-source prefix
- Open the page in Chrome.
- Tap the address bar and type
view-source:in front of the address, so it readsview-source:https://temp.cool. - Tap Go.
Chrome shows the raw HTML. Long lines wrap, and there are no extras like search or a report.
2. Any browser: viewhtmlonline
Type viewhtmlonline.com/ in front of the address, or paste the link on viewhtmlonline.com. This works in Chrome, Samsung Internet, Firefox and every other browser, and adds:
- line numbers you can link to, and search inside the code
- a Tidy up button for minified pages
- a report with the title, description, headings and share preview
- a check of which search and AI bots may read the page
3. Remote debugging with a computer
For live debugging, turn on Developer options and USB debugging on the phone, connect it to a computer, and open chrome://inspect in Chrome on the computer.
Questions people ask
Does view-source work in Samsung Internet?
Support differs between browsers and versions. viewhtmlonline works in every browser because it is just a web page.
Can I search inside the source on my phone?
Yes. viewhtmlonline has a Find box above the code that highlights every matching line.