Taking screenshots of a webpage is a normal operation for many. Perhaps it’s to capture an image for a meme, graphs for a presentation, or to send that annoying error message to a disbelieving customer service rep. Whatever the reason, some of the standard Mac screenshot options may not do the trick.
Most of us are familiar with Shift-Command-3 to capture the entire screen, or Shift-Command-4 to capture a selected portion of a screen. You may even be familiar with Shift-Command-5 to capture a single window. But what if you want to take a scrolling screen capture of an entire webpage? The aforementioned tools can’t do that – they can only capture visible areas of your screen. So, is it even possible to take a screenshot that includes a portion of a webpage you would normally need to scroll to see?
Yes, there is! But it does take a few extra steps than just executing a single keystroke combination.
Screenshot a Webpage
- Open Safari and go to “Safari > Preferences…“
- Click the Advanced tab and toggle on “Show Develop menu in menu bar.”
- Navigate to the webpage you want to capture and from the Develop menu, choose “Show Web Inspector.” Alternatively, you can hit alt-command-I (⌥⌘I).
- Select the Elements tab and right-click on the line that begins with “<html…”
- Choose Capture Screenshot
- Give it a moment to do it’s magic, and then select a name and location to save the file.
All done! Well, almost…
This could just be an issue I run into, but when capturing entire pages in this manner, there is a lot of empty container buffer around the image in the PNG file. You can see this in the Quick Preview of the file:
Let’s fix that.
- Open the file in Preview. If Preview is already your default application to open PNG files, you can simply double-click its icon.
- Click the Show Markup Toolbar icon and select the Instant Alpha tool.
- Drag the crosshairs in the empty area around the image. You’ll see the empty space selected and highlighted in red. Drag too far, and you’ll pick up the image itself. Don’t do that, we only want to select the empty area.
- When you let go of the mouse button, the highlighted color will disappear and be replaced with a dotted line indicating the selected area.
- Hit Shift-Command-I (⇧⌘I) to invert the selection.
- Hit Control-K (⌘K) to crop the image to the selection.
- Now you can hit Save (⌘S) and you truly are done. One cleaned up screenshot of an entire webpage.