Recommended Free Tools
Call and await page.setViewport() before page.goto(), then take the screenshot. For example, set width and height in CSS pixels to control the page’s visible viewport; add fullPage: true to capture the full document rather than only the visible area.
Set the viewport before navigating
This complete Node.js example creates a page, sets its viewport to 1280 × 800 CSS pixels, loads a URL, saves a screenshot, and closes the browser:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
try {
const page = await browser.newPage();
await page.setViewport({
width: 1280,
height: 800,
deviceScaleFactor: 1,
});
await page.goto('https://example.com', { waitUntil: 'networkidle2' });
await page.screenshot({ path: 'page.png' });
} finally {
await browser.close();
}
})();
Set the viewport before navigation so the page’s responsive layout is evaluated at the intended size. Puppeteer’s documentation notes that some sites do not expect a phone-sized viewport to be applied after loading; changing mobile or touch settings can also cause a page reload in some cases. See the official Page.setViewport() API documentation.
Choose dimensions and device behavior
CSS-pixel width and height
width and height are required when passing a viewport object, and they are measured in CSS pixels—not necessarily the number of pixels in the saved image. Choose dimensions that match the layout breakpoint or browser view you want to reproduce. For example, a desktop-width viewport can trigger a different responsive layout from a narrow mobile-width viewport.
#1 Best Overall
- 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
Pixel density with deviceScaleFactor
deviceScaleFactor controls device pixel ratio and defaults to 1. Keep it at 1 for a standard-density output; use a larger value when you need more image pixels for the same CSS layout. It changes output density, not the CSS viewport dimensions.
Mobile and touch settings
Optional viewport properties include isMobile, hasTouch, and isLandscape. isMobile determines whether the page’s meta viewport tag is taken into account, while hasTouch enables touch-event support. These settings do not by themselves select a device user agent.
await page.setViewport({
width: 390,
height: 844,
deviceScaleFactor: 2,
isMobile: true,
hasTouch: true,
});
Emulate a known device when the user agent matters
If you need device metrics and a matching user agent, use Puppeteer’s device emulation rather than setting dimensions alone. The documented shortcut applies both user-agent and viewport settings, and should be called before navigation:
Rank #2
- 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 { KnownDevices } = require('puppeteer');
const device = KnownDevices['iPhone 17 Pro'];
await page.emulate(device);
await page.goto('https://example.com');
Device names and metrics can change between Puppeteer releases. Check the device names available in your installed version and the Page.emulate() API documentation.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Capture the visible viewport or the full page
The viewport determines the emulated page dimensions; it does not decide whether the screenshot includes the whole document. By default, fullPage is false, so a basic screenshot captures the visible viewport. Set it to true for a full-page capture:
await page.screenshot({ path: 'whole-page.png', fullPage: true });
For a selected region, use the screenshot clip option. captureBeyondViewport controls whether Puppeteer can capture outside the viewport; its default is false when no clip is supplied and true when a clip is supplied. Other useful screenshot options include:
Rank #3
- 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.
type: choose PNG, JPEG, or WebP where supported. PNG is the default.quality: set a value from 0 to 100 for lossy formats such as JPEG or WebP; it does not apply to PNG.omitBackground: true: omit the default white background to allow a transparent screenshot.path: save the image to disk. If you provide a path, its extension determines the image type; without a path, the returned image data is not automatically saved to disk.
See the current ScreenshotOptions API for the full option definitions.
Set a default viewport or inspect the current setting
ConnectOptions.defaultViewport configures the viewport for each page created through that connection. Its documented default is 800 × 600. For one page, page.viewport() returns Puppeteer’s configured viewport setting; it does not verify the page’s actual rendered viewport. To reset a page viewport to its default, call await page.setViewport(null). A value of 0 for width, height, or deviceScaleFactor resets that property to its system default.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesViewport sizing is distinct from browser-window sizing. For most screenshot tasks, set the page viewport with setViewport; use window-management APIs only when you specifically need to manage browser window bounds or content resizing.
Rank #4
- 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
Wait for the page content your screenshot needs
Navigation completion is not always the same as visual readiness. Puppeteer’s guide shows waitUntil: 'networkidle2' as an example, but a quiet network does not guarantee that every image, animation, or client-rendered element is ready. Wait for a page-specific selector or condition when the screenshot depends on it:
await page.goto('https://example.com');
await page.waitForSelector('.report-ready');
await page.screenshot({ path: 'report.png' });
For a single element, use the element handle’s screenshot method. Puppeteer’s guide notes that it attempts to scroll a hidden element into view before capturing it. See the official screenshots guide.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
For a hosted screenshot without configuring Puppeteer, make one GET request. See the ScreenshotNeo API documentation for request options.
Best Value
- 【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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. It also provides an MCP server with screenshot, page-info, and 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. Try it by signing up for ScreenshotNeo.
Frequently Asked Questions
Does changing the viewport resize the browser window?
No. page.setViewport() sets the page’s emulated viewport. It is separate from APIs that manage browser window bounds.
Can I set the viewport after calling goto()?
You can, but set it before navigation when possible so responsive layout is computed for the intended dimensions; changing mobile or touch settings may reload some pages.
What Puppeteer version do these API details describe?
The API references are for Puppeteer 25.12.0, checked October 3, 2026. If your installed version behaves differently, consult its matching documentation.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallQuick Recap
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.

