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

To download an HTML page as a PNG, capture the page after a browser renders it. A PNG is a flat image of the rendered result—not editable HTML, a navigable offline copy, or the page’s source code. For a one-off capture, Firefox can save a viewport, full page, or individual element. For repeatable work, Playwright can save PNG files from scripts and CI jobs.

Choose the capture scope first: the viewport contains only what is visible, a full-page image includes content below the fold, and an element capture saves one component such as a chart or article card.

Choose the kind of PNG you need

Goal Capture type Best route
Save what is visible now Viewport screenshot Browser screenshot button or an ordinary automation screenshot
Include the entire scrollable document Full-page screenshot Firefox full-page capture or Playwright with fullPage: true
Save one chart, image, or section Element/node screenshot Firefox Inspector “Screenshot Node” or a Playwright locator
Capture many URLs or repeat a workflow Automated browser screenshot Playwright (or Puppeteer when your team already uses it)

A screenshot records pixels. It will not preserve links, selectable text, scripts, forms, or responsive behavior. If you need an offline webpage, save the HTML and its dependent assets instead; that is a different task.

Save a full page or element in Firefox

Firefox includes a full-page screenshot feature in Developer Tools. The labels below are Firefox’s documented interface names; minor placement can vary by installed version.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images
  1. Open the page you want to capture.
  2. Open Developer Tools (right-click the page and choose Inspect, or use your operating system’s Developer Tools shortcut).
  3. Open Developer Tools Settings.
  4. Under Available Toolbox Buttons, enable Take a screenshot of the entire page.
  5. Close Settings and click the screenshot camera icon in the Developer Tools toolbar. Firefox saves the image to your Downloads directory.

This produces a full-page PNG, including content below the current viewport. Review the result for repeated sticky headers, cookie dialogs, chat bubbles, or sections that were still loading.

Capture one element with “Screenshot Node”

  1. Open Developer Tools and select the Inspector tab.
  2. In the HTML pane, select the element you want.
  3. Open that element’s context menu.
  4. Choose Screenshot Node.

Firefox captures the selected node and its descendants rather than the whole page. This is useful for a logo, table, product card, chart, or article section.

Use Firefox’s screenshot command when a delay or selector is needed

Firefox also documents a :screenshot command with options for a delay, device-pixel ratio, filename, full-page capture, and CSS selector. A delay is useful when a hover state, menu, animation, or delayed font needs time to appear. A selector limits the shot to a matching element and its descendants. Because command syntax and Developer Tools details can change between Firefox releases, check the help shown by your installed version before relying on a scripted command.

Automate PNG downloads with Playwright

Playwright is the most complete documented route here for repeatable screenshots. It launches a browser, navigates to a URL, writes an image, and closes the browser. Install it in a new project:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Canon CanoScan LiDE 400 Slim Scanner, 7.7" x 14.5" x 0.4", Document & Photo Scanner, Black
  • Enjoy high speed scanning in as fast as 8 seconds, with the included USB Type-C cable. With USB Type-C the Cano scan lied 400 has one cable for data and power.
  • Preserve detailed photos and images thanks to 4800 x 4800 dpi resolution, and with image enhancements, such as color restore and dust removal, Your photos will continue to look great.
  • Enjoy ease of use with 'EZ' Buttons. With auto scan mode, the Scanner automatically detects what you are scanning; built-in PDF buttons, scan and save multi-page pdf's that are editable and searchable
  • Paper size: 8.27 x 11.69, 8.50 x 11.69
npm init -y
npm install -D playwright
npx playwright install chromium

Viewport screenshot

Create screenshot.js:

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

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
  await page.goto('https://example.com', { waitUntil: 'networkidle' });
  await page.screenshot({ path: 'page.png' });
  await browser.close();
})();

Run it with node screenshot.js. The ordinary screenshot contains the current viewport. The filename extension makes the output PNG.

Full scrollable page

Change the screenshot call to:

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

Playwright’s fullPage option captures the full scrollable document. Very long pages can produce very large pixel dimensions and files; there is no single universal maximum that applies to every browser, operating system, or page.

Capture one locator

const card = page.locator('.pricing-card').first();
await card.screenshot({ path: 'pricing-card.png' });

Use a stable CSS selector or another locator that identifies the intended component. If no element matches, Playwright waits and then reports a timeout.

Rank #3
Sale
Epson Perfection V19 II Flatbed Photo Scanner 4800 dpi Optical Resolution
  • Amazing image clarity and detail — 4800 dpi optical resolution (1), ideal for photo enlargements
  • Epson ScanSmart software included (4) — easily scan photos, artwork, illustrations, books, documents and more
  • One-touch scanning (2) — scan in fewer steps with easy-to-use buttons (2)
  • Restore color to faded photos — with one click, Easy Photo Fix technology makes it simple
  • Scan books and photo albums — high-rise, removable lid

Return bytes for post-processing

const pngBytes = await page.screenshot();
require('fs').writeFileSync('processed.png', pngBytes);

Omitting path returns image bytes. You can send those bytes to storage, resize them, or process them without first writing the original file.

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

CLI alternative

Playwright’s command-line screenshot tool supports a URL, output filename, selectable image type, viewport capture, element capture, and --full-page. The default format is inferred from the filename extension and defaults to PNG. CLI options evolve, so use the help and current reference for the version installed in your project rather than copying an old command wholesale.

Make dynamic pages render before capture

A successful navigation does not prove that every image, font, advertisement, chart, or lazy-loaded section is ready. The following sequence is practical defensive automation, not a guarantee for every site:

Rank #4
Sale
Epson Perfection V39 II Flatbed Photo Scanner 4800 dpi Optical Resolution
  • CLEAR, DETAILED PHOTO SCANS — Achieve stand-out image clarity and detail with the Epson Perfection Scanner's 4800 dpi optical resolution1; Quickly enlarge your favorite photos with the help of this hardworking flatbed color scanner
  • IMAGE AND DOCUMENT SCANNER — The versatility you need; Jumpstart your home and office projects with this compact and lightweight picture scanner; Easily scan photos, artwork, illustrations, books, documents, and more
  • ENHANCED SCANNING — Boost your scanning capability and creative projects by seamlessly stitching oversized images together or sending scans to cloud storage services³ with powerful Epson ScanSmart technology² included with this image scanner
  • EFFORTLESS ONE-TOUCH SCANNING — Flatbed scanner allows you to scan documents and images in fewer steps with easy-to-use buttons³ making scanning a breeze; Scan letter-sized documents in as quickly as 10 seconds⁴
  • PHOTO RESTORATION MADE EASY — Restore color to faded photos with one click using Easy Photo Fix technology, ensuring your memories remain vibrant; This scanner for old photos is the simple way to bring new life to your memories
  1. Navigate with an explicit timeout and a suitable wait condition.
  2. Wait for a meaningful selector, such as the article container or chart.
  3. Allow a short delay for animations, web fonts, or client-side rendering.
  4. Scroll through the page so lazy-loaded regions have an opportunity to load.
  5. Dismiss an overlay only when doing so is permitted and appropriate.
  6. Capture, then inspect the image for blank sections, missing fonts, or overlays.
await page.goto('https://example.com/article', {
  waitUntil: 'domcontentloaded',
  timeout: 60000
});
await page.locator('article').waitFor({ state: 'visible', timeout: 30000 });
await page.waitForTimeout(1000);
await page.evaluate(async () => {
  await new Promise(resolve => {
    let y = 0;
    const step = 600;
    const timer = setInterval(() => {
      window.scrollBy(0, step);
      y += step;
      if (y >= document.body.scrollHeight) {
        clearInterval(timer);
        resolve();
      }
    }, 100);
  });
});
await page.screenshot({ path: 'article.png', fullPage: true });

Scroll-based loading differs by site. Some pages require an explicit “Load more” click, an API response, or a longer wait. A screenshot does not bypass a login, access control, bot check, CAPTCHA, or terms-of-service restriction.

Control quality, size, and appearance

Viewport and device scale

Set the viewport to match the device or design you are documenting. A larger device scale factor creates denser pixels but also increases image size. Keep viewport width, height, and scale consistent when comparing captures over time.

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.

Responsive layouts

Changing width can move navigation, columns, and breakpoints. Record the viewport used with each image so a later capture is comparable.

Best Value
VIISAN 3120 A3 Flatbed Scanner, 1200 DPI, CIS Sensor, Scan 11.7" x 16.7" in 8 sec, Frameless, Auto-Scan, Document & Photo & Book Scanner, Design for Library, School and Soho. Supports Windows & Mac
  • VIISAN 3120 is designed for high-quality scanning of artworks, photos, painting albums, books, magazines, newspapers, CAD drawings, and other large document items up to 304 x 426 mm (11.98" x 16.8") in size. It is ideal for school projects, business work, graphic designing, and digital publishing work. [Power Compatibility:] This A3 flatbed scanner is equipped with a universal power adapter (AC 100–240V, 50/60Hz, 12V/2A), making it fully compatible with standard voltage requirements in the United States and most countries worldwide. Simply plug it in and use it with confidence—no special converters or additional accessories needed.
  • The VF3120 flatbed scanner offers the fastest scanning speed of 8 sec (200dpi, A3-size color). It also provides a maximum optical resolution of 1200 x 1200 dpi which delivers a color depth of 48-bit vivid true-to-life image and realizes smoother and more detailed color gradients and variations
  • The Auto-Scan function enables the scanner to scan automatically when the scanner lid is closed. It enhances the efficiency of the continuous scanning process. and LED Light Source, Save Energy, No Warm-Up Time, No More Waiting
  • The VF3120 features in frameless and narrow boundary design which allows to scanning of large documents, photo albums, books, magazines, and thick items. It helps you work efficiently with four-panel buttons enabling scan, email, print, and even create a single or multipage PDF. All in a snap. (Note: The A3 flatbed uses a CIS sensor that can only scan flat paper images, not three-dimensional items. Otherwise, it will lead to unclear or blurred scanning results. So it is not recommended to scan clothes or CDs, acrylic sleeves, etc.)
  • Compatible with Windows TWAIN, WIA, and MacOS ICA drivers. WIA only supports 600 dpi. Support Windows 7/8.1/10/11 and MacOS 10.15 or later for Image Capture (ICA) driver only. Note: To scan images at 1200 dpi, please use our supplied ViiScan software. It can scan up to 1200x1200 DPI for full-size A3 documents on Windows OS. For MacOS, the VF3120 scanner software can achieve 1200 dpi for a full-size A3 document. Regarding WIA, we currently only support scanning up to 600 dpi due to limitations imposed by Microsoft

Sticky headers and overlays

Full-page stitching can repeat a sticky header or leave a fixed chat widget over content. Hide or dismiss permitted overlays before capture, and consider an element capture when only the document body is needed.

PNG versus JPEG or WebP

PNG is lossless and appropriate for text, diagrams, and UI edges. JPEG is often smaller for photographic pages but introduces compression artifacts. WebP can reduce size further when your downstream system accepts it. The target here is PNG, so keep the .png extension or explicitly request PNG in the tool you use.

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

Troubleshoot blank, incomplete, or wrong screenshots

Symptom Likely cause Fix
Blank or mostly white image Navigation failed, content is still loading, or the site returned a bot check Check the response and page text, increase the timeout, wait for a content selector, and verify access in a normal browser.
Images missing Lazy loading, blocked resources, or capture started too soon Scroll through the page, wait for image completion, and inspect network or console errors.
Element timeout Selector is wrong or the element is created later Inspect the DOM, use a stable selector, and wait for the element’s visible state.
Only the visible area was saved Full-page mode was not enabled Use Firefox’s full-page button or Playwright’s fullPage: true.
Text or layout differs between runs Responsive width, fonts, animations, timezone, or changing data Fix the viewport, wait for fonts, disable or await animations where appropriate, and capture under consistent conditions.
Screenshot is covered by consent or chat UI An overlay appeared after navigation Dismiss it when allowed, hide the selector in your automation, or capture the underlying element directly.
Very large output or memory pressure The page is unusually long or images are high density Capture sections or elements separately, reduce scale, or resize after capture.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. One GET request returns a PNG, JPEG, WebP, or PDF. It accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and whether the request was billed.

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

See the ScreenshotNeo documentation for all options, including full-page and lazy-image loading, CSS-selector element capture, dark mode, device presets or custom viewports, retina scale, PDF settings, custom CSS and JavaScript, click actions, wait conditions, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen-TTL caching, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, usage data, and the OpenAPI specification. Parameters commonly used by other screenshot APIs also work, which can simplify migration.

cURL

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

Python

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

Node.js

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

The Free plan includes 1,000 shots per month without a card. Paid plans start at $5 for 3,000 shots; yearly billing gives two months free. An MCP server lets Claude, Cursor, or another MCP client call take_screenshot, get_page_info, and capture_pdf. Sign up free for ScreenshotNeo.

Firefox, Playwright, Puppeteer, or an API?

  • Firefox: fastest for an occasional manual full-page or element capture.
  • Playwright: a well-documented choice for scripts, CI, full pages, locators, and screenshot bytes.
  • Puppeteer: a JavaScript browser-automation alternative when your existing project uses Chrome DevTools Protocol or WebDriver BiDi tooling; the available overview covers screenshots, PDFs, full pages, and specific elements but not a complete current recipe.
  • ScreenshotNeo: the first service to try when you want clean shots, only clean shots billed, and a paid plan starting at $5 for 3,000 shots.

Frequently Asked Questions

Does a PNG contain the original HTML?

No. It contains rendered pixels only. Save the source and assets separately if you need an editable or navigable copy.

Can I screenshot a page behind a login?

Only when you are authorized and provide the required session or credentials through the browser or service. A screenshot tool does not bypass access controls.

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

Why is my full-page image missing lazy-loaded content?

The page may load sections only after scrolling or an interaction. Scroll through the document, wait for the relevant selector or request, and then capture.

Quick Recap

Bestseller No. 1
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00
SaleBestseller No. 2
SaleBestseller No. 3
Epson Perfection V19 II Flatbed Photo Scanner 4800 dpi Optical Resolution
Epson Perfection V19 II Flatbed Photo Scanner 4800 dpi Optical Resolution
One-touch scanning (2) — scan in fewer steps with easy-to-use buttons (2); Scan books and photo albums — high-rise, removable lid
$70.99

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.