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.
.jpg and
.jpeg files are identical in every technical sense.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.