Set omitBackground: true in the options passed to Puppeteer’s page.screenshot(). For a transparent image, save a PNG and check the result in the browser and launch setup your project uses.
Capture a transparent PNG
Puppeteer’s ScreenshotOptions reference documents omitBackground as false by default. Set it to true to hide the default white background and allow transparency. PNG is the documented default image type and is the straightforward choice when you need an image with transparency. Puppeteer ScreenshotOptions
As an Amazon Associate I earn from qualifying purchases.
await page.screenshot({
path: 'screenshot.png',
omitBackground: true,
});
This snippet assumes page is an already-created Puppeteer page. The method returns image data if you omit path; with a path, Puppeteer saves the file and infers its image type from the file extension. Page.screenshot()
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choose the capture area separately
Transparency and image bounds are separate choices. Add fullPage to include the whole page, or use clip to capture a specific region. The documented default for fullPage is false. If you combine clipping with capture beyond the viewport, check the defaults for the Puppeteer version installed in your project.
#1 Best Overall
- WORKS FOR iPhone 18 Pro / iPhone 17 Pro 6.3 Inch Display Screen 2026/2025 0.33mm tempered glass screen protector. Featuring maximum protection from scratches, scrapes, and bumps. [Not for iPhone 17 6.3 Inch, iPhone Air 6.5 Inch, iPhone 18 Pro Max/iPhone 17 Pro Max 6.9 Inch, iPhone Duo outer screen 5.4 inch]
- Specialty: HD ultra-clear rounded glass for iPhone 18 Pro / iPhone 17 Pro 6.3 Inch, 99.99% touch-screen accurate.
- 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints.
- It is 100% brand new, precise laser cut tempered glass, exquisitely polished. 0.33mm ultra-thin tempered glass screen protector provides sensor protection, maintains the original response sensitivity and touch, bringing you a good touch experience.
- Easiest Installation - removing dust and aligning it properly with the help of the included installation frame before actual installation, enjoy your screen as if it wasn't there.
// Capture the full page with a transparent background
await page.screenshot({
path: 'full-page.png',
omitBackground: true,
fullPage: true,
});
// Capture a region with a transparent background
await page.screenshot({
path: 'region.png',
omitBackground: true,
clip: { x: 40, y: 80, width: 600, height: 400 },
});
The coordinates and dimensions in clip define the capture region; choose values that fit the page content you want. For more detail on available screenshot options and their defaults, use the reference that matches your installed Puppeteer version: ScreenshotOptions.
Check the output in your runtime
The API documents the transparency option, but does not guarantee identical results across every browser build, headless setting, website style, or image viewer. Inspect the generated PNG in the same runtime used by your project, preferably against both light and dark backgrounds. This helps distinguish genuine transparent pixels from a white page background or a viewer that displays transparency as white.
Rank #2
- 【Unbreakable TOP 9H+ Glass, the 2nd Screen for Your iPhone】The industry's first integration of sapphire ionic components. Boasting unparalleled shatter resistance and durability, it is specifically designed for the screen of the iPhone 17 Pro Max.
- 【What makes its excellent performance?】The core is the top 9H+ tempered glass material, which is widely applied in aerospace and military fields for its ①Shatter-proof ②Scratch & wear resistance ③Durability that is 7-8 times higher than other materials. Thus, UltraGlass builds a second tough screen for your iPhone 17 Pro Max.
- 【New Record! Survives 14,000+ Drops, Industry NO.1 Military-Grade Shatterproof】Authorized by the international Military Standard [MIL-STD-810H] with 50+ rigorous engineering tests of 220 lbs impact, 14,000+ drop tests, 25,000+ scratch tests, etc., its strength, toughness and durability perform NO.1 among all glass. Setting an industry record by surviving 12-foot drops from 7 angles on concrete, rock, and wood surfaces, the iPhone 17 Pro Max screen protector ensures unbreakable protection from every edge!
- 【One-Pull Auto-Align Tray, 0 Dust + 0 Bubbles】The innovative one-step installation tray combines auto-alignment, self-cleaning dust removal, and bubble-free application in one simple pull. With just one pull, installation becomes effortlessly easy in seconds. 0 dust, 0 bubbles, no imperfections—it turns beginners into experts.
- 【Invisible 1:1 Full Coverage Protection】Simulating iPhone's screen design, UltraGlass envelops the screen's every curve with a reinforced 1:1 3D curved black edge, fully shielding the most vulnerable edges for total protection. Also, it is visually invisible as it blends seamlessly with the 17 Pro Max screen (6.9 inches).
- Confirm the saved filename ends in
.pngif you want the documented default image type and a straightforward alpha-capable format. - Check whether the page itself paints a background.
omitBackgroundhides the browser’s default white background; it does not mean every website’s own styling will be removed. - Verify the image in the project’s actual browser version and launch configuration before relying on the result.
The current official API reference identified for this option is Puppeteer 25.12.0. If your dependency is older or newer, compare its installed version’s documentation rather than assuming every default is unchanged.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteKeep PDF export separate
page.pdf() is a different export method and uses print media by default. PDF has its own options interface, which separately documents omitBackground for hiding the default white background and allowing PDF transparency. That PDF setting is not needed for the PNG screenshot shown above. PDFOptions · Page.pdf()
Rank #3
- One-Stop Buying Experience:Cost-Effective & All-Round Protection, No need spend More on Other accessories. The Milomdoi 7-in-1 bundle includes: [3ⅩGlass Screen Protector for iPhone iPhone 12] [3ⅩCamera Protector for iPhone 12] [1Ⅹfull set of installation tools, lncludes mounting frame And Cleaning Kit]
- [Ultra HD and Thin Design]: The surface of the protective screen is treated with a coating, which is very smooth, effectively reduce fingerprints from sweat and grease, making the screen very easy to clean. 99.99% optical-grade light transmittance, enhancing the visibility of the screen. Glass shield made of 0.33 mm 9H Hardness tempered glass, ensures quick app launch, smooth games and video playing, Milomdoi glass protection will bringing you a new perfect touch experience.
- Camera-Protector & Case-Friendly: Milomdoi Camera Protector Made Of 9H glass effectively Protect Entire Lens From DropS, Scratches and not easy to fall off. Special designed Black circle Suitable night shooting function, brings you the original of beauty to every photo and video. This camera and screen protector designed to be Suitable with most cases. Extra slight space Around the bezel allows your case to wrap around the edge of your Device without any Interference.
- Face ID-Suitable And Easy-To Install: Precisely Cut For The iPhone 12 6.1 inch, this tempered glass does not interfere with the Face ID feature. Comes With Precision installation frame and complete cleaning kit, made the install very easy.
- Excellent Customer Service:We are committed to providing good service to every Customer, whatever problems, You can send us information through Amazon's Message Center, we will provide You with Satisfactory service within 24 Hours.
Troubleshooting transparent Puppeteer screenshots
The image still looks white
First open the PNG against a contrasting background or in an editor that shows transparency. Then confirm the screenshot call includes omitBackground: true and check whether the website paints a white background itself; the option is documented as hiding the browser’s default white background, not as stripping page styles.
The screenshot is cropped or too short
Use fullPage: true for a full-page capture. If you use clip, verify its coordinates and dimensions and review the capture-beyond-viewport behavior for your installed version.
Rank #4
- WORKS FOR iPhone 18 Pro Max/ iPhone 17 Pro Max 6.9 Inch Display Screen 2026/2025 0.33mm tempered glass screen protector. Featuring maximum protection from scratches, scrapes, and bumps. [Not for iPhone 17 6.3 Inch, iPhone 18 Pro/iPhone 17 Pro 6.3 Inch, iPhone Air 6.5 Inch, iPhone Duo outer screen 5.4 inch]
- Specialty: HD ultra-clear rounded glass for iPhone 18 Pro Max/iPhone 17 Pro Max 6.9 Inch, 99.99% touch-screen accurate.
- 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints.
- It is 100% brand new, precise laser cut tempered glass, exquisitely polished. 0.33mm ultra-thin tempered glass screen protector provides sensor protection, maintains the original response sensitivity and touch, bringing you a good touch experience. Due to the rounded edge design of the iPhone 18 Pro Max/iPhone 17 Pro Max 6.9 inch and to enhance compatibility with most cases, the tempered glass screen protectors was designed to be slightly smaller than the whole phone screen surface, yet still covering the entire display area to provide maximized screen protection.
- Easiest Installation - removing dust and aligning it properly with the help of the included installation frame before actual installation, enjoy your screen as if it wasn't there.
The result differs between environments
Transparency behavior is not established as identical across all browser builds, headless settings, styles, or viewers. Reproduce the capture using the project’s actual browser version and launch setup, then inspect the resulting PNG in a second viewer.
Recommended Free Tools
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. Its one-call endpoint can return a PNG, JPEG, WebP, or PDF; request a transparent background with transparent=true. See the ScreenshotNeo API docs for parameters and response details.
Best Value
- Shockproof and Scratch-resistant: The Apple Watch case is made of durable PC material and features built-in tempered glass screen protector, providing complete coverage over the front and edges of your watch for full protection. It is also equipped with reinforced corners to prevent accidental drops, bumps, and scratches.
- Enjoy Precise Touch Response: The sensitivity of the apple watch series 10 screen protector provides precise touch response, delivering a metal feel while retaining the true color quality of the iWatch.
- Perfect Fits and Direct Charging: Precision cutting and unobstructed access to all ports, without interfering with any functions including the microphone, sensors or activity tracking. This apple watch 10 screen protector is perfectly compatible with wireless charging, without the need for disassembly.
- Enhanced Scratch Resistance : Our apple watch case 42mm boasts an advanced scratch-resistant design, backed by over 10,000 scratch tests, to ensure your watch stays safe and looks like new for much longer.
- Warm Reminder: Each package includes 2 pack transparent case for apple watch series 10 42mm.This watch apple watch series 10 case is not waterproof. Please remind to remove the case before swimming or exercising to avoid it getting wet. If it gets wet, please remove the case and dry it off.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d transparent=true -o shot.png
ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the page verdict and billing status in headers. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan.
Frequently Asked Questions
What does `omitBackground` do in Puppeteer?
It hides the browser’s default white background and allows screenshots with transparency.
Does `omitBackground: true` remove a website’s own background color?
Not necessarily. The option is documented for hiding the default white background; inspect pages that set their own background styling.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsCan Puppeteer create a transparent PDF too?
The PDF export has a separate `omitBackground` option in PDFOptions. Use it with `page.pdf()` rather than treating it as part of the PNG screenshot workflow.
Quick Recap
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.




