Images are often corrupted by impulse noise due to errors generate d in noisy sensors or communication channels. Two types of impulse noise can be defined: 1) fixed-valued and 2) random-valued. In many applications it is very important to remove noise in the images before some subsequent processing such as edge detection, object recognition and image segmentation. In this paper an adaptive filtering using genetic algorithm is proposed. In the simulations over various images, the proposed partition based median (PBM) filter using genetic algorithm in training have demonstrated better results in noise suppressing then competitive filters based on median filtering in terms of SNR(dB) as well as the perceived image quality.