Hidden Gem: Take screenshots using built-in commands in Chrome/Edge
Tags: web
Published: 2020-09-09 21:05:19

---
title: Hidden Gem: Take screenshots using built-in commands in Chrome/Edge
published: true
date: 2020-08-10 00:00:00 UTC
tags: web
canonical_url: https://swimburger.net/blog/web/hidden-gem-take-screenshots-using-built-in-commands-in-chrome-edge
cover_image: https://swimburger.net/media/iyihxvja/screenshot-social.png?anchor=center&mode=crop&width=1000&height=420&rnd=132415443481630000
---

Chromium browsers such as Chrome and Edge have many lesser known features. One of those features is the ability to take screenshots of your current tab content.   
There are 4 different screenshot commands:

- [Capture area screenshot](#capture-area-screenshot): Left-click drag over the area you want to screenshot
- [Capture full size screenshot](#capture-full-size-screenshot): Take a screenshot of the entire page, **including off-screen scrollabe content**
- [Capture node screenshot](#capture-node-screenshot): Take a screenshot of the selected HtmlNode
- [Capture screenshot](#capture-screenshot): Take a screenshot of the viewport (content that's visible)

## Capture area screenshot

The 'Capture area screenshot' will allow you to draw a square on your web page which will then be exported as a PNG-file. This is basically a lite-version of the 'Snipping tool' or 'Snip & Sketch' application.  
This is how to use 'Capture area screenshot':

1. Open DevTools by pressing F12, ctrl+shift+i, or by opening the menu > More Tools > Developer tools.  
![Screenshot of Edge DevTools recording HTTP Requests in the Network tabScreenshot of opening DevTools using menu > More Tools >  Developer Tools](https://swimburger.net/media/yubhqlfj/open-devtools.png)
2. Next, open the 'Run command' window by pressing ctrl+shift+p or by opening the menu inside of the DevTools window, click 'Run command'. 
![Screenshot of the DevTools submenu to open the Run Command menu](https://swimburger.net/media/dzwncvjg/run-command.png) 

3. Type 'Screenshot' and select 'Capture area screenshot'. 
![Screenshot of running Capture area screenshot in DevTools](https://swimburger.net/media/xusd4i0n/run-screenshot-command.png)  

4. Focus back onto the web page and draw a rectangle by left-clicking and dragging the mouse.  
![Screenshot of drawing an area to screenshot](https://swimburger.net/media/pqeptwih/run-screenshot-area-command.png)

5. Now the browser will automatically save the screenshot to disk or prompt you for a location to store it.

## Capture full size screenshot

The 'Capture full size screenshot' will take a screenshot of the entire webpage for you, including the content that's off-screen which you would normally have to scroll for. This is by far the most useful screenshot command as it is really hard to do manually.  
This is how to use 'Capture full size screenshot':

1. Open DevTools by pressing F12, ctrl+shift+i, or by opening the menu > More Tools > Developer tools.  
![Screenshot of opening DevTools using menu > More Tools > Developer Tools](https://swimburger.net/media/yubhqlfj/open-devtools.png)

2. Next, open the 'Run command' window by pressing ctrl+shift+p or by opening the menu inside of the DevTools window, click 'Run command'.  
![Screenshot of the DevTools submenu to open the Run Command menu](https://swimburger.net/media/dzwncvjg/run-command.png)

3. Type 'Screenshot' and select 'Capture full size screenshot'. 
![Screenshot of running Capture full size screenshot in DevTools](https://swimburger.net/media/ltua4ejx/run-full-size-screenshot.png)

4. Now the browser will automatically save the screenshot to disk or prompt you for a location to store it.

## Capture node screenshot

The 'Capture node screenshot' will take a screenshot of the HTML Node you focused on in the DevTools.  
This is how to use 'Capture node screenshot':

1. Open DevTools by pressing F12, ctrl+shift+i, or by opening the menu > More Tools > Developer tools.  
![Screenshot of opening DevTools using menu > More Tools > Developer Tools](https://swimburger.net/media/yubhqlfj/open-devtools.png)

2. Next, select the HTML you want to take a screenshot of in the 'Elements' tab.   

If you skip this step, nothing will happen when running the screenshot command and no warning will be shown.

3. Open the 'Run command' window by pressing ctrl+shift+p or by opening the menu inside of the DevTools window, click 'Run command'.  
![Screenshot of the DevTools submenu to open the Run Command menu](https://swimburger.net/media/dzwncvjg/run-command.png)

4. Type 'Screenshot' and select 'Capture node screenshot'. 
![Screenshot of running Capture node screenshot in DevTools](https://swimburger.net/media/i30hkzta/run-node-screenshot-command.png) 

5. Now the browser will automatically save the screenshot to disk or prompt you for a location to store it.

## Capture screenshot

The 'Capture screenshot' will take a screenshot of the viewport. With other words, everything of the website that is visible inside the browser.  
This is how to use 'Capture screenshot':

1. Open DevTools by pressing F12, ctrl+shift+i, or by opening the menu > More Tools > Developer tools.  
![Screenshot of opening DevTools using menu > More Tools > Developer Tools](https://swimburger.net/media/yubhqlfj/open-devtools.png)

2. Open the 'Run command' window by pressing ctrl+shift+p or by opening the menu inside of the DevTools window, click 'Run command'.  
![Screenshot of the DevTools submenu to open the Run Command menu](https://swimburger.net/media/dzwncvjg/run-command.png)

3. Type 'Screenshot' and select 'Capture screenshot'.  
![Screenshot of running Capture screenshot in DevTools](https://swimburger.net/media/ouapbnef/run-screenshot.png)

4. Now the browser will automatically save the screenshot to disk or prompt you for a location to store it.

## Taking screenshots while emulating devices
Chromium browsers also have powerful tools to simulate other devices such as mobiles phones, tablets, and computers with different resolutions. Combining this with the screenshot commands allows you to quickly take screenshots of what it would look like on a particular device.   
   
Even if your own machine's resolution is lower than the simulated device, **the screenshots will be in the resolution of the simulated device**. This basically means you can take screenshots in higher resolution than your own screen!   
   
To start simulating devices, click on the 'Toggle device toolbar' button in the DevTools:   
![Screenshot of Chrome DevTools clicking on 'Toggle device manager' button](https://swimburger.net/media/iwlhc2u2/clicking-toggle-device-toolbar.png)

Change the simulated device to an iPad Pro:   

![Screenshot of device manager selecting iPad Pro simulation](https://swimburger.net/media/c1of3pos/screenshot-of-emulating-an-ipad-pro.png)

Now run a screenshot command and inspect the resolution of the screenshot. **Even though the screen used in this tutorial is only 1920x1080 pixels, the screenshot taken while simulating iPad Pro is 2732x2048 pixels.**