Skip to content
Jellykit

Image Denoise with Median or Bilateral Filter

Reduce grain, speckles and sensor noise in photos with a median or edge-preserving bilateral filter, with adjustable radius and strength.

  • Runs on your device
  • Works in the background
Loading tool

About Image Denoise with Median or Bilateral Filter

Photos taken in low light, old scans and heavily compressed images often carry noise: coloured speckles, grain or isolated bright and dark dots. This tool smooths it away in your browser, without uploading anything.

The median filter replaces each pixel with the middle value of its neighbourhood, which wipes out isolated specks (salt-and-pepper noise) while keeping edges fairly crisp; its strength mixes the result with the original. The bilateral filter averages each pixel with neighbours of similar colour only, so flat areas become smooth while edges and outlines stay sharp; its strength sets how different a neighbour may be and still count. Each file’s thumbnail changes to the result when it is done; open the result at full size to judge it, and raise the radius for coarser noise.

How it works

  1. The image is decoded on this device and filtered in a background worker, so the page stays responsive and Cancel stops the work at once.
  2. Median: for each pixel and each of red, green and blue, the middle value of the square around it (3 × 3 at radius 1, up to 11 × 11 at radius 5). A sliding histogram keeps this fast at every radius.
  3. Bilateral: a weighted average of the same square, where weights fall off with distance and with colour difference, so pixels across an edge barely count.
  4. Transparency is kept. JPEG, PNG, WebP and AVIF results keep their format where your browser can write it; other formats are saved as PNG.

Questions

Median or bilateral: which should I use?

Use median for isolated specks, dust and salt-and-pepper dots: it removes them outright. Use bilateral for even grain and colour noise across a photo: it smooths flat areas such as skin and sky while keeping edges sharp.

Why does my photo look soft or plastic?

The filter is too strong for the noise. Lower the radius first, then the strength. Any noise filter also removes some fine texture, so aim for the least that cleans up the noise.

Will a JPEG lose quality?

The result is re-encoded once, at high quality (92), so the change you see is the filtering. To avoid any further loss, save the result as PNG with an image converter.

Is there a size limit?

Each file can be up to 200 MB and 40 megapixels, or less on browsers whose canvas is smaller, such as Safari on iPhone at about 16.7 megapixels. The bilateral filter at the largest radius looks at 121 neighbours per pixel, so a large photo can take several seconds; progress is shown.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.