The paper presents an adaptive median based modified mean filter (AMMF) algorithm to effectively remove high-density salt and pepper noise from digital images, improving upon existing methods such as standard and progressive switched median filters. The AMMF algorithm operates in two stages: first, it processes the noisy image with an adaptive median filter, followed by a modified mean filter, yielding superior peak signal-to-noise ratios and visual quality. Experimental results demonstrate that the AMMF algorithm outperforms other existing techniques across various noise densities, maintaining effectiveness even at levels as high as 95%.