Checkmark

Thank you for your feedback

View and save a webpage's source code

Learn how to view and save a webpage's source code to help resolve issues.

Article ID: SLN4448

View and saving the source code

Steps to view and save source code are different, depending on the browser you're using.

Firefox

Verified for version 116

  1. Right-click on the page you want to view the source for.
  2. Select View Page Source.
    - A window opens showing the source code.
  3. Right-click and select Save Page As.
  4. Select Save as type: Text Files.
  5. Save the file as a .txt file. Example file name: source_code.txt.

Chrome

Verified for version 116

  1. Right-click on the page you want to view the source for.
  2. Select View page source.
    - A window opens showing the source code.
  3. Right-click | select Save As.
  4. Select Save as type: Webpage, HTML Only
  5. Save the file as a .txt. Example file name: source_code.txt.

Safari

Verified for version 16.5

In order to view a page's source code in Safari, you'll need to make sure that Show develop menu in menu bar is enabled:

  1. Click on Safari in the navigation bar and select Preferences.
  2. Go to the Advanced tab.
  3. Check Show develop menu in menu bar.

Now you can view a page's source code.

  1. Right-click on the page you want to view the source for.
  2. Select Show Page Source.
  3. Click inside Web Inspector, then click Command+A to select all.
  4. Click Command+C to copy.
  5. Open TextEdit.
  6. Click Command+V to paste the code in TextEdit and save the file. Example file name: source_code.txt.

Edge

Verified for version 116

  1. Right-click on the page you want to view the source for.
  2. Select View page source.
    - A window opens showing the source code.
  3. Right-click | select Save As.
  4. Select Save as type: Webpage, HTML Only
  5. Save the file as a .txt. Example file name: source_code.txt.

Tip: If you're communicating with Turbify Support, you can attach the .txt file to an email you send to us.