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.

Use Puppeteer’s page.screenshot() method with a filename ending in .jpg or .jpeg. For explicit intent, set type: 'jpeg' and choose a quality value from 0 through 100. The default format is PNG, so specifying JPEG (or using a JPEG filename extension) matters.

The shortest working example

This ES module saves the page at https://example.com as a JPEG file:

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: 'screenshot.jpg',
    type: 'jpeg',
    quality: 80,
  });
} finally {
  await browser.close();
}

quality: 80 is only a starting value; Puppeteer documents the allowed range, not one universally best setting. The API spelling is jpeg, while jpg and jpeg are common filename extensions. The example uses Puppeteer’s current documented option names; the versioned API references displayed version 25.12.0 on September 29, 2026.

See the ScreenshotOptions reference and the Page.screenshot() reference for the current API.

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

How Puppeteer chooses the JPEG format

Use the filename extension

When you provide a path, Puppeteer infers the output format from that path’s extension. Therefore, this is sufficient:

await page.screenshot({ path: 'home.jpeg' });

A relative path is resolved from the process’s current working directory. If you need a predictable location in a build or CI job, pass an absolute path or construct one from the directory your process intentionally uses.

Set type: 'jpeg' explicitly

An explicit type makes the format clear even when a path is generated dynamically:

await page.screenshot({
  path: 'home.jpg',
  type: 'jpeg',
});

The documented ImageFormat values are png, jpeg, and webp; the default is png. See the ImageFormat type.

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

Set JPEG quality from 0 to 100

quality accepts a number from 0 through 100. It applies to JPEG output and has no effect on PNG. Puppeteer does not publish a single best quality value, so choose one based on your own visual and storage requirements rather than treating 80 as a recommendation.

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
await page.screenshot({
  path: 'preview.jpg',
  type: 'jpeg',
  quality: 60,
});

Keep the setting inside the documented range. If a caller can supply quality dynamically, validate it before passing it to Puppeteer so an invalid request does not reach the browser.

Save to disk, or keep the image in memory

Goal Options Result
Write a JPEG file path: 'shot.jpg', optionally type: 'jpeg' Puppeteer writes the image at the path. Relative paths use the current working directory.
Receive image bytes Omit path page.screenshot() returns a Uint8Array by default; no disk file is created.
Receive text for transport Omit path and set encoding: 'base64' The method returns a base64 string instead of bytes.

The return behavior is documented in the Page.screenshot() API. For an HTTP response, object store, or database, omitting path avoids a temporary file:

const jpegBytes = await page.screenshot({
  type: 'jpeg',
  quality: 80,
});

// jpegBytes is a Uint8Array when encoding is not specified.

For base64:

const jpegBase64 = await page.screenshot({
  type: 'jpeg',
  quality: 80,
  encoding: 'base64',
});

Capture a full page, a region, or one element

Full-page JPEG

Set fullPage: true when the screenshot should include the full scrollable page rather than only the current viewport:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({
  path: 'full-page.jpg',
  type: 'jpeg',
  quality: 80,
  fullPage: true,
});

A clipped rectangle

Use clip to capture a specific region. The rectangle is expressed with coordinates and dimensions:

await page.screenshot({
  path: 'region.jpg',
  type: 'jpeg',
  quality: 80,
  clip: {
    x: 0,
    y: 0,
    width: 800,
    height: 450,
  },
});

One DOM element

Find an element and call ElementHandle.screenshot(). Puppeteer scrolls the element into view when necessary. The call throws if the element has detached from the DOM before capture; reacquire the handle and try again after the page has finished updating. The method uses the same screenshot options as Page.screenshot(). See the ElementHandle.screenshot() reference.

Rank #3
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.
const card = await page.$('.pricing-card');
if (!card) {
  throw new Error('Expected .pricing-card was not found');
}

await card.screenshot({
  path: 'pricing-card.jpg',
  type: 'jpeg',
  quality: 85,
});

The selector is an example; replace it with a selector that is stable on your page.

Backgrounds and JPEG’s transparency limitation

omitBackground: true hides Puppeteer’s default white background and permits transparency where the selected output format supports it. JPEG is not a transparent-pixel format, so do not expect an alpha channel in a JPEG file. If transparency is required, choose an output format that supports it instead of JPEG.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({
  path: 'logo.png',
  type: 'png',
  omitBackground: true,
});

For a normal photographic or web-page JPEG, leave omitBackground unset unless you have a specific background-handling reason.

A production-friendly Puppeteer script

The following CommonJS program accepts a URL and output filename, creates the parent directory, and always closes the browser. The screenshot options make JPEG output explicit.

const fs = require('node:fs');
const path = require('node:path');
const puppeteer = require('puppeteer');

async function saveJpg(url, outputFile) {
  const absoluteOutput = path.resolve(outputFile);
  fs.mkdirSync(path.dirname(absoluteOutput), { recursive: true });

  const browser = await puppeteer.launch();
  try {
    const page = await browser.newPage();
    await page.goto(url);
    await page.screenshot({
      path: absoluteOutput,
      type: 'jpeg',
      quality: 80,
    });
    return absoluteOutput;
  } finally {
    await browser.close();
  }
}

const [, , url, output = 'screenshots/page.jpg'] = process.argv;
if (!url) {
  console.error('Usage: node save-jpg.js https://example.com [output.jpg]');
  process.exit(1);
}

saveJpg(url, output)
  .then(file => console.log(`Saved ${file}`))
  .catch(error => {
    console.error(error);
    process.exitCode = 1;
  });

Run it with node save-jpg.js https://example.com screenshots/example.jpg. The output path is resolved before capture, so the success message identifies the exact file location.

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

Timing, concurrency, and reliability notes

  • Keep the try/finally browser pattern in long-running jobs. It closes Chromium when navigation or capture fails.
  • Do not assume that omitting path writes a hidden file: it returns data in memory and creates no disk output.
  • During a screenshot in a BrowserContext, some page-creation and close methods wait for the screenshot to finish. This matters when several captures share a context. Page.bringToFront() does not wait for a screenshot.
  • For element captures, obtain a fresh handle after major DOM updates. A detached handle causes ElementHandle.screenshot() to throw.
  • The official references do not publish comparative JPEG file-size or visual-quality measurements. Measure your own pages if you need a storage or bandwidth policy.

The concurrency behavior is described in the Page.screenshot() documentation. The supplementary Puppeteer screenshots guide also introduces Page.screenshot(); use the versioned API references for option names.

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

Troubleshooting common JPG captures

The file is PNG even though I expected JPG

Check both the extension and the option. Use a .jpg or .jpeg path and, when clarity matters, set type: 'jpeg'. If the path has no extension and no explicit type, the documented default is PNG.

No file appears

Confirm that you supplied path. Without it, Puppeteer returns a Uint8Array (or base64 text when requested) and does not save a file. Also check the process’s current working directory when using a relative path.

Changing quality does nothing

quality is not applicable to PNG. Set type: 'jpeg' or use a JPEG extension before evaluating quality changes, and keep the value between 0 and 100.

The element screenshot throws about a detached node

The element changed or was removed after you obtained its handle. Query the element again after the page update, verify the handle is not null, and then call screenshot().

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.
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.

The image is not transparent

JPEG cannot promise transparent pixels. Use a format that supports transparency, such as PNG, with omitBackground: true when that is the actual requirement.

Concurrent captures appear to wait

Shared BrowserContext operations can wait while a screenshot is running. Isolate independent work in separate contexts or schedule captures so that page creation and closing are not unexpectedly blocked. The documented exception is that bringToFront() does not wait.

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

Or skip the browser setup

For a hosted screenshot, ScreenshotNeo provides a one-request API and an MCP server for AI agents. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status.

Use the API documentation at screenshotneo.com/docs/ for all parameters. A JPEG request can be made with cURL:

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://example.com -o shot.webp

The same endpoint from Python:

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

And Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Replace the target URL with the page you need and choose the output options documented by ScreenshotNeo. Its tools include full-page and element capture, device and viewport controls, retina scale, PDF output, custom CSS and JavaScript, waits, request blocking, headers and cookies, geolocation, caching, signed links, asynchronous jobs, bulk capture, usage data, and an OpenAPI specification. The MCP tools are take_screenshot, get_page_info, and capture_pdf.

The Free plan includes 1,000 shots per month without a card. Paid plans start at $5 for 3,000 shots; listed plans are Starter ($5/3,000), Growth ($15/15,000), Pro ($39/60,000), Scale ($99/250,000), and Business ($249/1,000,000). Yearly billing gives two months free, and every feature is on every plan. Create a free ScreenshotNeo account to begin.

Which approach fits your job?

Need Best fit Why
Control a local browser and page state Puppeteer Run JavaScript in your own process and choose path, bytes, clipping, full-page, or element capture.
Generate a hosted image with no browser installation ScreenshotNeo One HTTP request, cleanup of common consent and popup elements, and billing headers that distinguish clean captures from failures.
Let an AI agent request screenshots ScreenshotNeo MCP Use its MCP server with Claude, Cursor, or another MCP client.

Frequently Asked Questions

Does Puppeteer call the format “jpg” or “jpeg”?

The screenshot option uses the value 'jpeg'. The filename may use either the .jpg or .jpeg extension.

Can I save a screenshot without creating a temporary file?

Yes. Omit path and consume the returned Uint8Array, or request a base64 string with encoding: 'base64'.

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

What should I verify when upgrading Puppeteer?

Recheck the versioned ScreenshotOptions, Page.screenshot(), and ImageFormat references because API details can change between releases.

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.