View Page Source
View the HTML source code of any page, even on your phone, with line numbers, colors, search, a summary of scripts, styles, images and links, and download the file.
How to useSource code of any page
View Page Source: what it is for
Enter a page address and see its HTML source code with line numbers and colors, like Ctrl+U on a computer but also working on a phone. Search any snippet in the code, copy all of it or download the .html file. The summary shows the size, the number of lines and elements, and the chart counts the page's scripts, stylesheets, images, links, metas and iframes.
It shows the HTML the server delivers, before JavaScript builds the page.
How to use
- Enter the page address.
- Tap View code.
- Search, copy or download the HTML.
When to use it
- View a site's code on your phone.
- Find a page's meta tags and Google Analytics code.
- Study how a page was built.
Frequently asked questions
How do I view a site's source code on a phone?
Mobile browsers don't have the Ctrl+U of a computer. Paste the address here and the tool fetches the page HTML and shows it with line numbers and colors, ready to read, search and copy.
Is the code the same as what I see in the browser?
It is the HTML the server delivers, the same as Ctrl+U. Sites built with React, Vue and similar build much of the page later with JavaScript, so that content may not appear here.
Can I copy another site's code?
Viewing code is normal and it's how many people learn. Copying texts, images or the entire design, however, may infringe copyright. Use it as a reference and write your own.
Is there a size limit?
The tool fetches up to 2 MB of HTML, more than enough for almost every page.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 are free.