JPG vs PNG: What is the Difference?
Updated
JPG and PNG are the two most common image formats. The difference comes down to how they compress pictures: JPG throws away detail you are unlikely to notice to make files small, while PNG keeps every pixel exactly.
JPG: small files for photos
JPG (also written JPEG) uses lossy compression. It smooths away fine detail and colour differences that the eye barely notices in photographs, which can make a photo five to ten times smaller than an exact copy. You choose the trade-off with a quality setting: around 75 to 85 percent usually looks the same as the original at a fraction of the size.
PNG: exact copies and transparency
PNG uses lossless compression, so the image you save is pixel for pixel the image you get back. It also supports transparency, letting a logo sit cleanly on any background. The price is size: a photo saved as PNG is usually several times larger than the same photo as a JPG.
Which one to use
Use JPG for photos, camera images and scanned pages where small size matters, such as uploads with a size limit. Use PNG for logos, icons, screenshots, charts and anything with sharp edges or text, and whenever you need a transparent background. Text and thin lines in a JPG pick up blurry smudges around them, which is the most common sign the wrong format was chosen.
Saving again and again
Every time you edit and re-save a JPG, it loses a little more quality. Keep an original, or work in PNG and export a JPG at the end. Converting a JPG to PNG does not bring back lost detail; it only stops further losses.
Where WebP fits in
WebP is a newer format that can do both jobs: lossy like JPG and lossless with transparency like PNG, usually in smaller files. All current browsers support it, but some older software and upload forms still only accept JPG or PNG.
Changing formats
Use JPG to PNG to convert between the two, WebP Converter for WebP files, and Compress Image to make a JPG, PNG or WebP smaller before you upload it.