View, copy, and download HTML source code

Paste any URL to inspect a website's HTML, meta tags, response headers, and assets, then export the source.

https://

Enter a URL above to view its source code

Frequently asked questions

What is HTML source code?

HTML, short for HyperText Markup Language, is the code that makes up every webpage. When you visit a website, your browser downloads the HTML and renders it visually. This tool lets you see that raw code before the browser interprets it.

Why would I want to view a page's source code?

Developers inspect source code to debug issues, learn how a site is built, audit SEO tags, check performance, or extract specific information like meta tags and asset URLs. It is also useful for competitive research and accessibility audits.

How is this different from "View Source" in my browser?

Similar, but with extras: syntax highlighting, line numbers, meta tag extraction, asset listing, and the ability to download the HTML as a file. It also works on mobile, where browser "View Source" is not available.

Can I view HTML source code on iPhone or Android?

Yes. iOS Safari and most mobile browsers do not have a built-in "View Source" option. Download HTML works on any browser. Paste a URL, and the source code, meta tags, and assets are returned in seconds.

How does the server fetch work?

When you enter a URL, our serverless function fetches the page's HTML on your behalf and returns it with syntax highlighting. This server-side approach avoids browser security restrictions that would normally prevent reading another site's code directly.

More free tools from Landing Page Labs