How to Take a Screenshot from Browser Developer Tools
In this article
Taking a screenshot directly from your browser's developer tools lets you capture exactly what's rendered in the viewport, a specific element, or even the full page — including areas below the fold. This is far more precise than using OS-level screenshot tools because you can target individual components, avoid scrollbars, and capture at device emulation sizes. You'll need a modern browser (Chrome, Edge, Firefox, or Safari) and a webpage you want to capture. No extra software required.
What You'll Need
- A desktop browser: Chrome, Edge, Firefox, or Safari (latest version recommended).
- A webpage you have permission to capture (your own site or any public page).
- Basic familiarity with opening developer tools (F12 or right-click → Inspect).
Step-by-Step
- Open Developer Tools – Right-click anywhere on the page and select Inspect (or Inspect Element in Firefox). Alternatively, press F12 or Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
- Open the Command Menu – With DevTools focused, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac). This opens a searchable command palette.
- Type “screenshot” – In the command menu, type the word screenshot. You'll see a list of screenshot-related commands. The exact options depend on your browser, but common ones include:
– Capture full size screenshot – captures the entire page, including content below the fold.
– Capture screenshot – captures only the visible viewport.
– Capture node screenshot – captures a specific element you've selected in the Elements panel (Chrome/Edge).
– Capture area screenshot – lets you drag to select a region (Chrome/Edge). - Select the desired command – Click the option that matches your need. For example, if you want the whole page, click Capture full size screenshot.
- Wait for the capture – The browser will automatically render the page (or element) and save a PNG file to your default Downloads folder. You'll see a notification in the bottom-left corner of DevTools with a thumbnail preview.
- Open the file – Navigate to your Downloads folder and double-click the PNG to view it. The filename typically starts with a timestamp, like
screenshot-2025-03-15-10-30-00.png.
If you're using Firefox, the command menu works similarly, but the commands are named slightly differently (e.g., Capture full page screenshot). Safari's DevTools (Web Inspector) has a screenshot button in the toolbar that captures the visible viewport only.
Common Mistakes
- Not opening the command menu – Many users try to find a screenshot button in the toolbar and miss it. The command menu is the fastest way.
- Using the wrong command – Selecting “Capture screenshot” when you wanted the full page will give you only the visible area. Double-check the command name before clicking.
- Forgetting to close the command menu – If the menu is still open, it may appear in the screenshot. Press Esc to close it before capturing.
- Capturing with the wrong device emulation – If you have device toolbar enabled (mobile view), the screenshot will reflect that size. Disable it if you want desktop dimensions.
- Overlooking the Downloads folder – The screenshot is saved as a file, not copied to clipboard. Check your browser's download location.
Tips
- Use “Capture node screenshot” for UI elements – If you need a button, image, or card, select it in the Elements panel first, then use the node capture command. This crops exactly to that element, including its padding and borders.
- Set a custom device size – Open Device Toolbar (Ctrl+Shift+M) and enter a custom width/height to capture a specific viewport size, like a common laptop resolution.
- Hide scrollbars for cleaner shots – Add
scrollbar-width: noneto the body via the Styles panel temporarily, or use the “Capture full size screenshot” which often excludes scrollbars automatically. - Use keyboard shortcuts for speed – After opening the command menu, you can type
capand press Enter to quickly capture the viewport, orfullfor full page. - Take screenshots of hover states – Use the “Toggle device toolbar” and then hover over an element while DevTools is open; the screenshot will capture the hover state if you use the node capture while hovering.
Troubleshooting
No screenshot command appears in the menu – Ensure you're in the DevTools console or any panel (not the main browser window). The command menu is only accessible when DevTools is focused. Also, update your browser to the latest version.
Screenshot saves as a blank or white image – This can happen if the page uses canvas or WebGL content that isn't captured correctly. Try scrolling to the area and capturing the viewport instead. For canvas, use the node capture on the canvas element.
Full-page screenshot is cut off – Some pages have fixed elements or infinite scroll that confuse the capture. Try disabling animations or use a manual approach: capture viewport in sections and stitch them together.
File doesn't appear in Downloads – Check your browser's download settings. Some browsers ask where to save; if you missed the prompt, look for a “Show in folder” link in the notification. Alternatively, search your entire system for a file named “screenshot-*.png”.
Command menu doesn't respond – If the shortcut doesn't work, click the three-dot menu (⋮) in DevTools and select “Run command” (Chrome/Edge) or use the “Command” button in the toolbar (Firefox).
Frequently Asked Questions
Can I take a screenshot of a specific element without selecting it first?
No, you need to select the element in the Elements panel (or right-click it and choose “Inspect”) before using the “Capture node screenshot” command.
Where are the screenshots saved?
They are saved as PNG files in your browser's default download folder (usually “Downloads” on Windows/Mac). The filename includes the date and time.
Does this work on mobile browsers?
No, developer tools are only available on desktop browsers. On mobile, you can use the browser's built-in screenshot feature or remote debugging.
Can I capture a screenshot of a page that requires login?
Yes, as long as you're logged in and the page is visible in your browser, the screenshot will capture it. The tool doesn't bypass any authentication.
Is there a way to capture a screenshot without opening DevTools?
Yes, you can use the browser's built-in screenshot feature (e.g., Chrome's “Capture full size screenshot” in the three-dot menu) but that doesn't offer element or node capture.
Can I change the screenshot format to JPEG?
No, the DevTools screenshot command only outputs PNG. If you need JPEG, you can convert the PNG using an image editor or online converter.