Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Cupertino desk5 min

How to Screenshot a Web Page at 2× Retina Resolution on a Mac

Set Playwright’s device scale factor to 2 and capture at device scale for a reproducible 2× webpage screenshot on Mac. Add fullPage for the entire document.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a saved 2× screenshot of a web page on a Mac, use Playwright: keep the browser viewport at the CSS dimensions you want, set deviceScaleFactor: 2, and capture with scale: 'device'. Add fullPage: true to include the entire scrollable page. For example, a 1280-CSS-pixel-wide layout will produce an image 2560 pixels wide.

Capture a full web page at 2× with Playwright

Playwright gives you explicit control over the page’s CSS viewport and the saved image’s pixel scale. Install it in a Node.js project, then run this script:

As an Amazon Associate I earn from qualifying purchases.

  1. In Terminal, create a project directory, enter it, and install Playwright:

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

    mkdir retina-shot && cd retina-shot
    npm init -y
    npm install playwright
    npx playwright install chromium

    #1 Best Overall
    Sale
    Apple 2025 MacBook Pro Laptop with Apple M5 chip with 10‑core CPU and 10‑core GPU: Built for AI, 14.2-inch Liquid Retina XDR Display, 16GB Unified Memory, 1TB SSD Storage; Space Black
    • SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
    • HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
    • BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
    • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
    • APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*
  2. Save the following as screenshot.js. Replace the example address with the page you want to capture:

    const { chromium } = require('playwright');

    (async () => {
    const browser = await chromium.launch();
    try {
    const context = await browser.newContext({
    viewport: { width: 1280, height: 900 },
    deviceScaleFactor: 2,
    });
    const page = await context.newPage();
    await page.goto('https://example.com', { waitUntil: 'networkidle' });
    await page.screenshot({
    path: 'page-2x.png',
    fullPage: true,
    scale: 'device',
    });
    } finally {
    await browser.close();
    }
    })();

  3. Run it with node screenshot.js. The image is saved as page-2x.png in the current directory.

    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.

In Playwright, fullPage: true captures the full scrollable document rather than just the visible viewport. scale: 'device' makes output pixels correspond to device pixels; with a device scale factor of 2, each CSS pixel maps to two pixels along each image dimension. See the Playwright screenshot documentation and screenshot API options.

Rank #2
Sale
Apple 2026 MacBook Pro Laptop with Apple M5 Pro chip with 18-core CPU and 20-core GPU: Built for AI, 16.2-inch Liquid Retina XDR Display, 24GB Unified Memory, 1TB SSD, Wi-Fi 7; Space Black
  • FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
  • BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
  • BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
  • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
  • MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.

Choose the CSS viewport separately from the 2× scale

The viewport width controls the page’s responsive layout; the device scale factor controls the density of the saved pixels. Set the viewport to the CSS width you want to reproduce, then set the scale factor to 2. A 1280-pixel CSS viewport produces a 2560-pixel-wide 2× image. For a full-page capture, the image height depends on the rendered document’s scrollable height, not just the 900-pixel viewport height in the example.

This distinction explains why a screenshot can look sharp on a Retina display but still have only one saved image pixel per CSS pixel. Apple’s archived web-image guidance describes 1× as standard resolution and 2× as high resolution, noting that at 2× density there are four device pixels within each CSS-pixel area: two across and two down. That statement concerns pixel density, not a fourfold increase in either dimension. See Apple’s archived Retina web-image guidance.

Capture only the visible viewport or reduce the image scale

Save only what is on screen

Remove fullPage: true from the screenshot options to capture the current viewport instead of the whole scrollable page. At 1280 × 900 CSS pixels and 2× device scale, the nominal output is 2560 × 1800 pixels.

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

Save one output pixel per CSS pixel

Keep the same viewport and device scale factor, but use scale: 'css' in page.screenshot(). That produces one output pixel per CSS pixel rather than a 2× image.

Rank #3
Sale
Apple 2026 MacBook Pro Laptop with Apple M5 Pro chip with 18-core CPU and 20-core GPU: Built for AI, 16.2-inch Liquid Retina XDR Display, 48GB Unified Memory, 1TB SSD, Wi-Fi 7; Space Black
  • FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
  • BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
  • BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
  • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
  • MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.

Use Safari to preview a page at a chosen pixel ratio

Safari’s Responsive Design Mode is useful for checking how a page adapts to different screen sizes and pixel ratios. In Safari, open the Develop menu and choose Enter Responsive Design Mode, or press Control-Command-R. Select a viewport and pixel ratio to preview the page; Apple notes that pixel ratio can affect images and styles. See Apple’s Responsive Design Mode documentation.

Responsive Design Mode is a preview and testing workflow. The Apple documentation cited here does not establish a direct Safari command for exporting the full web page as a 2× PNG. If you need a reproducible full-page image file with explicit pixel scaling, use the Playwright method above.

Troubleshoot common capture problems

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

Or skip the browser setup

ScreenshotNeo can return a screenshot through one GET request. This example saves a WebP image of a page at a 1280-CSS-pixel viewport width and 2× retina scale. See the ScreenshotNeo API documentation.

Best Value
Sale
Apple 2025 MacBook Pro Laptop with Apple M5 chip with 10‑core CPU and 10‑core GPU: Built for AI, 14.2-inch Liquid Retina XDR Display, 16GB Unified Memory, 1TB SSD Storage; Silver
  • SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
  • HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
  • BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
  • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
  • APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -d viewport_width=1280 -d retina=true -o shot.webp

ScreenshotNeo accepts and removes cookie-consent banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server lets AI agents use screenshot, page-info, and PDF-capture tools. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Learn more at ScreenshotNeo, or sign up for the free plan.

Performance and output-size considerations

A 2× image has four times as many pixels as a 1× image with the same CSS dimensions, because both width and height double. Full-page captures can therefore become large, particularly on long documents. Use a viewport-only capture when you need only the visible area, or use scale: 'css' when a 1× output is sufficient. The final height of a full-page screenshot depends on the page’s rendered scrollable height.

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

Frequently Asked Questions

How do I take a 2× screenshot on a Mac?

With Playwright, set the context’s deviceScaleFactor to 2 and use scale: 'device' in page.screenshot().

Can Safari save a full web page as a 2× PNG?

Safari Responsive Design Mode previews pages at selected viewport sizes and pixel ratios. The Apple documentation cited here does not document a direct full-page 2× PNG export command.

Why does a 2× screenshot have four times as many pixels?

Its width and height each double, so the total pixel count is four times that of a 1× image with the same CSS dimensions.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.