Features

How to view source code in Safari?

  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn
  • Share on HackerNews

Every Safari browser on macOS comes with the option to enable Developer Tools. To enable the developer tools, please follow the steps below.

Enable Safari Developer Tools

  1. Open Safari
  2. Open the Safari settings menu
  3. Go to the 'Advanced' tab
  4. Toggle the checkbox 'Show Develop' menu in menu bar

View website source code in Safari

Now you can browse any website you want with Safari. On a page, right click the page and click 'Inspect Element' from the context menu.

With the developer tools opened, go to the "Sources" tab to see the HTML source code of the website.

For power users, there is a keyboard combination you can use to open the Developer tools: Option+Command+U.

Testing on remote Safari browsers

TestingBot provides access to remote Safari browsers. Each browser comes with the default developer tools enabled.

During manual testing, you can simply inspect the source code of any webpage on TestingBot's remote safari browsers.

  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn
  • Share on HackerNews
TestingBot Logo

Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

Other Questions