Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsUse a browser to render the HTML and CSS, then save a PNG with its default page background omitted. In Playwright, set type: 'png' and omitBackground: true. Any opaque background your own CSS paints remains part of the page, so leave the area you want transparent unpainted.
Render HTML and CSS as a transparent PNG with Playwright
A browser must render the document before it can be captured as pixels. Playwright’s Page screenshot API supports PNG output and the omitBackground option, which hides the default white background and permits transparency. The option does not apply to JPEG images. See the Playwright Page screenshot API.
As an Amazon Associate I earn from qualifying purchases.
-
Install Playwright and its browser in your project, following the official installation guide.
Recommended: Crashes or Glitches? A Free Driver Scan Usually Finds the Culprit →Recommended: Fix Windows Errors and Clear Junk Files in Minutes - Free Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Make the page available at a URL the script can reach, such as
http://localhost:3000.#1 Best Overall
SaleXPPen Artist 13.3 Pro V2 Drawing Tablet with Screen, 16K, Full-Laminated- PLEASE NOTE:XPPen Artist13.3 Pro drawing tablet Need to connect with computer,you need to use it with your computer or laptop, the 3 in 1 cable is included
- Drawing Tablet with Screen: Tilt Function- XPPen Artist 13.3 Pro supports up to 60 degrees of tilt function, so now you don't need to adjust the brush direction in the software again and again. Simply tilt to add shading to your creation and enjoy smoother and more natural transitions between lines and strokes
- Graphics Tablets: High Color Gamut- The 13.3 inch fully-laminated FHD Display pairs a superb color accuracy of 88% NTSC (Adobe RGB≧91%,sRGB≧123%) with a 178-degree viewing angle and delivers rich colors, vivid images, and dazzling details in a wider view. Your creative world is now as powerful as it is colorful
- Drawing Pad: One is enough- The sleek Red Dial on the display is expertly designed with creators in mind, its strategic placement allows for natural drawing postures. With just one wheel, you can effortlessly zoom in and out, adjust brush sizes, and flip the canvas—all tailored to suit the habits of everyday artists. The 8 customizable shortcut keys allow you to personalize your setup, streamlining your workflow and enhancing creative efficiency
- Universal Compatibility & Software Support:supports Windows 7 (or later), Mac OS X 10.10 (or later), Chrome OS 88 (or later), and Linux systems. Fully compatible with major creative software including Photoshop, Illustrator, SAI, and Blender 3D. Register your device to access additional programs like ArtRage 5 and openCanvas for expanded creative possibilities.
-
Navigate to the page and capture it as PNG with
omitBackground: true.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('http://localhost:3000', { waitUntil: 'networkidle' });
await page.screenshot({
path: 'output.png',
type: 'png',
omitBackground: true,
fullPage: true,
scale: 'css'
});
await browser.close();
})();
Save this as a JavaScript file in a project where Playwright is installed, then run it with Node.js. The result is output.png in the current working directory. If the page never reaches network idle because of ongoing requests, choose an appropriate readiness condition for your page and capture after its content is ready.
Keep the areas you want transparent unpainted
omitBackground removes the browser’s default page background; it is not a command to erase backgrounds painted by your document. If a rule such as body { background: white; } or a component background paints a region, that paint is page content and should remain in the image.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- Word-first 16K Pressure Levels: The upgraded stylus features 16,384 levels of pressure sensitivity and supports up to 60 degrees of tilt, delivering smoother lines and shading for a natural drawing experience. With no battery or charging needed, it operates like a real pen, making it easy for beginners to create effortlessly. This functionality helps novice artists develop their skills and explore their creativity without the intimidation of complex tools
- Designed for Beginners: This drawing pad desinged with 8 customizable shortcuts for both right and left-hand users, express keys create a highly ergonomic and convenient work platform
- Perfectly Adapted for Android: The XPPen Deco 01 V3 art tablet supports connections with Android devices running version 10.0 and above. It is recommended to download the XPPen Tools Android application, which adapts to your smartphone's screen aspect ratio, ensuring accurate mapping. It also supports mapping on Android screens with different aspect ratios in portrait mode
- Large Drawing Space, Bigger Bold Inspiration: This expansive drawing pad has10 x 6.25-inch helps you break through the limit between shortcut keys and drawing area
- Easy Connectivity for Beginners: The Deco 01 V3 offers USB-C to USB-C connectivity, plus adapters for USB C. This ensures easy connection to various devices, allowing beginner artists to set up quickly and focus on their creativity without compatibility concerns. Whether using a laptop, tablet, or desktop, the Deco 01 V3 provides a seamless experience, making it an ideal choice for those just starting their digital art journey
-
Remove or change opaque background declarations on the page and the elements behind the subject.
-
Keep backgrounds on elements that are meant to appear in the final image, such as a colored card or logo tile.
-
Use an image viewer that displays transparency as a checkerboard or inspect the PNG’s alpha channel; some viewers show transparent pixels against white.
Rank #3
SaleHUION Inspiroy H640P 6x4 inch Drawing Tablet 8192 Pen Pressure- Customize Your Workflow: The 6 customizable press keys on Huion H640P drawing tablet for pc let you assign your most-used commands—like undo, zoom, brush switch, or save—so you can keep your hands on the tablet and your mind on the art. Whether you're a digital painter switching brushes, or a comic artist zooming in and out, these keys keep your workflow smooth and uninterrupted. Plus, the Huion driver lets you save different shortcut profiles for different apps, so you never have to reconfigure when switching software.
- Professional Pen Performance: Huion H640P drawing pad for computer comes with the battery-free PW100 stylus that's always ready when inspiration strikes. With 8192 levels of pressure sensitivity, every light sketch, or bold stroke responds naturally to your hand—just like a real pen. The 5080 LPI resolution and 233 PPS report rate deliver lag-free, precise strokes, so you can draw confidently without second-guessing your cursor. The pen side buttons help you switch between pen and eraser instantly.
- Compact and Portable: Huion H640P computer graphics tablet features a compact, ultra-portable design at just 0.3 inches thin and 0.61 lbs light, so it slides easily into your backpack—perfect for sketching in coffee shops, taking notes in class, or editing on the go between home and studio. The 6x4 inch active area offers enough room for natural pen movements while fitting comfortably on crowded desks, or lecture hall seats.
- Stable Compatibility: Huion H640P graphic drawing tablet works seamlessly with Mac, Windows, Linux PCs, and Android smartphones/tablets (OS version 6.0 or later). Left-handed friendly, and you just need to flip the tablet and adjust the settings in the driver. Please note: H640P does NOT support iPhone/iPad.
- Move Beyond the Mouse: Huion Inspiroy H640P is a pen tablet that replaces your mouse for more natural, precise control. Freehand draw, take notes, or even play OSU—everything you do with a mouse, you can do better with a pen. The precise tip makes it ideal for detailed photo editing, graphic design, or signing PDF. Meanwhile, the ergonomic pen grip helps you avoid the strain that comes from hours of using a mouse.
Choose the capture area and output scale
Capture the visible viewport or the whole page
By default, a page screenshot captures the viewport. Set fullPage: true to capture the full scrollable page. For a single logo, card, or other component, use a locator’s screenshot method rather than capturing the whole document:
await page.locator('.logo-card').screenshot({
path: 'logo-card.png',
type: 'png',
omitBackground: true
});
Element capture is useful when surrounding page content is irrelevant. Ensure the target element and any content it depends on have rendered before the capture.
Use CSS pixels or device pixels intentionally
scale: 'css' produces one image pixel per CSS pixel, giving predictable CSS-sized output. scale: 'device' uses device pixels and can produce a larger image on high-DPI displays. Choose based on the dimensions and resolution you need; a larger raster also uses more storage and memory.
Rank #4
- Wacom Intuos Small Graphics Drawing Tablet: Enjoy industry leading tablet performance in superior control and precision with Wacom's EMR, battery free technology that feels like pen on paper
- Works With All Software: Wacom Intuos tablet can be used in any software program to explore new facets of digital creativity; draw, paint, edit photos/videos, create designs, and mark up documents
- What the Professionals Use: Wacom's industry leading pen technology and pen to paper feeling makes it the preferred drawing tablet of professional graphic designers
- Software and Training Included: Only Wacom gives you software with every purchase. Register your Intuos tablet and gain access to some of the best creative software and Wacom's online training
- Wacom is the Global Leader in Drawing Tablet and Displays: For over 40 years in pen display and tablet market, you can trust that Wacom to help you bring your vision, ideas and creativity to life
Make captures repeatable
Dynamic content, animations, and late-loading assets can make otherwise identical runs look different. Wait for the content you need, and control animations where repeatability matters. Playwright documents animation handling and style injection for screenshot assertions in its visual comparisons guide; those testing options are useful context, not a guarantee that every page asset will load successfully.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup: use ScreenshotNeo
ScreenshotNeo is a website screenshot API and MCP server from ScreenshotNeo. Its HTML/CSS-to-image option can produce PNG output with a transparent background. For a URL-based capture, a single GET request looks like this; see the ScreenshotNeo API documentation for the current parameters and response details:
curl -G "https://api.screenshotneo.com/v1/shot"
-d access_key=YOUR_API_KEY
--data-urlencode url=https://stripe.com
-o shot.webp
Set the output format and transparency using the API parameters documented for your request. ScreenshotNeo’s capture workflow can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before the shot; each of those steps can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server gives AI agents tools for taking screenshots, getting page information, and capturing PDFs.
Sign up for 1,000 screenshots a month free, with no card required.
Best Value
- Large Active Drawing Space: UGEE M708 V3 graphic drawing tablet features 10 x 6 inch large active drawing space with papery texture surface, provides enormous and smooth drawing for your digital artwork creation, offers no-lag sketch and painting experience
- 16384 Passive Stylus Technology: A more affordable passive stylus technology offers 16384 levels of pressure sensitivity allows you to draw accurate lines of any weight and opacity according to the pressure you apply to the pen, sharper line with light pressure and thick line with hard pressure for artistry design or unique brush effect for photo retouching
- Compatible with Multiple System and Softwares: Powerful compatibility, tablet for drawing computer, perform well with Windows 11/10/8/7, Mac OS X 10.10 or later, Android 10.0 or later, mac OS 10.12 or later, Chrome OS 88 or later and Linux; Driver program works with creative software such as Photoshop, Illustrator, Macromedia Flash, Comic Studio, SAI, Infinite Stratos, 3D MAX, Autodesk MAYA, Pixologic ZBrush and more
- Ergonomically Designed Shortcuts: 8 customizable express keys on the side for short cuts like eraser, zoom in and out, scrolling and undo, provide a lot more for convenience and helps to improve the productivity and efficiency when creating with the drawing tablet
- Easy Connectivity for Beginners: The UGEE M708 V3 offers USB to USB-C connectivity, plus adapters for USB C, ensuring easy connection to various devices and allowing beginner artists to set up quickly and focus on their creativity without compatibility concerns; Whether using a laptop, desktop, chromebook, or tablet, the UGEE M708 V3 provides a seamless experience for those just starting their digital art journey
Consider a hosted HTML-to-image service
HTML/CSS to Image documents a transparent-background setting for its image-generation request. That establishes that the option exists, but does not by itself establish comparative quality, pricing, speed, dimensions, or asset restrictions. Check its current documentation and terms for the controls your workflow needs: HTML/CSS to Image transparent-background guide.
Troubleshooting transparent PNG captures
-
The PNG looks white behind the content: Confirm that the capture is a PNG and that
omitBackground: trueis present. Then check for a white background set in your page or component CSS; the option only omits the browser’s default background.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. -
The output is JPEG: JPEG does not support this Playwright transparency option. Request PNG output instead.
-
The image is cropped: The default is a viewport capture. Use
fullPage: truefor the full scrollable document, or use a locator screenshot for a particular element. -
The image is too small or too large: Check the selected scale. CSS scale maps CSS pixels one-to-one to image pixels; device scale uses device pixels and may increase dimensions on high-DPI displays.
-
Content is missing or changes between runs: Capture only after the required content has rendered. Investigate dynamic elements and animations, and use suitable waits or animation controls for your page.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.Quick Recap
Bestseller No. 4Bestseller No. 5
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.




