Image Noise Remover, Explained
After reading this you will know when a median filter beats a smoothing blur, how each one changes a pixel neighborhood, and how to judge the trade between clean and soft.
What noise removal actually does
A digital photo is a grid of pixels. Each pixel holds a brightness value, usually from 0 (black) to 255 (white) per color channel. Noise is any pixel value that differs from what the scene really was. A camera shooting in low light adds random jitter to every pixel. A dust-corrupted scan drops isolated pixels to pure black or pure white.
The Image Noise Remover replaces each pixel with a value computed from its neighbors. The idea is simple: a lone wrong pixel stands out against its surroundings, so if you combine a small patch of pixels sensibly, the wrong one gets outvoted. The two methods here combine neighbors in two different ways, and that difference decides which one fixes your photo.
Here is the hook. Suppose a 3x3 patch of a smooth gray wall reads 128 everywhere except one speckle at 255. Average the nine values and you get 142, still visibly off. Take the median instead and you get 128, exactly right. That gap is the whole story.
The two filters and when to use each
The tool offers a median filter and a smoothing (blur) filter. They target different kinds of noise.
- Salt-and-pepper noise
- Scattered pixels forced to pure black (0) or pure white (255), like grains of salt and pepper. Common in old scans, cheap sensors, and transmission errors. The median filter is built for this.
- Gaussian grain
- Every pixel wobbles by a small random amount around its true value. Common in high-ISO photos shot in dim light. A gentle smoothing blur handles this better because the errors are small and spread across all pixels.
Use the median filter when you see distinct specks against a clean background. Use smoothing when the whole image looks uniformly grainy but no single pixel is wildly wrong. Using the wrong one wastes detail: a blur applied to salt-and-pepper noise smears each black speck into a gray smudge instead of removing it.
Neither filter recovers detail that the noise destroyed. If a speck landed on a thin one-pixel line, that line is already gone. Denoising hides noise, it does not reconstruct the original scene.
The math behind the median filter
For each pixel, take a square window centered on it, sort every value in that window, and pick the middle one.
Here x_{i,j} is the input pixel at row i, column j, and y_{i,j} is the output. The value r is the radius: r = 1 gives a 3x3 window of 9 pixels, r = 2 gives a 5x5 window of 25 pixels. The median is the value in the middle after sorting, so for 9 values it is the 5th.
The median resists outliers because sorting pushes extreme values to the ends. One speck at 255 among eight values near 128 sits at position 9 after sorting and never gets picked. An average, by contrast, gives that speck a full 1/9 vote, which is why it leaks through.
The math behind the smoothing filter
Smoothing replaces each pixel with a weighted average of its neighborhood. A box blur weights every neighbor equally; a Gaussian blur weights closer pixels more.
The weights w_{a,b} sum to 1. For a 3x3 box blur every weight is 1/9 \approx 0.1111. For a Gaussian blur the center weight might be 0.25 and the corners 0.03, so nearby pixels dominate and edges soften less abruptly.
Because averaging spreads every value across the window, a sharp edge from 40 to 200 becomes a ramp several pixels wide. That softening is the cost. The median leaves that same edge crisp because sorting keeps the two populations separate: on the dark side of the edge the window is mostly dark values, so the median stays dark.
Worked example: one 3x3 window
Load the demo image and inspect a patch containing one white speck. These nine values reproduce that patch, reading left to right, top to bottom:
130, 126, 129, 128, 255, 131, 127, 130, 128
- Sort the nine values:
126, 127, 128, 128, 129, 130, 130, 131, 255. - The median is the 5th value:
129. The speck at255is gone, and the result matches the surrounding wall. - Now the box-blur average: sum is
1284, divided by 9 gives 142.7, rounded to143. - The true wall value is about
129. The median missed by0, the blur missed by14.
The blur output is 14 brightness levels too high because the single 255 pulled the mean up. On a real image that shows as a faint gray halo where each speck used to be.
Reading the before and after preview
Judge denoising by zooming in, not by the thumbnail. Two things change together as you raise the strength (radius): noise drops and detail drops. The chart below shows how a larger radius removes more noise but also blurs finer texture.
Look at three places: a flat area (sky, wall), a sharp edge, and a textured area (hair, fabric, foliage). The flat area should look cleaner. The edge should stay reasonably crisp under the median filter. If the textured area has turned to mush, your radius is too large.
Common mistakes
The errors below account for most disappointing results.
- Radius too large. A 7x7 median throws away real texture. Start at r = 1 and increase only if specks survive.
- Blurring salt-and-pepper noise. The blur smears each black speck into a gray blob roughly 2r+1 pixels wide instead of deleting it. Switch to the median.
- Denoising a JPEG twice. Each save re-compresses and adds blocky artifacts. Denoise once, then export.
- Trusting the thumbnail. Downsampling for the thumbnail hides both the noise and the softening. Zoom to 100% before you download.
If part of the image is clean and part is noisy, denoise a copy at full strength, then use it only where needed. For hiding faces or plates rather than cleaning grain, a dedicated region tool is faster.
Related tools
Denoising often sits inside a larger cleanup. Fix exposure first with the Brightness & Contrast Editor, since brightening a dark photo amplifies its noise and you want to see the real grain before you remove it. To hide sensitive regions rather than clean them, use the Blur / Pixelate Redactor, which blurs only the area you choose. When the image is clean, straighten it with Rotate & Flip Image, size it for a platform with the Social Media Image Cropper, and add a Watermark Tool mark if you publish it.
Frequently asked questions
Why does my photo look soft after denoising?
Every denoiser trades detail for smoothness. A smoothing blur softens edges the most because it averages across them. The median filter keeps edges sharper but still erases texture finer than its window. Reduce the radius to keep more detail.
Which filter should I pick for high-ISO night photos?
Start with the smoothing filter at low strength. High-ISO grain is small random wobble on every pixel, and averaging a few neighbors cancels most of it. Reserve the median for distinct black or white specks.
Does removing noise reduce file size?
Often yes for JPEG and PNG. Noise is high-frequency and hard to compress, so a smoother image packs into fewer bytes. Do not count on it as a compression method though: the savings depend on the image.
Are my images uploaded anywhere?
No. Everything runs locally in your browser, and nothing is sent to a server. The before and after preview is computed on your own machine.
Can I run the filter more than once?
Yes, and two passes of a 3x3 median remove more than one pass while blurring less than a single 5x5 pass. But each pass costs a little detail, so check the zoomed preview after each.