Impulse noise in images is present because of bit errors in transmission or introduced during the signal acquisition stage. There are two types of impulse noise, they are salt and pepper noise and random valued noise. In our proposed method, first we apply the Stationary wavelet transform for noise added image. It will separate into four bands like LL, LH, HL and HH. The proposed algorithm replaces the noisy pixel by trimmed median value when other pixel values, 0’s and 255’s are present in the selected window and when all the pixel values are 0’s and 255’s then the noise pixel is replaced by mean value of all the elements present in the selected window. This proposed algorithm shows better results than the Standard median filter (MF), decision based algorithm (DBA). The proposed method performs well in removing low to medium density impulse noise with detail preservation up to a noise density of 70% and it gives better Peak signal-to-noise ratio (PSNR) and mean square error (MSE) values.