How to view page source in Safari on a Mac
Updated 2026-10-22T00:00:00.000Z
Quick answer
Turn on Safari › Settings › Advanced › “Show features for web developers”, then press Option+Command+U.
- Open Safari › Settings (or Preferences in older versions).
- Go to the Advanced tab.
- Turn on Show features for web developers. In older versions this is Show Develop menu in menu bar.
- Open the page and press Option+Command+U, or choose Develop › Show Page Source.
Safari opens the Web Inspector with the source. It shows the live page, so scripts may have changed it. To see exactly what the server sent, paste the address on viewhtmlonline.com.
Questions people ask
I don’t see the Develop menu in Safari.
Turn on “Show features for web developers” in Safari › Settings › Advanced. In older Safari versions it’s called “Show Develop menu in menu bar”.