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

You can capture a website screenshot without opening a visible browser window by using a headless browser. It still visits and renders the URL in the background; it simply saves the result without requiring you to interact with a browser window. For a one-off command, Chrome Headless has a screenshot option. For repeatable captures, Playwright provides a browser automation API, and shot-scraper offers a command-line workflow.

What “without opening it” means

A screenshot needs a rendered page. A headless browser loads the target website and paints it in the background, then saves an image. You avoid manually opening a visible browser window, but you do not capture a page without visiting it or loading its content.

The result reflects the page state and capture settings: viewport dimensions, whether you capture the full page or one element, and when the screenshot is taken can all matter. A screenshot workflow does not guarantee that every site will render identically, and it does not bypass a login, CAPTCHA, bot check, or other access restriction.

Choose the right capture method

Method Best fit What it gives you
Chrome Headless A quick command-line capture Chrome’s headless shell can save a page screenshot using its documented screenshot flag. Check the current Chrome documentation for exact flags before relying on a command, since the reference page’s current syntax could not be verified here. Chrome Headless shell documentation
Playwright A reusable script or automation workflow Navigate to a URL, set a viewport or other page options, and save a screenshot through the browser API. Its documentation also covers full-page and locator screenshots. Playwright Page API
shot-scraper A URL-to-image command-line workflow The release 0.17 documentation describes installing the CLI and its browser, then passing a URL to create an image. Its instructions below are specific to that documented release, not necessarily the latest version. shot-scraper documentation, release 0.17

Pick the capture scope before writing code: a viewport shot shows one browser-sized area, a full-page shot includes the scrollable document, and an element shot targets a specific part of the page. The sources document these controls but do not establish a comparative speed or image-quality ranking among the methods.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Capture a screenshot with Playwright

Playwright is a good choice when you need to make captures repeatedly or control what is captured. Its documented pattern is to launch a browser engine, open a page, navigate to the URL, save an image, and close the browser. The following Node.js example follows that pattern and adds a viewport setting and a full-page option.

Install Playwright

In a new project, install Playwright and its browser binaries using the commands in the official Playwright installation guide. The exact browser installation command can vary with the chosen engine and project setup, so follow the guide for your environment.

Runnable Node.js example

Save this as screenshot.js after installing Playwright. Replace the URL with the page you want to capture. The example writes screenshot.png in the current directory.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch({ headless: true });
  try {
    const page = await browser.newPage({
      viewport: { width: 1440, height: 900 }
    });
    await page.goto('https://example.com', { waitUntil: 'load' });
    await page.screenshot({ path: 'screenshot.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

Run it with node screenshot.js. The browser runs headlessly; the saved image is full-page because fullPage is set to true. Set it to false or remove it for a viewport screenshot. Playwright’s API reference documents navigation and screenshot options at Page API.

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

Python equivalent

If your automation is in Python, Playwright’s Python API uses the same basic sequence. Install the Python package and browser according to the Python installation guide, then save this as screenshot.py:

import asyncio
from playwright.async_api import async_playwright

async def main():
    async with async_playwright() as p:
        browser = await p.chromium.launch(headless=True)
        try:
            page = await browser.new_page(
                viewport={"width": 1440, "height": 900}
            )
            await page.goto("https://example.com", wait_until="load")
            await page.screenshot(path="screenshot.png", full_page=True)
        finally:
            await browser.close()

asyncio.run(main())

The try/finally block closes the browser even if navigation or the screenshot fails, which helps avoid leaving browser processes running in a longer-lived script.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Choose viewport, full-page, or element capture

Viewport screenshot

A viewport capture shows only the visible browser area at the selected width and height. Use it when you need a consistent preview, such as comparing the first screen of several pages. Set the viewport before navigation or capture so the site has a chance to lay itself out at the intended dimensions.

Full-page website screenshot

For a full-page website screenshot, use Playwright’s fullPage: true option in JavaScript or full_page=True in Python. This captures the scrollable page rather than only the initial viewport, so the output can be much taller. A tall image may be unwieldy to share or inspect, and some pages reveal or load content only as you scroll; verify the resulting image when the bottom of the page matters. Playwright documents the full-page option in its Page API.

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

Element screenshot

When only one component matters, capture a locator instead of the whole page. For example, in the Node.js script, replace the page screenshot call with:

await page.locator('main').screenshot({ path: 'main.png' });

Change main to a CSS selector that identifies the element on the target page. If the selector matches nothing or identifies a hidden element, the capture will fail or not show what you expect; inspect the page structure and choose a visible target. Playwright documents locator screenshots alongside page screenshots in the Page API.

Use a command-line tool for a one-off capture

shot-scraper

The release 0.17 documentation describes shot-scraper as a command-line utility for automated website screenshots. Its documented setup installs the package and then installs its browser:

pip install shot-scraper
shot-scraper install

Pass the URL as an argument to create an image:

shot-scraper https://datasette.io/

The documented example creates datasette-io.png. These instructions are specifically from the release 0.17 documentation; check the project’s current instructions if you need a different version or the command behaves differently. shot-scraper documentation

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Chrome Headless

Chrome for Developers documents the --screenshot flag for capturing a page. Its example is:

chrome --headless --disable-gpu --screenshot https://www.chromestatus.com/

The documentation page’s current contents could not be verified here, so treat this as the documented example rather than a guarantee that the exact command works unchanged with every Chrome installation. Confirm the flag names and executable path for your installed version in the Chrome Headless shell documentation.

Control output and page preparation

Playwright’s screenshot and CLI documentation covers controls such as filename, output format, high-resolution capture, viewport size, full-page capture, and element targeting. Supported CLI syntax depends on the installed Playwright version; consult the Screenshots documentation and CLI documentation rather than assuming command options from a different release.

  • Filename: choose a descriptive path, such as reports/homepage.png. Ensure the destination directory exists.
  • Format: Playwright’s CLI documents PNG, JPEG, and WebP choices. Pick based on the downstream use: lossless detail versus a smaller compressed file. Confirm the applicable option in the version-specific documentation.
  • Viewport and scale: set the viewport for a stable layout; high-resolution or device-scale settings can produce larger images.
  • Timing: waiting for page load is a starting point, but not every site finishes rendering its important content at the same event. If a known element appears later, wait for that selector before taking the screenshot.

For repeatable captures, record the URL, viewport, output format, capture scope, and any wait condition. A change in any of these can change the image, even if the URL stays the same.

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

Or skip the browser setup

If you want to capture a URL without installing and managing a browser locally, ScreenshotNeo is a website screenshot API and MCP server. One GET request returns an image or PDF; this cURL example saves a WebP screenshot of the target URL:

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

See the ScreenshotNeo API documentation for the API details. Its clean-shot options accept cookie or consent banners and remove 60+ known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

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

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common capture problems

The command cannot find Chrome or its browser

The browser executable may not be installed or available at the expected path. For Playwright, install the browser binaries using the installation instructions for your package and environment. For shot-scraper 0.17, its documented setup includes shot-scraper install. Check that the command is being run in the same environment where the package was installed.

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.

The screenshot is blank or the page looks unfinished

Navigation completion does not always mean that every visual element has appeared. A site may load content later, or content may depend on scrolling or other interaction. Wait for a meaningful selector with Playwright before capturing, for example:

await page.goto('https://example.com', { waitUntil: 'load' });
await page.locator('main').waitFor({ state: 'visible' });
await page.screenshot({ path: 'screenshot.png' });

If the site requires a user action, authentication, or a permitted session, a basic URL-only capture may not show the desired page. Do not assume a screenshot service or headless browser bypasses those requirements.

The page is too narrow, clipped, or different from the expected layout

Set the viewport explicitly and capture again. Responsive websites change layout according to viewport width; a full-page screenshot also has a different height from a viewport capture. If only one component is needed, target its locator rather than trying to crop a whole-page image afterward.

Images or lazy content are missing

Some sites load images only when they approach the viewport. A full-page option does not prove that every lazy-loaded asset has been requested. Check the saved image and, if needed, use a page-preparation step supported by your chosen tool to scroll or wait for the relevant content before capture.

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

The site blocks automation or requires a login

A headless browser still makes a request to the site and renders what it can access. A login wall, bot check, or CAPTCHA can prevent the intended content from appearing. Use an authorized account or capture method where the site permits it; these methods do not establish a way to bypass access controls.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The file is missing or the output is hard to use

Confirm the process completed without an error, that the destination directory exists, and that the output path is writable. For a very tall full-page image, try a viewport or element screenshot if the task does not require the whole document. Select an output format and resolution appropriate for where the image will be used.

Performance, repeatability, and cost

A browser has to start, load the page, render it, and write the image, so a headless screenshot is not a zero-load operation. Repeated work is easier to automate with a script or CLI than by manually opening a browser each time, but the sources do not establish a speed ranking between these tools. Page complexity, network conditions, chosen capture scope, and browser environment all affect the work involved.

For dependable comparisons or audits, keep capture settings consistent and note when the page was captured. If you run captures in bulk, handle navigation timeouts and browser cleanup explicitly, and avoid treating a successful image file as proof that the page rendered correctly. Inspect representative results, especially when the page depends on delayed content.

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

Local tools require you to install and run their browser environment. A hosted screenshot API trades that setup for a remote request and a service plan; compare the workflow and billing model with your own volume and requirements. ScreenshotNeo publishes its plans and features on its own site; the figures above describe its stated monthly allowances and starting paid tier, not an independent price comparison.

Frequently Asked Questions

Can I screenshot a website without visiting or loading it?

No. A headless browser avoids a visible window, but it must load and render the page to produce a screenshot.

Can I capture only part of a website?

Yes. With Playwright, capture a locator that selects the element you need instead of the whole page.

Does a full-page screenshot include everything below the fold?

It captures the scrollable page, but pages that load content only after scrolling may need additional preparation; inspect the result.

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.

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.