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

For a whole-page capture, start with await page.screenshot({ path: 'page.png', fullPage: true }). If a fixed header covers content you need to read, Puppeteer’s documented controls let you capture a chosen rectangle with clip or temporarily hide the site-specific header before capturing. The official API does not guarantee how fixed or sticky elements will appear in every full-page screenshot, so verify the result with your target page and installed Puppeteer version.

Choose the capture method for the output you need

What you need Puppeteer method What to account for
The entire rendered document page.screenshot({ fullPage: true }) Convenient for long pages, but the reviewed API documentation does not specify fixed- or sticky-header composition in every case.
A specific rectangular region page.screenshot({ clip: { x, y, width, height } }) You control the output bounds; choose coordinates and dimensions for the page and viewport.
One particular element element.screenshot() Captures that element, scrolling it into view if needed; it is not a whole-document capture.
Content obscured by a persistent header Temporarily change the header’s CSS, then capture Page-specific technique inferred from the screenshot APIs, not a documented fixed-header recipe. Restore the page state if reusing the page.

Capture the entire long page

Use fullPage: true when you want Puppeteer to request a screenshot of the full page in its normal rendered appearance:

await page.screenshot({
  path: 'page.png',
  fullPage: true,
});

This is the simplest starting point. However, a fixed header can visually cover content, and the official Puppeteer references do not promise whether fixed or sticky elements will appear once, repeat, or obscure content in every configuration. Inspect the saved image rather than assuming fullPage resolves an overlap.

Exclude the header band with a clip

If you need a bounded image that omits the top header area, define the capture rectangle with clip:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({
  path: 'content.png',
  clip: { x: 0, y: 80, width: 1280, height: 900 },
});

The coordinates above are examples, not universal measurements. Set them for the page and output you want. A clip controls which rectangle is captured; it does not change the layout or move content that sits beneath a fixed header. When a clip is supplied, Puppeteer documents captureBeyondViewport as defaulting to true.

Hide a fixed header when you need the covered content

If the required content lies beneath a fixed header, you can apply a temporary style before the screenshot. This is an implementation approach based on Puppeteer’s page-side styling and screenshot APIs, not an official guarantee or universal recipe. Replace header with the selector that matches the target site.

#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
const style = await page.addStyleTag({
  content: 'header { visibility: hidden !important; }',
});

try {
  await page.screenshot({ path: 'page.png', fullPage: true });
} finally {
  await style.evaluate(element => element.remove());
}

visibility: hidden hides the header visually but generally leaves its layout space in place. If that is not the desired result, test an alternative such as display: none on the page you are capturing. The right choice depends on how the site positions the header and how the resulting image should look. The example removes the injected style even if capture fails; if the page is reused, ensure other page modifications are also cleaned up or reload the page.

Capture a particular element

When the output should be one article or content block rather than the whole document, wait for the element and use its screenshot method:

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.
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 element = await page.waitForSelector('.article-content');
if (!element) throw new Error('Article content was not found');
await element.screenshot({ path: 'article.png' });

Puppeteer’s element screenshot method scrolls the element into view if needed. Choose this method for a focused element capture; it does not mean “capture the entire long page.”

Check version and screenshot output

Puppeteer’s documentation identified version 25.12.0 at the time the references were accessed. Screenshot behavior has changed historically, including full-page viewport-reset fixes and changes involving clipping. Check the documentation and changelog for the version installed in your project when output differs from an example, and validate against the browser and site you actually use.

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.

Page.screenshot() returns a Uint8Array by default; the API also supports a base64 string through its encoding option. The API reference notes that certain page lifecycle operations in a BrowserContext wait for screenshots to finish to avoid interference.

Troubleshoot a header or content that looks wrong

  • The header covers text in the image: Try a clip that excludes the header band, or temporarily hide the site-specific header. A clip alone will not shift underlying content.
  • The clipped image omits wanted content: Recheck x, y, width and height against the target page and desired output. The sample rectangle is illustrative only.
  • Hiding the header leaves an empty strip: That may be because the header still occupies layout space. Test a different CSS treatment, such as display: none, and inspect the result.
  • The full-page image differs from expectations: Fixed and sticky composition is not guaranteed by the reviewed API documentation. Test the target page with the installed Puppeteer version rather than relying on a universal behavior.
  • The page remains modified after capture: Put cleanup in a finally block and remove injected styles or reload the page before reusing it.
  • An older example behaves differently: Check the installed version’s screenshot documentation and changelog; screenshot and clip behavior has received changes over time.

Or skip the browser setup

ScreenshotNeo offers a screenshot API and MCP server. Its one-call API can return a screenshot or PDF; for example, save a page capture with cURL:

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.
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
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups and chat widgets; each of those steps can be disabled. Bot checks, blank pages, timeouts, failed loads and cache hits are not billed, and responses include X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.

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

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

Frequently Asked Questions

Does an element screenshot capture the full page?

No. It captures the selected element and scrolls it into view if needed.

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.

What does Page.screenshot() return by default?

A Uint8Array. The API also provides an encoding option for a base64 string.

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.