JPEG and PNG both are a type of image format to store images. JPEG uses lossy compression algorithm and image may lost some of its data whereas PNG uses lossless compression algorithm and no image data loss is present in PNG format.
Following are the important differences between JPEG and PNG.
Sr. No. | Key | JPEG | PNG |
---|---|---|---|
1 | Stands for | JPEG stands for Joint Photographic Experts Group. | PNG stands for Portable Network Graphics. |
2 | Compression Algorithm type | JPEG uses lossy compression algorithm. | PNG uses lossless compression algorithm. |
3 | Image Quality | JPEG image may lose some image data causing quality loss. | PNG image is of high quality. |
4 | Image size | JPEG image is generally smaller than PNG image of same image. | PNG image is generally larger than JPEG image of same image. |
5 | Transparency | JPEG does not supports transparency in images. | PNG supports transparency in images. |
6 | Extensions | JPEG images use .jpeg or .jpg extension. | PNG images use .png extension. |
7 | Usage | JPEG images are used in photography. | PNG images are generally used in icon creation. |