Clean Png Edges
Upload a PNG and remove semi-transparent edge pixels. Adjust the alpha threshold to make faint edge pixels fully transparent for crisp, clean outlines.
Alpha Threshold
Pixels with alpha below this value become fully transparent. Higher = more aggressive cleaning.
Statistics
Original
Cleaned
Kill the ghostly halo that shows up around a transparent PNG the moment you drop it on a dark or colored background. Slide the alpha threshold, watch the checkerboard preview snap clean, and download a cutout with actually crisp edges. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool reads every pixel's alpha channel — a value from 0 (invisible) to 255 (solid). Any pixel whose alpha falls below your chosen threshold gets zeroed out to fully transparent. Fully opaque pixels at alpha 255 are never touched, so your actual artwork stays intact. The slider defaults to 128, which catches most anti-aliased fringe without eating into real detail.
Examples
Product photo with white-fringe halo
You removed the background from a shoe photo, but a pale fringe shows up on dark web pages.
shoe.png — 800x600px
Edge pixels: alpha 12–180
Visible white halo on dark bg
shoe-clean.png — 800x600px
1,240 edge pixels cleaned
No halo on any background
Logo export from Figma with soft edges
Figma's PNG export adds anti-aliased edges. Fine on white, ugly on colored cards.
logo-transparent.png
256x256px, anti-aliased curves
Semi-transparent border pixels
logo-clean.png
256x256px, hard edges
Threshold 100 — crisp on any bg
Game sprite with leftover matte color
A character sprite cut from a green-screen sheet. The edges still carry faint green tint at low alpha values, making it look off in the game engine.
knight-sprite.png — 128x128px
Green-tinted edge fringe
~380 semi-transparent pixels
knight-clean.png — 128x128px
Threshold 150 — all green fringe gone
380 pixels → transparent
Who Uses This
Cleaning up product cutouts before sending to e-commerce platforms.
Removing anti-alias fringe from logos and icons exported out of Figma or Illustrator.
Prepping sprite sheets so characters don't carry matte-color halos in the engine.
Making sure transparent PNGs sit cleanly on gradient or dark-themed backgrounds.
Common Mistakes
Cranking it past 200 starts eating into pixels that are part of the actual image — soft shadows, gradients, and glow effects vanish. Start at the default 128 and nudge up slowly.
JPEGs don't have an alpha channel at all. If you upload one, there is nothing to clean because every pixel is fully opaque. Convert to PNG first if you need transparency.
This cleans edges on an already-transparent PNG. It won't cut a subject out of a photo. Remove the background first with a background-removal tool, then run this to get rid of the leftover fringe.
Technical Details
- Processing: 100% client-side — Canvas API pixel manipulation
- Browser Support: Chrome, Firefox, Safari, Edge
- Accepted Format: PNG only (the only common format with alpha)
- Max File Size: Limited only by your device's memory
- Alpha Range: 0–254 (threshold slider); 255 is never modified
Frequently Asked Questions
What causes white edges on transparent PNGs?
Anti-aliasing. When software smooths a hard edge, it blends the foreground color with whatever background was behind it — usually white. After the background is removed those blended pixels stay behind as a faint white border. This tool strips them out.
How do I pick the right alpha threshold?
Start at 128 — it catches most fringe without damaging soft shadows. If you still see a halo, bump it up by 10-20 at a time. If detail starts disappearing (like a glow or gradient edge), dial it back. The preview updates live, so you can't really break anything.
Does cleaning PNG edges reduce image quality?
No. Fully opaque pixels (alpha 255) are left completely untouched. Only semi-transparent edge pixels get changed. The tool does not resample, compress, or alter color data. Your output is a lossless PNG identical to the original except for those edge alpha values.
Can I clean edges on a PNG with multiple transparent regions?
Yes. The tool processes every pixel in the image, not just the outer border. Internal cutouts, holes, and complex shapes all get the same treatment. Anywhere there is a semi-transparent pixel below your threshold, it gets cleaned.
Is it safe to use this tool with confidential images?
Completely. Everything runs in your browser's memory. No image data is sent to any server, no cookies track your files, and nothing is stored after you close the tab. You could disconnect from the internet after the page loads and it would still work.