Skip to content

How to view page source in Chrome, Edge and Firefox

Updated 2026-10-22T00:00:00.000Z

Quick answer
Press Ctrl+U on Windows and Linux, or Option+Command+U on a Mac. This works in Chrome, Edge and Firefox.

Try it now

Shortcuts

Browser Windows and Linux Mac
Chrome Ctrl+U Option+Command+U
Edge Ctrl+U Option+Command+U
Firefox Ctrl+U Command+U

You can also right-click an empty part of the page and choose View Page Source, or type view-source: in front of the address.

View Source or Inspect?

View Source opens the HTML exactly as the server sent it. Use it to check meta tags, the title, scripts and what search engines receive.

Inspect (F12, or Option+Command+I on a Mac) opens Developer Tools with the live page. Use it to see what scripts added or changed after loading. Read more in why the source looks different.

Without opening the page

Paste the address on viewhtmlonline.com to see the source without visiting the site yourself. You also get the redirect chain, response headers, a security header grade and a share preview.

Questions people ask

What is the difference between View Source and Inspect?

View Source shows the HTML the server sent. Inspect (Developer Tools) shows the live page after scripts have changed it.

Can I view source of a page without opening it?

Yes. Paste the address on viewhtmlonline.com. Our server fetches it and shows the HTML as text, so nothing from the page runs on your computer.