Last updated: March 13, 2026
How to Screenshot a Specific Element on Any Webpage
Need to capture just a button, card, or any other element? Learn the manual DevTools method and discover a faster alternative.
Why Screenshot Specific Elements?
Taking screenshots of specific elements (instead of full pages) is essential for many development tasks. It gives you clean, focused captures without unnecessary background clutter.
Documentation
Capture UI components for design systems, style guides, or technical documentation without manual cropping.
Client Presentations
Show specific features or design changes to clients with pixel-perfect screenshots of exactly what matters.
Bug Reports
Highlight the exact element causing issues for faster debugging and clearer communication with your team.
The Manual Way
6 StepsChrome DevTools has a built-in feature to capture element screenshots, but it requires navigating through the DOM tree - which can be tedious and error-prone.
Open Chrome DevTools
Press F12 or Cmd+Option+I (Mac) / Ctrl+Shift+I (Windows) to open DevTools.

Find the Element in the DOM Tree
Use the Elements panel to navigate through the HTML structure. Click the inspect icon (top-left of DevTools) and click on the element on the page, or manually expand nodes to find it.
Right-Click the Element in DevTools
Once you've found the element in the DOM tree, right-click directly on its HTML tag in the Elements panel.
Select "Capture node screenshot"
In the context menu, look for "Capture node screenshot" - it's often buried in the menu and easy to miss.

Find the File in Downloads
The screenshot is automatically saved to your Downloads folder. Navigate there to find and rename the file as needed.
Common Problem: Incorrect Cropping
DevTools captures the element's computed bounding box, which sometimes includes extra whitespace, clips shadows, or captures more than you intended. You might need multiple attempts to get it right.

With Frontend Hero
3 StepsFrontend Hero's Element Screenshot tool lets you click directly on any visible element - no DOM tree navigation required.
Click the Element Screenshot Icon
Open Frontend Hero and click the Element Screenshot tool icon. The page enters capture mode.

Click Any Element on the Page
Hover over elements to see them highlighted. Click on the element you want to capture - it's that visual and intuitive.
Perfect Screenshot Downloads Instantly
Your screenshot is captured with accurate boundaries and downloads immediately. No cropping issues, no extra whitespace.

Side-by-Side Comparison
| Criteria | DevTools (Manual) | Frontend Hero |
|---|---|---|
| Steps Required | 6 steps | 3 steps |
| Element Selection | Navigate DOM tree | Click visually |
| Accuracy | Sometimes crops incorrectly | Pixel-perfect |
| Learning Curve | Moderate | None |
| Speed | 30-60 seconds | 2-3 seconds |
| Hover States | Difficult to capture | Easy |
| Cost | Free (built-in) | $59 one-time |
Steps Required
Element Selection
Accuracy
Speed
The Bottom Line
Use DevTools when...
- *You need a quick one-off screenshot
- *You're already working in DevTools
- *You don't want to install any extensions
Use Frontend Hero when...
- *You capture element screenshots regularly
- *Speed and accuracy matter for your workflow
- *You also need other tools (CSS inspection, color picking, etc.)
Frequently Asked Questions
Yes, you can screenshot any visible element on a webpage. This includes buttons, cards, navigation bars, images, forms, or any other HTML element. The element just needs to be visible on the page - hidden elements cannot be captured.
When using Chrome DevTools' 'Capture node screenshot' feature, screenshots are saved as PNG files. Frontend Hero also saves element screenshots as high-quality PNG files, preserving transparency when applicable.
DevTools captures the element's full bounding box, which can include padding, margins, or extra space from CSS properties like overflow. Some elements also have invisible borders or pseudo-elements that expand the capture area. Frontend Hero's Element Screenshot tool handles these edge cases more accurately.
With DevTools, capturing hover states is tricky because moving your mouse to the context menu removes the hover. Frontend Hero's Element Screenshot mode lets you hover over elements to highlight them, and clicking captures exactly what you see - including any hover effects that are visible at that moment.
Yes, both methods capture box shadows, text shadows, and CSS effects. However, if a shadow extends beyond the element's bounding box, it may get clipped. Frontend Hero automatically expands the capture area slightly to include common shadow sizes.
DevTools can screenshot elements inside iframes if you navigate to the iframe's document in the Elements panel. Frontend Hero can also capture iframe content on most websites, though some cross-origin restrictions may apply for security reasons.
There's no strict limit, but very large elements (like full-page sections) may result in large file sizes. For extremely tall or wide elements, you might experience memory limitations in the browser. Both DevTools and Frontend Hero handle typical element sizes without issues.
More CSS Tutorials
Copy CSS from Website
Extract styles with 2 clicks
Center a Div (CSS)
Flexbox, Grid, and more
Center a Div (Tailwind)
Utility classes for centering
Convert CSS to Tailwind
CSS to utility classes
Glassmorphism Effect
Frosted glass UI style
Neumorphism Button
Soft UI button design
Responsive Navbar
Mobile-friendly navigation
Sticky Header
Fixed navigation on scroll
CSS Pagination
Page navigation styles
CSS Accordion
Expandable content sections
Dropdown Menu
Hover and click dropdowns
CSS Modal
Popup dialog boxes
Toast Notifications
Animated alert messages
Hamburger Menu
Animated menu icon
Animate Gradients
Moving gradient backgrounds
Skeleton Loader
Loading placeholder UI
Pick Color from Website
Eyedropper tool comparison
Identify Fonts
Find fonts on any website
Download All Images
Bulk save images from any site
Measure Elements
Page ruler and measurements
Extract Colors from Website
Get any color palette instantly
Dark Mode Toggle
CSS variables and localStorage
Responsive Grid
CSS Grid auto-fit and minmax
Center Text in CSS
text-align, Flexbox, and Grid
Make Text Bold
font-weight values explained
Add Shadow in CSS
box-shadow, text-shadow, drop-shadow
Round Corners in CSS
border-radius and pill shapes
Style File Input
Custom upload buttons
