Fill Holes in Alpha Channels
Find transparent gaps fully enclosed by a PNG's shape and fill them with a solid colour, leaving the outer background clear. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
Drop images anywhere on this page
or paste with Ctrl / ⌘ + V ·
Accepts PNG · several at once
Your PNG files never leave this tab
Fill Holes in Alpha Channels is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.
- No upload
- No file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Fill Holes in Alpha Channels
- 1. Add the transparent PNG. Drop in a cutout, logo or sticker. The tool flood fills the transparency from the picture's border, so it knows which clear areas are background and which are enclosed by the shape.
- 2. Set colour and size limit. Pick the colour that goes into the holes. Set the largest hole size to close only small pinholes and keep intended openings such as the inside of a letter O.
- 3. Check and download. The count of filled holes appears with the result, which refreshes on every change. The outer background stays transparent; download the PNG when it looks right.
When to use Fill Holes in Alpha Channels
Fill Holes in Alpha Channels closes see-through gaps that are completely surrounded by the visible shape. Automatic background removal often punches small holes into a subject; this tool fills them without touching the transparency around the outside.
- Repairing a background removal. A cutout of a person has see-through patches where a white shirt matched the white backdrop. Filling enclosed holes makes the subject solid again.
- Solid stickers and labels. A sticker or print-and-cut design needs one solid shape with no interior gaps. Fill the holes with white so the cutter sees a single outline.
- Cleaning a mask. A mask made from a threshold has tiny clear specks inside it. Limit the hole size to a few pixels so only the specks close.
Examples
Donut
Input
ring.png with a transparent centre
Output
The centre is filled white, the background around it stays clear
Pinholes in a cutout
Input
cutout.png, largest hole 25 px
Output
Tiny see-through specks inside the subject are closed
About the Fill Holes in Alpha Channels tool
Fill Holes in Alpha Channels does its work locally, right in the browser. Find transparent gaps fully enclosed by a PNG's shape and fill them with a solid colour, leaving the outer background clear. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the PNG Tools collection on EditSafely, a set of 292 small, focused PNG utilities that share the same instant, private workspace.
You can shape the output with 3 settings, including Fill colour, Count as a hole below alpha and Largest hole to fill (px, 0 = any size); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: the image is read straight from your device the moment you drop it, there is no server outage that can take it down mid-task, and private pictures stay private.
Frequently asked questions
Does Fill Holes in Alpha Channels cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
Which files does Fill Holes in Alpha Channels accept?
It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I save the output?
Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.
Related tools
All PNG Tools →Fill Transparent PNG Regions
Flood raw transparent alpha blocks with any custom solid color shade.
Remove PNG Background
Delete background zones to cleanly isolate a foreground element.
Generate Matte for Transparent PNG
Turn the transparency of a PNG into a black-and-white matte, with optional choke and feather.
Thicken Transparent Edges
Grow the visible shape of a transparent PNG outward by 1 to 10 pixels, filling the new edge with the artwork's own colors.