Your Transparent PNG Looks Clean — Until You Put It on a Dark Background

Your Transparent PNG Looks Clean — Until You Put It on a Dark Background

The sticker looked perfect on the white page. On the black listing photo, it grew a dirty white ring. Same file, same sticker — the ring only appears when the background behind it goes dark.

That is the whole puzzle of this post: a transparent PNG that is clean on white and dirty on black, and what to do about it. The background is already gone, so removing it again fixes nothing. What you are seeing is faint residue the remover left along the edge, and the fix is a pass that strips only that residue — anything under opacity 16, plus loose specks up to 30 pixels — while leaving the soft edge alone.

Try the toolClean Leftover Pixels in Transparent PNGsFind and remove faint pixels and small detached specks left behind in a transparent PNG. Your files stay in your browser and are never uploaded.loopyti.com

One caution before you start: if you already put the haloed PNG on a dark product photo and someone saw it, cleaning the file now does not unsee it. The halo is pixels inside the saved file, not a display glitch — clean the file and swap it in.

Transparent PNG cleaner showing a coral star on a dark background before and after cleaning, with the white halo ring gone in the cleaned version

What the ring actually is

A background remover does not cut a clean line. Along the boundary it leaves pixels that are neither fully transparent nor fully opaque. In my six test files — fictional shapes I drew for this test, a star, a heart and a teal circle logo, all 2000×2000 PNGs — the halo measured alpha 9 to 11, about 12 pixels wide, just under the cleaner's default threshold of 16.

On white, those pixels are white on white, so they disappear. On black, the same pixels read as a white ring. That is why "clean on white" and "dirty on black" can be true of the same file at the same time — and why the fix is not a better background removal, but a pass that removes pixels under the threshold, takes out detached clusters by size, and keeps the translucent pixels that touch the subject as its edge.

The same six files carried two more problems to measure. Two files had three faint dots each: alpha 8 to 13, radius 2 to 3 pixels, sitting 202 to 465 pixels from the subject. One file had an alpha-90 shadow touching the circle logo — an ellipse that the cleaner is supposed to leave alone.

Red overlay view marking the faint halo pixels around a star for removal, with the cleaned star on the right

Four ways to get rid of it, compared

Tested 2026-11-14, defaults unchanged: remove pixels below opacity 16, remove detached specks up to 30 pixels, "Keep soft translucent pixels along the subject edge (recommended)" checked. Here is how each approach held up against the same six files.

Re-running background removal. It works, in a way. But the same remover can leave the same boundary pixels again, and every pass shaves a little more off the subject's edge. You would be reprocessing the whole background to fix a rim.

Erasing the edge pixels by hand in an editor. It works too. It is also thousands of pixels around a 2000×2000 outline, and the three dots in my test are hard to even find at normal zoom.

Using the PNG only on white backgrounds. It works — until it doesn't. The file stays dirty, and the ring comes back the moment it lands on a dark listing photo or a coloured banner.

Running a residue cleaner over the finished PNG. The tool takes transparent PNG or WebP files — up to 20 at once, 30 MB each. I loaded all six in one go, left the defaults alone, and clicked "Find and clean". The red overlay marks what will be removed, the dark-background view shows what a buyer would actually see, and the checkerboard shows the real transparency. Download is one file at a time, or all of them together as a ZIP. This is the one I measured file by file, and the results are below.

What came back, file by file

  • Star, white halo ring: the ring is gone to the eye on a dark background. 18,987 faint pixels removed, 0 translucent edge pixels kept.
  • Heart, white halo ring: the same — the ring is gone. 28,068 faint pixels removed, 0 edge pixels kept.
  • Teal circle logo, white halo ring: the same — the ring is gone. 55,914 faint pixels removed, 0 edge pixels kept.
  • Star, three faint dots: all three dots are gone — I checked the pixel values at all six dot centres, and the alpha went from 8–13 down to 0. 5,712 faint pixels removed, 0 edge pixels kept.
  • Heart, three faint dots: all three gone. 4,554 faint pixels removed, 0 edge pixels kept.
  • Circle logo, attached shadow: the shadow is untouched in all three views. 4,899 faint pixels removed, 0 edge pixels kept — and the shadow itself is pixel-for-pixel identical: the count of alpha-90 pixels is 273,995 before and after.

Teal circle logo on a dark background before and after cleaning, with the yellow halo ring visible in the original and gone in the cleaned version

The page totals it up as "Removed 194 detached specks and 118,134 faint pixels from 6 images." The faint-pixel total checks out — the six files add up to exactly 118,134. The 194 does not mean what it looks like. The two speck files each report "0 detached specks" even though their three dots are gone: faint dots land in the faint-pixel count, not the speck count. The 113, 22, and 59 on the halo files are one-pixel marks along the subject's outline, and 194 is just their sum. So read the total as 118,134 faint pixels removed, and ignore the 194 as a count of anything you would call a speck.

One more honest check, on the downloaded files themselves: the halo is gone to the last pixel. Counting pixels with alpha 1–15, the star went from 18,987 down to 0, the heart from 28,068 to 0, and the circle logo from 55,914 to 0. In the dark-background view the cleaned files show no yellow dots at all, so the page's line "No dots in the cleaned image means it is clear" is now literally true. (An earlier version of this post said a thin, broken rim stayed — that was true before the tool was fixed, and it is fixed now.) At normal size the ring itself is invisible — and on the checkerboard all six files came out clean, with no rough or jagged edge anywhere.

Every file also reports "0 translucent edge pixels kept" now. That is the counter's wording for the faint band: the tool no longer keeps any pixel under opacity 16. The soft edge itself — the anti-aliased band at opacity 16 and above — is still there: on the star, 9,962 of 10,075 such pixels survive, and the checkerboard shows no rough edge.

Checkerboard view showing the cleaned star on transparency with no rough edges

Two times close-up of a star tip on a black background showing the faint fringe on the original and the cleaner edge after cleaning

What it won't fix

  • Shadows or glass effects that touch the subject stay. My alpha-90 shadow came out pixel-for-pixel identical — 273,995 pixels before, 273,995 after. The page says so plainly: "Translucent areas such as shadows or glass effects are kept when they touch the main subject."
  • The speck counter does not count faint dots. Two files with six dots removed between them both report "0 detached specks." Do not read that number as how many specks were removed.
  • Cleaned files now come out smaller than the originals. My star PNG went from 83,943 bytes to 55,104 — about two-thirds — and the six-file ZIP is 410,938 bytes against about 525 KB of originals. (An earlier version of this post said they ballooned to ten times — that was true before the fix, and it is fixed now.)
  • JPGs can't be cleaned. "Only transparent PNG and WebP images are supported. JPG files cannot contain transparent pixels." There is no transparency to clean in a JPG.
  • There is no zoom in the preview. Clicking the preview image does nothing, so I checked the edges by enlarging crops of the actual downloaded files instead.
  • Very faint pixels may shift colour slightly when saved — the page warns that "the difference is usually hard to see." I did not measure a colour shift.
  • Your files stay in your browser and are never uploaded. Every shape in this post's samples is made up, so there is no personal data or trademark in them either.

How to check your own PNG

Put it on a black background first — a dark slide, a black rectangle in any editor, or the dark-background view in the cleaner. If a ring shows up, zoom into the edge: a halo from background removal sits just outside the subject at low opacity, while a real outline or drop shadow sits on the subject or further out. Count the damage before you pick a fix: a thin ring under a dozen pixels wide is the cleaner case above; a wide smudge or a coloured fringe is a different problem, and re-running background removal or re-shooting the photo is the honest answer. After cleaning, check the downloaded file the same way — on black, at the edge, zoomed in — because the preview is not the file.