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

Use Puppeteer’s page.screenshot({ fullPage: true }) method to capture the full rendered page rather than only the current viewport. Add a path to save the image to disk; without one, Puppeteer returns image data instead of writing a file.

Capture and save the whole page

Install Puppeteer in your Node.js project, then launch a browser, open the target page, and call Page.screenshot() with fullPage: true. The option is a boolean and defaults to false, so set it explicitly for a full-page image. This example uses ES modules:

import puppeteer from 'puppeteer';

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'page.png', fullPage: true });
} finally {
  await browser.close();
}

The path saves the screenshot as page.png. Puppeteer infers the image type from the file extension; PNG is the documented default. The finally block closes the browser even if navigation or capture fails. Closing it after capture is also shown in Puppeteer’s screenshot guide.

Install Puppeteer

In an existing project, install the package with:

npm install puppeteer

Importing puppeteer gives you the Node.js Puppeteer interface, whose typical workflow uses launch() to start a browser. See the getting started guide for the basic setup.

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.
#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Choose when navigation is ready

The sample calls page.goto() with its default navigation wait. For pages that need more time to load, you can choose a waitUntil condition, such as networkidle2:

await page.goto('https://example.com', { waitUntil: 'networkidle2' });

Puppeteer’s guide uses that condition in an example, but it is not a universal definition of page readiness. If the content you need is rendered asynchronously, wait for a page-specific selector or condition before taking the screenshot.

Save to disk or use the returned image data

Use path when the image should be written to a file. If you omit it, Puppeteer does not save the screenshot to disk; the call returns image data instead. You can consume the returned bytes in memory, or request a base64 string with the appropriate encoding option.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
const imageBytes = await page.screenshot({ fullPage: true });
// imageBytes is screenshot data; write or process it as needed.

For a base64 result:

const base64Image = await page.screenshot({ fullPage: true, encoding: 'base64' });

The API documents a Uint8Array return value for image bytes and a base64 string for the base64 overload. Check the Page.screenshot() API reference for the overload details.

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

Set image format and capture options

The file extension determines the output type when you supply a path. Puppeteer documents PNG as the default; choose a matching extension for another supported image format. The screenshot options reference includes these additional settings:

  • quality accepts a value from 0 to 100 and does not apply to PNG.
  • clip captures a specified region rather than serving as a general full-page setting.
  • captureBeyondViewport controls capture beyond the viewport. Its documented default is false when there is no clip and true when a clip is supplied.
  • omitBackground, fromSurface, and optimizeForSpeed are also documented screenshot options.

For an ordinary full-page screenshot, begin with fullPage: true and add other options only when the output requires them. The ScreenshotOptions reference defines the available settings and defaults.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Full page versus one element

page.screenshot({ fullPage: true }) captures the page. If you need only a particular element, locate it and call ElementHandle.screenshot() instead. Puppeteer scrolls the element into view if needed; the call throws if that element has been detached from the DOM.

const element = await page.$('.report-card');
if (!element) throw new Error('Report card not found');
await element.screenshot({ path: 'report-card.png' });

This element-specific method is not a substitute for full-page capture when you need the complete page. See the ElementHandle.screenshot() reference.

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

Dynamic content and page height

fullPage: true selects full-page capture; it does not guarantee that every site has finished rendering all content. Lazy-loaded images, infinite scrolling, and other asynchronous sections may need page-specific preparation. Wait for the content you need before taking the screenshot, and verify that the resulting file contains the expected sections. The reviewed Puppeteer API documentation does not promise that full-page capture itself forces every site to load all dynamic content.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

The image shows only the viewport

Set fullPage: true explicitly. Its default is false, which captures the viewport rather than the full page.

No image file appears

Check that the screenshot options include a path and that the process can write to that location. If you omit path, the screenshot is returned as data and is not saved to disk.

The screenshot is missing late-loading content

Wait for the specific content the page needs to render before calling screenshot(). A navigation wait condition can help with page loading, but the right readiness check depends on the site; a generic network-idle condition is not a guarantee that every application has finished rendering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

An element screenshot fails

If using ElementHandle.screenshot(), confirm the element was found and remains attached to the DOM until capture. Puppeteer’s element screenshot method throws when the handle has been detached.

Concurrent page operations appear to pause

Within a BrowserContext, Puppeteer documents that calls such as newPage() and close() wait for an in-progress screenshot to finish; bringToFront() does not wait. Account for that behavior if other tasks share the context while a capture is running. See the Page API reference.

Or skip the browser setup

ScreenshotNeo can return a website screenshot with one GET request instead of requiring you to launch and manage a Puppeteer browser. Its API also supports full-page capture and other capture options; see the ScreenshotNeo documentation.

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

Before capture, ScreenshotNeo can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the page verdict and billing status in headers. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

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.

Sign up for ScreenshotNeo’s free plan to try it without a card.

Frequently Asked Questions

What does Puppeteer return if I do not provide a screenshot path?

It returns screenshot image data instead of saving a file; use the documented base64 encoding option if you need a base64 string.

Can I use Puppeteer to capture just one element?

Yes. Use `ElementHandle.screenshot()` for an element; it scrolls the element into view if needed and throws if it has been detached.

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.