The JPEG format is a widely used image file format that stores photographic and other continuous-tone images using adjustable compression. The algorithm allows users to set a balance between image appearance and storage size: higher quality settings preserve more detail and produce larger files, while stronger compression reduces file size at the cost of visible artifacts. JPEG files are extremely common on the World Wide Web and on consumer cameras and mobile devices. The name comes from the Joint Photographic Experts Group, the organization that defined the standard. Many operating systems and applications recognize several file extensions for JPEG images, such as .jpg, .jpeg and .jpe.

How it works

  • Most JPEG implementations use a lossy compression technique based on the discrete cosine transform; this removes some image information to achieve smaller files.
  • The degree of compression is selectable, so the same image can be stored with different trade-offs between fidelity and file size. Tools that compress images typically expose a quality slider or compression level.
  • JPEG is well-suited to photographs and complex color gradients but is less effective for crisp line art, text, or images with large areas of flat color where compression artifacts are more noticeable.

Common characteristics and use

  • Widespread support: nearly all web browsers, image viewers, printers and digital cameras can read JPEG files.
  • Variations: the standard includes baseline (progressive) modes and has inspired other JPEG-family formats that target different needs (higher compression efficiency, lossless modes, etc.).
  • File extensions: users will typically encounter names ending in .jpg, .jpeg or .jpe; historical platform limits led to the shorter .jpg being common on some systems.