brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Capture a full size screenshot in Chrome's device toolbar saves the whole page

Chrome
~/tips/tip-devtools-device-mode-full-screenshot

Toggle device toolbar > More options > Capture a full size screenshot

Saves a screenshot of the entire page at the width you chose in device mode.

The Command Menu can screenshot an area you drag, but I often want the entire page from top to bottom. The device toolbar has a menu entry for that.

Open DevTools and click Toggle device toolbar in the action bar. Then open More options in that toolbar. There are two relevant entries: Capture screenshot for the viewport, and Capture a full size screenshot for the full page.

Toggle device toolbar > More options > Capture a full size screenshot

Because the toolbar has a width, you decide how wide the page is before you capture. Pick Responsive and drag the handles or type a width, or choose one of the presets: Mobile S 320px, Mobile M 375px, Mobile L 425px, Tablet 768px, Laptop 1024px, Laptop L 1440px or 4K 2560px. The same page in three widths gives you three pictures for a responsive-design write-up.

For a phone picture with the hardware around it, enable Show device frame in device-specific mode first, and then use the capture entry.

The device pixel ratio matters for the sharpness of the result. More options > Add device pixel ratio gives you a DPR list in the action bar.

The caveat comes straight from the docs: device mode is a first-order approximation of the mobile experience. It does not run your code on a phone, and it cannot simulate every hardware trait. So the picture shows how the layout reacts to a width, and it says little about real performance or about touch behaviour. For those, use remote debugging on a real device.

Further reading: Chrome DevTools: simulate mobile devices with device mode

More Chrome tips chrome://net-export/ google-chrome --user-data-dir=/tmp/chrome-clean --no-first-run Windows and Linux: Ctrl+Shift+A Settings > Search engine > Manage search engines and site search > Site search > Add chrome://net-internals/#hsts All Chrome tips (12) All topics

Link