JPEG and GIF both are a type of image format to store images. JPEG uses lossy compression algorithm and image may lost some of its data whereas GIF uses lossless compression algorithm and no image data loss is present in GIF format. GIF images supports animation and transparency