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

Use a browser’s screenshot facility, not a DOM-to-canvas library. Playwright’s page.screenshot() captures the pixels rendered by a real browser and can save PNG, JPEG, or WebP files, return a buffer, capture the full scrollable page, or clip a region. Puppeteer provides a similar headless-browser route; Chromium code that already uses the DevTools Protocol can call Page.captureScreenshot. Canvas libraries such as html2canvas reconstruct a page from DOM data, so their output can differ from what the browser actually displayed.

What “without canvas” means

A browser screenshot is taken after layout, fonts, CSS, images, and scripts have been rendered. The browser copies its rendered output to an image. By contrast, html2canvas walks the DOM, reads styles, and builds a new representation. Its documentation says it “does not actually take a screenshot of the page” and can render only the CSS it understands. That distinction matters for complex layouts, cross-origin assets, animations, and browser-specific behavior.

Choose the capture route that matches where your code runs:

Environment Recommended route Scope and control
Node.js service or test Playwright Viewport, full page, clipping, format, scale, masking and returned buffers
JavaScript browser automation Puppeteer Headless Chrome or Firefox automation, screenshots and PDFs
Chromium protocol client DevTools Protocol Low-level Page.captureScreenshot control
Browser extension Native tab screenshot API Visible tab capture; verify current permissions and browser limits
Hosted API ScreenshotNeo One HTTP request, cleanup of consent UI, optional PDF and automation controls

There is no reliable speed or image-quality ranking in the available documentation. Decide by execution environment, required area, fidelity, and operational control instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Playwright: the general-purpose solution

Install Playwright and its browser binaries in your project, then capture the page after navigation:

npm install playwright
npx playwright install chromium
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', fullPage: true });
  await browser.close();
})();

The call returns a buffer when no path is supplied. The documented options include:

  • fullPage: true for the complete scrollable document rather than only the viewport.
  • clip: { x, y, width, height } for a rectangular region.
  • type: 'png' | 'jpeg' | 'webp' and JPEG quality where supported.
  • path to write directly to a file.
  • scale to choose CSS-pixel or device-pixel output; the current default is device.
  • Animation control and locator masking for repeatable captures that must hide changing content.

Capture one element

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

Wait for content that appears late

await page.goto('https://example.com/dashboard');
await page.locator('[data-ready="true"]').waitFor();
await page.screenshot({ path: 'dashboard.png', fullPage: true });

Use an explicit selector when lazy images or application data determine when the page is visually complete. A fixed delay can help with an animation, but a readiness condition is usually less brittle.

Control viewport, device pixel ratio and media

const context = await browser.newContext({
  viewport: { width: 390, height: 844 },
  deviceScaleFactor: 2,
  colorScheme: 'dark'
});
const mobile = await context.newPage();
await mobile.goto('https://example.com');
await mobile.screenshot({ path: 'mobile-dark.png', fullPage: true });

Set these before navigation so responsive breakpoints and color-scheme media queries are evaluated consistently.

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

Chromium’s DevTools Protocol

If your application already speaks CDP, the Chromium Page domain exposes Page.captureScreenshot. It is a lower-level alternative to Playwright’s convenience API. The protocol reference is a rolling “tot” schema, so match the command and parameters to the Chromium version you deploy. CDP is appropriate when you need protocol-level integration; starting a new project is generally simpler with Playwright or Puppeteer.

Rank #2
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

Puppeteer for server-side JavaScript

Puppeteer automates Chrome and Firefox through Chrome DevTools Protocol and WebDriver BiDi, and its documented use cases include screenshots and PDFs. A minimal capture is:

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com', { waitUntil: 'networkidle2' });
  await page.screenshot({ path: 'page.png', fullPage: true });
  await browser.close();
})();

For a server, the html2canvas FAQ specifically points to headless Puppeteer or Playwright because they drive a real browser instead of trying to reproduce one.

Browser extensions: capture the visible tab

For extension code, the html2canvas FAQ recommends native tab APIs: chrome.tabs.captureVisibleTab() for Chrome, Edge and Opera, or browser.tabs.captureVisibleTab() for Firefox. These APIs capture what is visible in the tab. Do not assume they create a full-page image; consult the current browser vendor documentation for permissions, user-gesture rules and any full-page facility available in your target browser.

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

Why html2canvas can fail or look different

  • Unsupported CSS: properties the library does not implement may be missing or approximated.
  • Cross-origin images: drawing an image from another origin can taint the canvas unless the server and request policy allow it.
  • Cross-origin iframes: inaccessible frame contents cannot be read and reconstructed.
  • Oversized canvases: browser canvas limits can produce blank or partial output, sometimes without a useful error.
  • Browser-only runtime: the library depends on window, document and computed styles, so it does not run directly in Node.js.

If fidelity to the actual rendered page is the requirement, these are reasons to switch to a browser screenshot rather than add more canvas workarounds.

Or skip the browser setup

ScreenshotNeo is a hosted screenshot API; it is the first option to try when you want an HTTP service rather than maintaining browser binaries. It accepts one GET request and returns PNG, JPEG, WebP or PDF. Before capture it can accept cookie/consent banners and remove more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and response headers identify the page verdict and billing result.

Here is the supplied cURL form (replace the target URL and key):

Rank #3
Capture Card 4K HDMI Video Streaming to USB 3.0 1080P 60FPS Capture Device
  • High-Quality Video Capture, 4K HDMI Capture Card Ready: Capture smooth and vibrant video with this 4K HDMI capture card, engineered for gamers and content creators who demand crisp 1080P 60FPS video quality. Whether you're streaming to Twitch or recording gameplay for YouTube, your footage will look professional and detailed
  • Plug-and-Play USB Capture Card, No Drivers Needed: Designed as a USB capture card for streaming, this device works instantly out of the box, just plug into your PC or laptop and start capturing. Fully compatible with popular software like OBS Studio, Streamlabs, and XSplit, making setup quick and stress-free for beginners and pros alike
  • Universal Compatibility PS5, Xbox, Switch & More: Stream or record gameplay from virtually any HDMI-enabled device including Nintendo Switch, PS5, Xbox Series X, DSLR cameras, and PCs. The video capture card for gaming supports seamless passthrough so you can play without lag while your audience watches every frame in real time
  • Low-Latency Performance for Smooth Streaming: This capture card for streaming minimizes delay between gameplay and broadcast, so you get reliable, low-latency capture that works well for competitive gaming, live broadcasts, and podcast sessions. Suitable for those building their channel with high-quality, engaging content
  • Compact & Portable Design for Content Creators: Lightweight and portable, this USB 3.0 capture card works well for creators who travel or switch gaming setups often. Throw it in your bag and stream or record wherever you are, at home, events, LAN parties, streaming or studio sessions
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for all parameters. Equivalent clients:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Its 63 options cover full-page lazy-image loading, CSS-selector element capture, dark mode, 12 device presets or custom viewports, retina scale, PDF paper and page ranges, custom CSS and JavaScript, clicks, selector hiding, waits, ad/tracker/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 reporting, an OpenAPI specification and compatibility with parameter names used by other screenshot APIs. An MCP server supplies take_screenshot, get_page_info and capture_pdf tools to Claude, Cursor and other MCP clients.

Plans are Free (1,000 shots/month, no card), Starter ($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. Sign up free to get 1,000 screenshots each month without a card.

Troubleshooting checklist

The image shows only the viewport

Use Playwright or Puppeteer’s full-page option. Extension visible-tab APIs are intentionally viewport-oriented.

Lazy images are blank

Wait for a page-specific loaded selector, scroll through the page before capture, or use ScreenshotNeo’s full-page lazy-image option.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

Fonts or layout differ between runs

Pin browser versions, set an explicit viewport and device scale factor, wait for fonts and data, and disable animations or mask dynamic locators.

Capture times out

Check the URL from the same network environment, raise the navigation timeout only when justified, and wait on a concrete readiness selector instead of unlimited network idle.

Canvas output is blank or partial

Reduce dimensions and inspect cross-origin images and unsupported CSS. If the requirement is a real browser rendering, replace the canvas approach with Playwright, Puppeteer or a hosted browser screenshot.

A protected page returns a bot check

Do not attempt to bypass a challenge. Capture an authorized, accessible page; with ScreenshotNeo, bot checks and failed loads are reported and are not billed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Operational and cost considerations

  • Browser automation requires downloading and patching browser binaries, managing concurrency and allocating memory for each context.
  • Reusing a browser process while creating isolated contexts reduces startup overhead, but close contexts and pages to prevent leaks.
  • Use deterministic waits and fixed rendering settings for visual regression tests; record the browser version alongside images.
  • Choose PNG for lossless UI text, JPEG for photographic pages, and WebP when your downstream system accepts it.
  • Hosted capture trades local browser maintenance for an API request and usage accounting. ScreenshotNeo’s verdict and billing headers let a job distinguish a clean capture from a failed or cached response.

FAQ

Can I capture a page entirely from Node.js without launching a browser?

Not if you need the browser’s rendered pixels. Node.js lacks the DOM and layout engine; use a headless browser or a hosted screenshot service.

Best Value
acer USB 3.0 HDMI Capture Card, 4K HDMI Loop-Out, 1080P 60Hz for Streaming
  • 【4K Clarity, 1080P Performance】Enjoy stunning clarity with our USB 3.0 Video Capture Card—featuring 4K input and smooth 1080P@60Hz output. Featuring YUY2 technology, it delivers richer colors than MJPEG for lifelike live streaming and recording. Plus, it delivers high-quality video with minimal latency, making it perfect for gamers and content creators.
  • 【Mic-in for Easy Commentary】Plug in a headset or mic directly to stream/record voice easily—no extra adapters. Great for real-time gaming commentary, online classes, or vlog dubbing. Paired with its low-latency tech, it keeps voice synced perfectly with video, eliminating post-editing hassle from mismatched audio-visuals. Fits most 3.5mm devices—ideal for gamers, teachers, creators.
  • 【Plug and Play, no Extra-Drivers】No extra drivers or external power—just plug in and start capturing instantly. Small and lightweight, it fits easily in your bag for outdoor live streams, on-the-go recordings, or emergencies. Ideal for game capture, video conferences, and online teaching, it saves hassle while delivering smooth results.
  • 【Wide Compatibility: Apps & Devices】No extra adapters—works flawlessly with your go-to platforms and gear. It pairs with streaming/recording apps like Twitter, YouTube, Facebook, OBS, XSplit, and VLC, plus devices including Switch/Switch2, PS5/PS4, Xbox, DSLR cameras, PC, macOS, and Android. Whether gaming, streaming, or hosting video calls, it keeps HD quality intact, eliminating "compatibility headaches".
  • 【Worry-Free After-Sales Support】We are committed to delivering exceptional quality products that combine sophisticated design with affordable pricing, offering you the best solutions for seamlessly connecting your work and life. Whether you're a newcomer or a seasoned user, feel free to reach out anytime with any questions—your satisfaction is our top priority.

Does a full-page screenshot include content inside an iframe?

The result depends on browser access and the frame’s origin. Cross-origin frame contents may be inaccessible to DOM reconstruction; verify the target page and capture method.

Should I use CDP or Playwright?

Use CDP when an existing Chromium protocol client needs low-level control. Use Playwright when you want navigation, waits, selectors and screenshot options in one higher-level API.

What should I store for reproducible captures?

Store the target URL, viewport, device scale, color scheme, browser version, wait condition and output format with each image.

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

Frequently Asked Questions

Can I capture a page entirely from Node.js without launching a browser?

Not if you need the browser’s rendered pixels. Node.js lacks the DOM and layout engine; use a headless browser or a hosted screenshot service.

Does a full-page screenshot include content inside an iframe?

The result depends on browser access and the frame’s origin. Cross-origin frame contents may be inaccessible to DOM reconstruction; verify the target page and capture method.

Should I use CDP or Playwright?

Use CDP when an existing Chromium protocol client needs low-level control. Use Playwright when you want navigation, waits, selectors and screenshot options in one higher-level API.

What should I store for reproducible captures?

Store the target URL, viewport, device scale, color scheme, browser version, wait condition and output format with each image.

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.

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.