October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

How to Set a Custom Viewport Size in Chrome DevTools Before Taking a Screenshot

Use Chrome DevTools’ Responsive Device toolbar to enter a custom viewport width and height, then choose a viewport or full-page screenshot.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To set a custom screenshot viewport in Chrome, open DevTools, enable the Device toolbar, choose Responsive under Dimensions, and enter the width and height you need. Use Capture screenshot for the visible viewport or Capture a full size screenshot to include the page beyond it.

Set a custom width and height in Chrome DevTools

  1. Open the page you want to capture, then open Chrome DevTools.
  2. In DevTools, turn on Toggle device toolbar.
  3. In the Device toolbar, set Dimensions to Responsive.
  4. Enter the required width and height in the viewport fields. You can also drag the viewport handles to resize it. For example, the Chrome Device Mode guide demonstrates a viewport that is 480 pixels wide and 415 pixels high.
  5. Open More options in the Device toolbar and select the capture command you need.

Choose the right screenshot command

Command What it captures Use it when
Capture screenshot The currently visible viewport at the dimensions you set. You need an image of the page as it appears within the configured viewport.
Capture a full size screenshot The full page, including content outside the visible viewport. You need the page from top to bottom rather than only the portion currently on screen.

Save dimensions as a reusable custom device

For dimensions you expect to use repeatedly, create a custom device instead of re-entering the values each time.

# Preview Product Price
1 The 138 Best Chrome Extensions The 138 Best Chrome Extensions $2.99

As an Amazon Associate I earn from qualifying purchases.

  1. Open the Device toolbar’s device list and choose Edit to open the Devices settings.
  2. Select Add custom device.
  3. Enter a device name, width, and height, then save it.
  4. Select the saved device from the Device toolbar’s Dimensions list when you need it.

Device pixel ratio, user-agent string, and device type are optional fields in the custom-device settings. A custom device saves a configuration for reuse; it does not make Chrome run on physical hardware matching that device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the viewport dimensions mean

The width and height fields set the viewport in Device Mode. Do not assume that the resulting screenshot bitmap’s pixel dimensions will always exactly equal those CSS viewport dimensions: the relationship can depend on the capture setup and device pixel ratio.

Chrome’s Device Mode approximates a mobile experience on a desktop or laptop; it is not a substitute for opening and testing the page on an actual mobile device when hardware-specific behavior matters.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Send one GET request with a URL to return a PNG, JPEG, WebP, or PDF. The API supports custom viewport settings along with other capture options; see the ScreenshotNeo API documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
  • Cookie and consent banners are accepted before capture, and more than 60 known consent platforms, newsletter popups, and chat widgets can be removed; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. Responses include X-Page-Verdict and X-Billed headers.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
  • The Free plan includes 1,000 screenshots per month with no card required; paid plans start at $5 for 3,000 screenshots. Every feature is available on every plan.

Sign up for ScreenshotNeo to get 1,000 free screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.