This paper presents an algorithm to reduce blocking artifacts in JPEG-compressed images, an issue caused by the quantization process during compression. By utilizing smoothing techniques and detecting blocked edges, the proposed deblocking algorithm significantly enhances the image quality both subjectively and objectively. The research highlights the importance of improving JPEG standards without requiring modifications to existing compression protocols.