Skip to content

Ctrl+U not working? How to view source anyway

Updated 2026-11-11T00:00:00.000Z

Quick answer
Type view-source: in front of the address, for example view-source:https://temp.cool, or paste the address on viewhtmlonline.com. Both work when the shortcut or right-click menu is blocked.

Try it now

Check the shortcut first

  • Windows, Linux and Chromebook: Ctrl+U.
  • Mac: Option+Command+U in Chrome, Edge, Brave and Safari. Command+U in Firefox.
  • Safari needs the developer menu turned on first: Safari › Settings › Advanced, then tick the option for web developer features.

Why it might not work

  1. The site blocks the right-click menu or the shortcut. Some sites use a script for this. It only stops that one shortcut, not the other ways below.
  2. Your device is managed. School and work computers often have Developer Tools and view source turned off by an administrator.
  3. An extension is catching the keys. Try a private window, where most extensions are off.
  4. You are on a phone. Phone browsers have no shortcut. See iPhone or Android.

Four ways that still work

  1. The view-source: prefix. Click the address bar, type view-source: in front of the address and press Enter.
  2. The browser menu. In Chrome and Edge: ⋮ › More tools › Developer tools. In Firefox: ☰ › More tools › Page Source.
  3. viewhtmlonline. Paste the address on viewhtmlonline.com, or type viewhtmlonline.com/ in front of it. Our server fetches the page, so nothing on your device can block it.
  4. The bookmarklet. Add our view source button once and click it on any page.

Pages behind a login show their logged-out version on viewhtmlonline, because our server fetches the public page.

Questions people ask

Can a website stop me from seeing its source?

No. A site can hide its right-click menu or catch some key presses, but the HTML still reaches your browser. Any of the other ways in this guide shows it.

Why is view source blocked on my school or work computer?

Administrators can turn off Developer Tools and view source with a browser policy. That setting is on the device, so ask the administrator, or use viewhtmlonline from another device.