Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk6 min

How to Capture Webpage Screenshots with Chrome DevTools Protocol

Send Page.captureScreenshot to the intended page target, choose viewport, clip, or beyond-viewport capture, then decode the base64 response into an image file.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a webpage with Chrome DevTools Protocol (CDP), send Page.captureScreenshot to the page target you want, then decode the returned base64 image data before saving it. Use the default viewport capture for what is visible, clip for a specific region, or captureBeyondViewport for content beyond the viewport when the target Chrome version supports it.

Send a screenshot command to the right page target

Page.captureScreenshot is a command in CDP’s Page domain. The command must go to the page target you intend to capture; a command sent to a different target may capture the wrong page or fail. The exact message envelope depends on the CDP transport or client.

A minimal CDP request is:

{"id":1,"method":"Page.captureScreenshot","params":{"format":"png"}}

In a JSON-based CDP exchange, the response contains image data in result.data as a base64 string. Decode that string to bytes before writing the file, and use a filename extension that matches the requested format. Writing the base64 characters directly as though they were image bytes will not produce a valid screenshot.

Send a command interactively with Protocol Monitor

Chrome DevTools’ Protocol Monitor lets you send CDP commands and inspect their responses without building a separate automation client. Enable the Protocol Monitor experiment if it is not already available, open the panel from the Command menu or More tools, and select the intended page target.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
  1. Open Protocol Monitor. If necessary, enable its experiment in DevTools settings, then use the Command menu or More tools to open the panel.
  2. Select the page target. Check that the selected target is the tab and page you want to capture.
  3. Enter a command. For example, to request a JPEG screenshot, submit {"cmd":"Page.captureScreenshot","args":{"format":"jpeg"}}. The structured command editor can also generate a form from the protocol definitions.
  4. Inspect the response. Find result.data, decode its base64 value into binary image data, and save it with the matching extension.

The command format shown in Protocol Monitor is not the same as the CDP wire message in every transport. Use the format expected by the panel or client you are using.

Choose viewport, crop, or full-page capture

The default capture is not automatically a full-page image. Decide whether you need the visible viewport, a defined region, or content beyond the viewport before setting parameters.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

Visible viewport

For an ordinary viewport screenshot, send Page.captureScreenshot without a crop and leave beyond-viewport capture disabled. PNG is the default format.

Specific region with clip

Pass a clip viewport object to limit the screenshot to a region. Its geometry and scale must follow the protocol definition used by the target Chrome build. If the crop is shifted or the size is wrong, check those values and the scale rather than assuming the page viewport and clip use the same dimensions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Content beyond the viewport

Use captureBeyondViewport when you need content outside the visible viewport, provided the target version supports it. Determine the page’s actual content dimensions: Chromium’s protocol tests note that page content size can differ from the defined viewport dimensions. An unexpectedly viewport-sized result is a reason to check both the target version and this parameter.

Format and capture parameters

Parameter What it does When to use it
format Supports png, jpeg, and webp; PNG is the default. Choose PNG when lossless output matters; JPEG or WebP when a smaller lossy image is acceptable.
quality An integer from 0 to 100 that applies to JPEG. Set it when requesting JPEG and balancing image quality against file size. It does not apply to PNG.
clip Limits the capture to a region described by the protocol’s viewport object. Use it for a defined area; check geometry and scale against the target protocol definition.
captureBeyondViewport Allows capture beyond the visible viewport where supported. Use it for full-page or off-viewport content after checking support in the target Chrome build.
fromSurface Controls capture from the surface. Check the target version’s protocol definition before relying on it; this field is marked experimental in Chromium’s version 140 schema.
optimizeForSpeed Requests speed-oriented capture behavior. Check the target version’s protocol definition before relying on it; this field is marked experimental in Chromium’s version 140 schema.

In Chromium’s version 140 protocol schema, fromSurface, captureBeyondViewport, and optimizeForSpeed are marked experimental. Protocol support can vary with the Chrome build, so consult the protocol definition corresponding to the target rather than assuming an option works everywhere.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use a built-in alternative when raw CDP is unnecessary

If you need a screenshot rather than direct protocol control, these Chrome and browser-automation options may be simpler:

Option Best fit Scope and difference
Protocol Monitor Manual CDP exploration and debugging Sends one-off commands to a selected target and exposes requests and responses.
DevTools Device Mode Manual visual checks Offers viewport and full-size page screenshot actions through the DevTools interface.
Headless Chrome --screenshot Simple command-line captures Saves screenshot.png in the current working directory; the documented example pairs it with --window-size=412,892. The --timeout flag sets a maximum wait before capture, including while content is still loading.
Puppeteer Scripted browser automation A higher-level JavaScript library that works with Chrome and Firefox over CDP and WebDriver BiDi, with full-page and specific-element screenshot support.

In Device Mode, Capture screenshot captures the visible viewport, while Capture a full size screenshot includes page content that is not currently visible. DevTools also provides node, oversized-node, mobile/device-frame, full-page, and area capture workflows. Choose raw CDP when direct protocol control is the goal; choose the built-in workflow or an automation library when it better matches the task.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

Troubleshoot common capture problems

  • The image is only viewport-sized. Check the target Chrome version and whether captureBeyondViewport is enabled and supported. Also account for actual page content dimensions rather than assuming they equal the defined viewport.
  • The crop has the wrong position or size. Verify the clip geometry and scale against the protocol definition for the target build.
  • The saved file is corrupt or unreadable. Decode result.data from base64 into binary bytes before saving, and make sure the extension matches the requested format.
  • The command affects the wrong tab or page. Confirm the command is directed to the intended page target.
  • Chrome reports “Screenshot capture is restricted by policy.” For the Chrome extension browser.debugger API, enterprise DisableScreenshots policy or Data Loss Prevention rules can block capture and cause debugger attachment to fail. This restriction is documented for the extension debugger API; do not assume it applies to every remote-debugging transport.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF. Its capture flow accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. AI agents can use its MCP server tools: take_screenshot, get_page_info, and capture_pdf.

cURL example, adapted to capture the requested page:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo API documentation for request options. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Every feature is on every plan. Sign up for free: 1,000 screenshots a month, no card required.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.80
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

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.

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

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. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

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.