Get Source Code of Webpage


Enter a URL




About Get Source Code of Webpage

Get Source Code of Webpage: View the HTML Source of Any Public Page

Enter the URL of a public web page in the form above, complete the image verification, and run the tool to see the HTML source code of that page.

What You Get

The tool shows the HTML that the server sends for the page, before any JavaScript runs. The "Inspect" tool in your browser shows the page after scripts have changed it, so the two can differ. Google renders JavaScript when it reads pages. To see how Google views a page, use the URL Inspection tool in Google Search Console.

How to Use the Tool

  1. Enter the full address of a public page, starting with https://.
  2. Complete the image verification.
  3. Run the tool and read the code shown.
  4. Use Ctrl+F (or Cmd+F) to search for the item you are looking for.

What to Look For

  • The title tag and meta description in the head section.
  • The canonical tag and any robots meta tag, for example noindex.
  • Headings (h1, h2, h3) and image alt text.
  • Structured data (JSON-LD) and your analytics or tag code.
  • Whether your important text is in the HTML, or added later by JavaScript.

Use It Responsibly

You can view the source code of any public page, but the content and code may be protected by copyright. Use this tool to learn and to audit pages. Do not copy other people's work.

Frequently Asked Questions

Why is the code different from what I see in my browser's Inspect tool?

Inspect shows the page after JavaScript has run. This tool shows the code as first delivered by the server.

Can I view pages that need a login?

No. The page must be public.

Is this tool free?

Yes, it is free to use. To see the meta tags of a page in a clearer report, try our Meta Tags Analyzer.