JPG (also written JPEG, for Joint Photographic Experts Group) is the most widely used image format in the world. It was designed specifically for photographic images and achieves small file sizes by using lossy compression — discarding subtle image data that the human eye is unlikely to notice in complex, natural scenes.
Nearly every camera, smartphone, and image editing application saves photos as JPG by default. It is universally supported across every browser, operating system, design tool, and print workflow.
JPG compression works by dividing the image into small blocks and applying a mathematical transform (the Discrete Cosine Transform) to identify and discard high-frequency detail that contributes little to perceived quality. The compression level is expressed as a quality value, typically from 0 (smallest file, worst quality) to 100 (largest file, best quality).
The tradeoff is always between file size and visual quality. At high quality settings (85–95), JPG images are nearly indistinguishable from the original. At low quality settings (below 50), blocky compression artifacts become visible, particularly around edges and areas of flat color.
One important characteristic of JPG is that it is a lossy format — each time you open, edit, and re-save a JPG, quality degrades slightly. For files you plan to edit repeatedly, work from a lossless source (PNG or TIFF) and export to JPG only at the final step.
JPG is the right format for photographic content in most situations:
For graphics with text, sharp edges, transparency, or solid areas of flat color, PNG or WebP will produce better results than JPG.
JPG and PNG serve different purposes. JPG is optimized for photographs — complex images with millions of gradual color variations where small quality losses are imperceptible. PNG is lossless and better suited for graphics, illustrations, screenshots, and anything requiring a transparent background.
Using JPG for a logo or text graphic will produce visible artifacts around edges and text. Using PNG for a photograph will produce a much larger file with no perceptible quality benefit. Choose the format that matches what's in the image.
WebP is a modern format that improves on JPG in most measurable ways: smaller files at equivalent quality, support for transparency, and both lossy and lossless modes. All major browsers have supported WebP since 2020.
For new web projects, WebP is generally the better choice where browser support is guaranteed. JPG remains valuable for maximum compatibility — older software, email clients, print labs, and any context outside the browser where WebP support is uncertain.
The quality setting you use when saving a JPG controls the balance between file size and visual fidelity. Common reference points:
| Quality Setting | Typical Use |
|---|---|
| 90–95 | High quality — minimal artifacts, larger files; good for archival or print |
| 75–85 | Standard web quality — good balance of size and quality for most images |
| 60–74 | Compressed web images — smaller files, some visible artifacts on close inspection |
| Below 60 | Aggressive compression — noticeable artifacts; only suitable where file size is critical |
For most web images, a quality setting of 75–85 is the standard starting point. Evaluate each image individually — a photo with lots of fine detail may need a higher setting than a simple portrait.
Is JPG the same as JPEG?
Yes. JPEG is the full name of the format; JPG is the three-letter file extension used on older Windows systems that couldn't handle four-letter extensions. They refer to exactly the same format — .jpg and .jpeg files are identical in every technical sense.
Does converting PNG to JPG lose quality?
Converting a lossless PNG to JPG will apply lossy compression for the first time, which can introduce artifacts. The degree of quality loss depends on the quality setting used. If the PNG contains transparency, that information is lost entirely in the conversion — JPG has no transparency support.
Can I recover quality from a heavily compressed JPG?
No. Lossy compression permanently discards image data. Converting a low-quality JPG to PNG or increasing the quality setting on re-save will make the file larger but cannot restore the discarded detail. Always keep original high-quality source files.
Why does re-saving a JPG reduce quality?
Each save applies the compression algorithm again to the already-compressed image, discarding additional data each time. The effect is cumulative. To avoid this, edit from a lossless source and export to JPG only once at the final step.
Does JPG support transparency?
No. JPG has no alpha channel and does not support transparent pixels. Any transparent areas in a source image are filled with a solid background color (usually white) when converted to JPG. Use PNG or WebP for images that require transparency.
This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.