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

Use a browser automation library and set fullPage: true. In Deno, Playwright and Puppeteer can be imported with the npm: specifier. Navigate to the page, wait for navigation or an application-specific readiness signal, then save the screenshot or keep its bytes in memory. A minimal Playwright capture is:

import { chromium } from "npm:playwright";

const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto("https://example.com", { waitUntil: "networkidle" });
await page.screenshot({ path: "screenshots/example.png", fullPage: true });
await browser.close();

fullPage changes the capture geometry from the viewport to the complete scrollable document. It does not, by itself, make a client-rendered app finish loading or force lazy content to appear, so readiness and Deno permissions matter just as much as the screenshot option.

What full-page means in Deno

A normal screenshot records only the currently visible viewport. A full-page screenshot expands the capture to the page’s scrollable height, including content below the fold. Both Playwright and Puppeteer expose this directly:

  • Playwright: page.screenshot({ fullPage: true }).
  • Puppeteer: page.screenshot({ fullPage: true }); Puppeteer’s fullPage default is false.

The resulting image can be written to disk or returned as bytes for further processing. Extremely long documents can produce very tall images; for reports or printing, PDF may be a better output.

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.

Prerequisites and Deno permissions

Deno denies filesystem, network, environment, and subprocess access unless you grant them. A capture that visits example.com and writes to a local directory can start with:

deno run --allow-net=example.com --allow-write=./screenshots screenshot.ts

Use the narrowest permissions that work. Browser packages may need additional permissions depending on their version and how the browser is installed, including subprocess access. Do not use -A (the alias for --allow-all) in production unless you trust the complete script and its dependencies; that flag disables Deno’s permission sandbox.

Prepare the output directory

Create the directory before running the script, or create it in code with Deno.mkdir. If you create it in code, grant the directory rather than the entire filesystem:

await Deno.mkdir("screenshots", { recursive: true });

That operation still requires --allow-write=./screenshots.

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

Playwright: complete Deno example

This example waits for network activity to settle, sets a deterministic viewport, captures the whole page, and closes the browser even when the capture fails.

import { chromium } from "npm:playwright";

const target = "https://example.com";
const output = "screenshots/example.png";

const browser = await chromium.launch();
try {
  const page = await browser.newPage({
    viewport: { width: 1440, height: 900 },
    deviceScaleFactor: 1,
  });

  await page.goto(target, {
    waitUntil: "networkidle",
    timeout: 60_000,
  });

  await page.screenshot({
    path: output,
    fullPage: true,
    type: "png",
    scale: "css",
  });

  console.log(`Saved ${output}`);
} finally {
  await browser.close();
}

Run it with:

deno run --allow-net=example.com --allow-write=./screenshots screenshot.ts

Playwright can also return a buffer instead of writing a file:

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.
const bytes = await page.screenshot({ fullPage: true, type: "png" });
await Deno.writeFile("screenshots/example.png", bytes);

Useful Playwright controls

  • fullPage: true captures the complete scrollable document.
  • clip captures a specified rectangle when a whole page is not wanted.
  • scale: "css" avoids unnecessarily large device-pixel output; use the default scale when you need device-pixel detail.
  • omitBackground: true preserves transparency where the page has no painted background.
  • path saves directly; omitting it returns image bytes.

Wait for application content, not just navigation

networkidle is useful for pages whose requests eventually settle, but single-page applications, analytics, long polls, and lazy components can keep changing after navigation. Prefer a concrete readiness signal when you know one:

await page.goto(target, { waitUntil: "domcontentloaded" });
await page.locator("main[data-ready='true']").waitFor({ state: "visible", timeout: 30_000 });
await page.screenshot({ path: output, fullPage: true });

If the page has no reliable selector, use a short, justified delay as a fallback rather than assuming that a fixed delay guarantees correctness.

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

Puppeteer: complete Deno example

Puppeteer uses the same full-page option. Its documented networkidle2 navigation condition waits until there are no more than two active network connections for the required period.

import puppeteer from "npm:puppeteer";

const target = "https://example.com";
const output = "screenshots/example.png";

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();
  await page.setViewport({ width: 1440, height: 900, deviceScaleFactor: 1 });
  await page.goto(target, {
    waitUntil: "networkidle2",
    timeout: 60_000,
  });
  await page.screenshot({
    path: output,
    fullPage: true,
    type: "png",
  });
  console.log(`Saved ${output}`);
} finally {
  await browser.close();
}

Run it with the same narrowly scoped network and write permissions, adding whatever subprocess permission your chosen Puppeteer/browser setup requires.

Puppeteer output options

Puppeteer supports path, image type, quality, clipping, background, and encoding controls. PNG is lossless. JPEG and WebP can reduce storage where some compression is acceptable. Without a path, the method returns image data (a Uint8Array in current APIs), which you can send to another service or write with Deno.writeFile.

Making below-the-fold content appear

Full-page geometry is not the same as full application state. Images or sections loaded by an IntersectionObserver may not exist until they are scrolled into view. A practical approach is to scroll through the document before the final capture:

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.
await page.evaluate(async () => {
  await new Promise<void>((resolve) => {
    let y = 0;
    const step = 700;
    const timer = setInterval(() => {
      y += step;
      window.scrollTo(0, y);
      if (y >= document.body.scrollHeight) {
        clearInterval(timer);
        window.scrollTo(0, 0);
        resolve();
      }
    }, 100);
  });
});
await page.waitForTimeout(500);
await page.screenshot({ path: output, fullPage: true });

Use a selector-based wait after this scroll when possible, for example waiting for the last content card or an image’s complete state. This is site-specific implementation guidance: no browser flag can infer that a particular lazy component is ready.

Sticky headers and repeated elements

Fixed or sticky headers can appear repeatedly or cover content in a long capture. If that is a problem, hide the element with page CSS before the screenshot, or temporarily change its position. Keep this alteration in the capture script so the live site is never modified:

await page.addStyleTag({
  content: "header.sticky, .chat-widget { display: none !important; }",
});

Only hide elements you are intentionally excluding; otherwise the screenshot no longer represents the rendered page.

Playwright or Puppeteer in Deno?

Both libraries provide the decisive call, so choose based on runtime compatibility, browser installation, and the controls your deployment needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Concern Playwright Puppeteer
Deno package loading npm:playwright npm:puppeteer
Full-page option fullPage: true fullPage: true (default is false)
Typical readiness example waitUntil: "networkidle" or a selector wait waitUntil: "networkidle2" or a selector wait
Output controls Path or buffer; clip, scale, transparent background Path or image data; type, quality, clip, background, encoding
Operational decision Verify browser installation, launch flags, and required Deno permissions in your target environment.

Neither library automatically solves consent dialogs, bot checks, or pages that never become idle. Those behaviors must be handled in your script or by a capture service.

Reliability, performance, and cost considerations

Keep captures deterministic

  • Set a fixed viewport, device scale, locale, timezone, and user agent when visual diffs matter.
  • Use PNG for pixel-accurate documentation; use JPEG or WebP when transfer and storage size matter more.
  • Wait for a known selector or application-ready state instead of relying only on elapsed time.
  • Close each browser and page. Reusing one browser for a controlled batch is usually less expensive than launching a process for every URL, but isolate pages when cookies or authentication must not leak.

Control long pages

A full-page image’s dimensions grow with document height. Very long pages consume more memory and can hit image-tool limits. Consider capturing a specific element, splitting a document into sections, or generating a PDF when the reader needs pagination.

Protect credentials

Do not place passwords or API keys in a URL, source repository, or screenshot. Use Deno’s environment permission only when needed and keep secrets out of page content and logs.

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 full-page captures

The script cannot import the package

Use the npm: prefix exactly, for example import { chromium } from "npm:playwright";. Confirm that the Deno version supports npm packages and that the package’s browser setup is available in the deployment image.

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

Permission denied

Grant only the missing capability: --allow-net=host for navigation, --allow-write=./screenshots for files, and any subprocess permission required by the browser launcher. A permission error is not fixed by changing fullPage.

The image contains only the first screen

Check that the screenshot call actually includes fullPage: true and that you are not passing a restrictive clip. Inspect the saved file’s dimensions; a viewport-sized image usually indicates the option was omitted or overwritten.

Images or cards are missing below the fold

Scroll to trigger intersection-based loading, then wait for a selector or image completion. Network-idle waits describe network activity, not whether a specific component has finished rendering.

The capture times out

Raise the navigation timeout only when the target is expected to be slow, and diagnose the page separately. Check DNS, TLS, redirects, authentication, and bot protection. For pages with persistent connections, replace a network-idle condition with a concrete readiness selector.

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.

The page is blank or shows a bot check

Browser automation may be blocked or may have reached an interstitial instead of the intended page. Do not treat a technically successful HTTP navigation as a valid screenshot; inspect the page title, URL, and visible text before saving.

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.

Sticky UI obscures content

Hide or restyle the offending fixed element with a temporary stylesheet, or capture the relevant content element rather than the entire document.

Or skip the browser setup

ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF, so you do not install or launch a browser in your Deno process. It accepts the cookie or consent banner like a visitor, then removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers.

See the parameter details in the ScreenshotNeo documentation. The basic call is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

From Python:

import requests

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

From 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}`);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
await Bun.write('shot.webp', res.body);

For Deno, the same URL can be requested with fetch and the response body written with Deno.writeFile:

const q = new URLSearchParams({
  access_key: "YOUR_API_KEY",
  url: "https://stripe.com",
});
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
await Deno.writeFile("shot.webp", new Uint8Array(await res.arrayBuffer()));

ScreenshotNeo also supports full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets and custom viewports, retina scale, custom CSS and JavaScript, click-before-capture, selector or network-idle waits, request blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, configurable caching, signed image links, asynchronous jobs with signed webhooks, and bulk capture of up to 100 URLs per call. An MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.

Plan Included shots Price
Free 1,000 per month $0, no card
Starter 3,000 $5
Growth 15,000 $15
Pro 60,000 $39
Scale 250,000 $99
Business 1,000,000 $249

Yearly billing gives two months free, and every feature is on every plan. The free tier includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account to try it.

Frequently Asked Questions

Does fullPage: true include content hidden behind a click?

No. It expands the document capture area; content that requires a click, scroll trigger, authentication, or another state must be made visible in your script first.

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.

Can I capture a full page without saving a file?

Yes. Omit path and use the returned screenshot bytes, then upload or process them in memory.

Why is a PDF sometimes preferable to a very tall PNG?

A PDF provides pagination and is usually easier to print or distribute when the document is exceptionally long.

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.