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.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

The right JavaScript method depends on what you mean by “image of a website.” To capture an element or page that is already open in a browser, use html2canvas, which reconstructs DOM content into a canvas. To capture a URL through a real browser—especially on a server—use Puppeteer and page.screenshot(). For a hosted, no-browser-infrastructure option, use ScreenshotNeo.

Choose the capture method first

Requirement Best fit Important trade-off
Capture one element in the current page html2canvas(element) Runs in the browser and reconstructs DOM and styles; it is not a pixel-identical browser screenshot.
Capture the current document html2canvas(document.body) Simple, but cross-origin resources and maximum canvas dimensions can affect the result.
Capture a URL as a browser-rendered page Puppeteer page.screenshot() Requires a browser automation runtime.
Capture URLs without operating browsers ScreenshotNeo A hosted API; service behavior, limits and terms still apply.

html2canvas traverses the DOM and styles to build a canvas. It cannot reproduce CSS or browser behavior that the library does not implement. Puppeteer instead controls a browser and captures the rendered page, returning image bytes. See the html2canvas documentation and Puppeteer screenshot API.

Capture an HTML element with html2canvas

Install and import

Install the package with your project’s package manager, then import it in browser code. The package is browser-only and its main call returns a Promise, as described in the getting-started guide.

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

Complete element-to-PNG example

import html2canvas from '@html2canvas/html2canvas';

const element = document.querySelector('#capture');
if (!element) throw new Error('Capture element not found');

const canvas = await html2canvas(element);
const link = document.createElement('a');
link.download = 'website.png';
link.href = canvas.toDataURL('image/png');
link.click();

Place an element such as <section id="capture">...</section> in the document. The canvas can also be inserted into the page with document.body.appendChild(canvas) rather than downloaded. The PNG download pattern is documented in the project’s examples.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Capture the whole document

const canvas = await html2canvas(document.body, {
  backgroundColor: '#ffffff',
  scale: window.devicePixelRatio,
  useCORS: true
});

const png = canvas.toDataURL('image/png');
const link = document.createElement('a');
link.download = 'page.png';
link.href = png;
link.click();

scale can improve sharpness on high-density displays, but it also increases pixel dimensions and memory use. For a long page, capturing a bounded element or several sections is safer than assuming an unlimited canvas.

Crop, hide and ignore content

The examples support region coordinates, explicit dimensions, scaling and an ignoreElements callback. For example, to omit a cookie control from the reconstructed image:

const canvas = await html2canvas(document.querySelector('#capture'), {
  ignoreElements: (node) => node.matches('.cookie-banner, .chat-widget'),
  scale: 2
});

Use a temporary CSS class to hide content before capture when you need deterministic layout, then remove it after the Promise resolves.

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
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

Capture a URL with Puppeteer

Install Puppeteer

npm install puppeteer

Runnable Node.js script

import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({ headless: true });
try {
  const page = await browser.newPage();
  await page.setViewport({ width: 1440, height: 900, deviceScaleFactor: 1 });
  await page.goto('https://example.com', { waitUntil: 'networkidle2' });
  await page.screenshot({ path: 'website.png', fullPage: true, type: 'png' });
} finally {
  await browser.close();
}

page.screenshot() captures the browser-rendered page and can write a file or return image data. Use fullPage: true for the complete scrollable page, or omit it for only the current viewport. Puppeteer’s API is maintained on its official documentation.

Wait for content that loads after navigation

await page.goto('https://example.com/dashboard', { waitUntil: 'domcontentloaded' });
await page.waitForSelector('.report-ready', { timeout: 30000 });
await page.screenshot({ path: 'report.png', fullPage: true });

Waiting for a selector is more reliable than adding an arbitrary delay when an application renders asynchronously. If a site needs authentication, set cookies or headers before navigation; do not place credentials in source code or logs.

Why html2canvas output can differ from the page

Unsupported CSS and browser behavior

html2canvas reads the document and builds its own representation. Unsupported CSS features, browser controls, video frames and some effects may be missing or visually different. Treat it as a DOM renderer, not a literal screenshot. If pixel fidelity matters, capture with a browser automation tool.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Cross-origin images

Remote images must permit cross-origin use through appropriate response headers. useCORS: true requests CORS-enabled loading; it cannot override the browser’s same-origin policy. If the image server does not grant access, the image may be skipped or the canvas may become tainted. A server-side proxy designed for that asset and its permissions may be required. The project explains these constraints in its FAQ.

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

Cross-origin iframes

Code running on the parent page cannot read a cross-origin iframe’s document. Same-origin frames are supported where browser policy allows access. Capture the framed page separately or arrange an approved same-origin integration.

Canvas size limits

Maximum canvas dimensions vary by browser, operating system and hardware. Very tall or wide captures can be blank, clipped or partially rendered. Capture smaller regions, reduce scale, or stitch multiple sections in a server-side workflow rather than relying on one enormous canvas.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

Saving formats and controlling quality

canvas.toDataURL('image/png') creates a PNG data URL. For photographs or large pages, JPEG can be smaller:

const jpegUrl = canvas.toDataURL('image/jpeg', 0.85);

PNG preserves sharp text and transparency; JPEG discards transparency and introduces compression artifacts. For very large images, prefer canvas.toBlob() so binary data does not have to remain in a long in-memory data URL:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
canvas.toBlob((blob) => {
  if (!blob) throw new Error('Image encoding failed');
  const url = URL.createObjectURL(blob);
  const link = document.createElement('a');
  link.download = 'website.png';
  link.href = url;
  link.click();
  URL.revokeObjectURL(url);
}, 'image/png');

Troubleshooting checklist

  • “Capture element not found”: run the code after the DOM exists, check the selector, and confirm the element is not inside a shadow root you cannot query directly.
  • Images missing: inspect the image response’s CORS headers. Enable useCORS only when the server supports it; otherwise use permitted same-origin hosting or a proxy.
  • Iframe is blank: a cross-origin iframe is protected by browser security. Capture it from its own origin or use a browser-level workflow.
  • Output is blank or clipped: reduce the capture area or scale. Check browser-specific canvas limits and memory pressure.
  • Fonts or late content are absent: wait for document.fonts.ready or a meaningful application selector before calling html2canvas or Puppeteer’s screenshot method.
  • Puppeteer cannot launch: verify the installed browser dependency, container sandbox settings and available memory. Keep the browser open for multiple captures when safe, but close pages and the browser in error paths.
  • Output is not pixel-identical: switch from html2canvas to Puppeteer, which captures a rendered browser page rather than reconstructing DOM content.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance, reliability and security

  • Capture only the region you need; full-page and high-scale images consume substantially more memory.
  • Use selector-based readiness conditions for single-page applications instead of fixed sleeps.
  • Reuse a Puppeteer browser process for batches, while isolating pages and closing them after each job.
  • Set navigation and selector timeouts, record failures, and retry only transient navigation errors.
  • Never expose API keys, session cookies or bearer tokens in client-side code intended for public users.
  • Review permission and terms before capturing pages that require login or contain personal data.

Or skip the browser setup

ScreenshotNeo provides a hosted URL screenshot API. One GET request returns 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 disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and response headers identify the page verdict and billing result.

It also offers an MCP server for Claude, Cursor and other MCP clients, with take_screenshot, get_page_info and capture_pdf tools. Features include full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets and custom viewports, retina scale, PDF paper and page controls, custom CSS and JavaScript, clicks, selector/delay/network-idle waits, request and resource blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, configurable-TTL caching, signed image links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage reporting and an OpenAPI specification. Common screenshot-API parameter names are accepted to ease migration.

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

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}`);

See the ScreenshotNeo API documentation for parameters and response headers. The Free plan includes 1,000 shots per month with no card; Starter is $5 for 3,000, Growth $15 for 15,000, Pro $39 for 60,000, Scale $99 for 250,000 and Business $249 for 1,000,000. Yearly billing gives two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to start with 1,000 screenshots a month and no card.

Which approach should you use?

Use html2canvas when a user is already viewing the page and you need a selected DOM region in browser code. Use Puppeteer when you control a Node.js process and need a browser-rendered URL capture. Use ScreenshotNeo when you want URL capture without deploying and maintaining browser workers, while benefiting from consent cleanup, non-billed failed captures and MCP access for AI agents.

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

Frequently Asked Questions

Can html2canvas capture a website URL directly?

No. It runs against DOM content available in the current browser page. Navigate the browser first, or use Puppeteer or a hosted URL screenshot API for server-side URL capture.

Can I run html2canvas in Node.js?

The library depends on browser APIs such as window and document, so it is not intended for Node.js server rendering. Use Puppeteer or a hosted service on the server.

How do I capture only one HTML element as a PNG?

Select it with document.querySelector, pass it to html2canvas, then export the returned canvas with toDataURL(‘image/png’) or toBlob().

Why does a screenshot include a cookie banner or chat widget?

html2canvas reproduces what is in the DOM unless you hide or ignore those elements. A service such as ScreenshotNeo can perform documented consent and popup cleanup before URL capture.

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

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.90
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.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.