A color digital image is a very important type of digital data, and this image may be exposed to the effect of negative noise, which distorts it and changes some of its characteristics. Therefore, it is necessary to search for a way to get rid of this noise. In this research paper, we an easy and flexible way to deal with salt and pepper noise will be presented tested and implemented, this method will base on selecting a window to deal with the noisy pixels based on median filter, image padding will be used to select the window with a suitable size. The practical results of the proposed method will be matched and compared with other methods used to remove noise to prove the efficiency of the proposed method for removing noise from the digital color image.