File Format

JPG / JPEG (.jpg)

The most widely used format for photographs — small file size with excellent visual quality.

Extension
.jpg
MIME Type
image/jpeg

Last updated

What Is a JPG File?

JPEG (Joint Photographic Experts Group) was standardised in 1992 as a lossy compression format optimised for photographs. The file extension is typically .jpg or .jpeg — both refer to the same format.

How JPG Compression Works

JPG uses the Discrete Cosine Transform (DCT) algorithm:

  1. The image is divided into 8×8 pixel blocks
  2. Each block is transformed from pixel values to frequency coefficients
  3. High-frequency detail (fine texture) is discarded based on the quality setting
  4. The result is compressed using Huffman coding

The key implication: each time a JPG is opened and re-saved, the DCT process runs again, introducing additional artefacts. Never use JPG as a working/editing format — only as a final delivery format.

Quality Settings Reference

QualityUse CaseFile Size vs. Q100
90–95Archival, print-ready editorial−30–40%
80–85General web use (recommended)−60–70%
70–75Thumbnails, secondary images−75–80%
Below 70Not recommended−80%+

When to Use JPG

✅ Photographs and realistic images ✅ Social media posts (final delivery) ✅ Email attachments where file size matters ✅ Web images alongside WebP fallback

❌ Logos, icons, text-heavy screenshots (use PNG) ❌ Images with transparency (use PNG or WebP) ❌ Working/editing copies (use PNG as intermediate)

MIME Type

image/jpeg — used by web servers, browsers, and APIs to identify JPEG files regardless of whether the extension is .jpg or .jpeg.

Tools for JPG / JPEG files

Related terms