Logo Edges Cleaner

Uploads a logo PNG and despeckles it: any non-transparent pixel with too few non-transparent 8-connected neighbors is treated as noise and made fully transparent, cleaning up ragged edges left behind by a lossy background-removal or masking step. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool cleans up stray, isolated pixels near a logo's edges, right in your browser, using a simple despeckle pass.

It's most useful as a follow-up step after a background-removal or color-key operation leaves single-pixel artifacts around a logo's outline.

What Is Logo Edges Cleaner?

A logo-focused wrapper around the site's general PNG edges cleaner: it examines every non-transparent pixel's 8 surrounding neighbors and, if too few of them are also non-transparent, treats that pixel as noise and clears it.

It's a lightweight morphological filter, not a full denoising or smoothing algorithm.

How Logo Edges Cleaner Works

For every non-transparent pixel, the tool counts how many of its 8-connected neighbors (up, down, left, right, and the four diagonals) are also non-transparent.

If that count is below the minimum-neighbors threshold you set, the pixel is made fully transparent; everything else is copied through unchanged.

When To Use Logo Edges Cleaner

Use it right after the Logo Background Remover or Transparent Logo Maker tools if the resulting cutout shows speckled or fringed edges.

It's also useful for cleaning up a low-quality scanned or screenshotted logo before further processing.

Features

Advantages

  • Runs entirely client-side; nothing is uploaded to a server.
  • Simple, adjustable threshold for how aggressive the cleanup is.
  • Preserves untouched pixels' exact color and alpha.

Limitations

  • Only removes isolated noise pixels — it doesn't smooth genuinely jagged or stair-stepped edges.
  • An overly aggressive threshold can erase small intentional details, like thin strokes or dots.

Examples

Remove single-pixel fringe

Input

300x300 PNG logo with scattered 1px specks, minNeighbors 2

Output

Same logo with the isolated specks cleared to transparent

A minimum of 2 neighbors is enough to distinguish genuine edge pixels from truly isolated noise.

Preserve fine details with a low threshold

Input

150x150 PNG icon with a thin serif detail, minNeighbors 1

Output

Icon cleaned of true single-pixel noise while the thin detail survives

A lower threshold is gentler, only removing pixels with zero connected neighbors.

Best Practices & Notes

Best Practices

  • Start with a low minimum-neighbors value (1-2) and increase only if speckling persists.
  • Run this after background removal, not before, since it only acts on already-transparent edges.

Developer Notes

This lib function is a thin, validating wrapper around the already-shipped `cleanPngEdges` from the general PNG category — the 8-connected neighbor-counting despeckle logic is identical for a logo or any other PNG.

Logo Edges Cleaner Use Cases

  • Cleaning up a logo cutout after chroma-key background removal
  • Removing scanner or compression artifacts from a logo's outline
  • Tidying a logo before using it as a stencil or silhouette

Common Mistakes

  • Setting the minimum-neighbors threshold too high and accidentally erasing small logo details.
  • Expecting this to fix jagged (not speckled) edges from resizing or rotation.

Tips

  • Zoom into the preview's outline before downloading to confirm no wanted details were removed.
  • Combine with the Logo Background Remover for a two-step clean cutout workflow.

References

Frequently Asked Questions