What is JPG (JPEG)?

Learn everything about JPG/JPEG format - how it works, compression settings, pros and cons, and when to use it. The definitive JPG format guide.

Free online file converter tool. Works in Chrome Firefox Safari Edge Opera and other modern browsers on Windows macOS Linux Android and iOS. No software installation or sign-up required. All conversions run directly in your browser, so your files never leave your device. Free to use with no account needed.

JPG

What is JPG (JPEG)?

JPG (JPEG) is a lossy image compression format developed in 1992, widely used for photographs and web images due to its excellent balance of quality and small file size.

Last updated:

Year Created1992
Compression TypeLossy
Most Used Image Format#1

What is JPG / JPEG?

JPG (also written as JPEG - Joint Photographic Experts Group) is a lossy image compression format created in 1992. It is the most widely used image format on the internet, in digital cameras, and on smartphones worldwide.

The format works by discarding image data that the human eye is least likely to notice, achieving dramatic file size reductions. A high-quality JPEG can be 10x smaller than an uncompressed version of the same image with virtually no visible quality loss.

How JPEG Compression Works

JPEG compression is built on the discrete cosine transform (DCT). The encoder splits the image into 8x8 pixel blocks, converts each block from the spatial domain into frequency coefficients, and then quantizes those coefficients, deliberately discarding the high-frequency detail that human vision is least sensitive to[1]. The remaining data is then packed with lossless entropy coding (Huffman or arithmetic), so the saved file is much smaller than the original pixels.

Because quantization throws information away, JPEG is a lossy format: every time a JPEG is re-saved it is recompressed and loses a little more detail, an effect known as generation loss[4]. The amount of loss is controlled by a quality setting, typically expressed from 1 to 100, that scales the quantization tables.

History and Standardization

The format is named after the Joint Photographic Experts Group, the committee that created it, and the core method was standardized internationally as ITU-T T.81 / ISO/IEC 10918-1 in 1992[1]. What most people call a "JPG file" on disk is usually wrapped in the JPEG File Interchange Format (JFIF) or an Exif container, which add the headers and metadata that applications and cameras rely on[3].

The .jpg and .jpeg extensions are identical; the three-letter form is a holdover from older systems that limited extensions to three characters. Browsers identify the format by the image/jpeg media type rather than the extension[2].

Technical Specifications

DeveloperJoint Photographic Experts Group[1]
File Extension.jpg / .jpeg[1]
MIME Typeimage/jpeg[1]
CompressionLossy (DCT-based)[1]
Color Depth24-bit (16.7M colors)[1]
TransparencyNot supported[1]

JPG vs Other Image Formats

FeatureJPGPNGWebPAVIF
CompressionLossy (DCT)[1]LosslessLossy & losslessLossy & lossless
TransparencyNone[2]Full alphaFull alphaFull alpha
Color depth8-bit/channelUp to 16-bit8-bitUp to 12-bit (HDR)
Compression efficiencyBaselineLarger files~25-34% smaller than JPGSmallest
Browser supportUniversal[1]UniversalAll modern browsersMost modern browsers
Best forPhotographsLogos, screenshotsModern web imagesHigh-efficiency web/HDR

JPG remains the universal default for photographs; newer formats like WebP and AVIF achieve smaller files at similar quality but with narrower (though now broad) support.

Pros & Cons of JPG

Advantages

Small File Sizes

Dramatic compression with minimal visible quality loss - up to 10x smaller than uncompressed.

Universal Support

Supported by every browser, device, camera, and operating system in existence.

Adjustable Quality

Quality setting 1–100 gives full control over the size vs quality trade-off.

Ideal for Photos

Perfect for photographs and complex images with millions of colors and gradients.

Disadvantages

Lossy Compression

Each save re-compresses the image causing gradual quality degradation over time.

No Transparency

Does not support alpha channel - transparent areas are filled with white.

Compression Artifacts

Blocky artifacts appear at low quality settings especially around sharp edges.

Bad for Graphics

Not suitable for text, logos, or flat-color graphics - use PNG or SVG instead.

When to Use JPG

JPG is the right choice for most photographic content and anywhere file size is a priority.

Photography

Digital cameras and smartphones save photos as JPG by default. Perfect for portraits, landscapes, and natural scenes.

Web Images

Smaller file sizes mean faster page loads. Use JPG for all photographic web content.

Social Media

Most social platforms re-compress uploads to JPG. Upload as JPG for predictable quality control.

Email & Sharing

Small JPG files are easy to share via email and messaging apps without hitting size limits.

Need to Convert or Compress JPG?

Use our free online tools to compress JPG files, convert JPG to PNG, WebP, PDF, and more - no signup required.

Try Image Converter Free

Frequently Asked Questions

What is the difference between JPG and JPEG?

There is no difference - they are the same format. JPG became common because early Windows limited extensions to 3 characters.

Does saving a JPG multiple times reduce quality?

Yes. Each save re-applies lossy compression causing gradual degradation. Keep originals in PNG and export to JPG only as a final step.

What quality setting should I use for JPG?

For web use quality 70–80 is ideal. For print use 85–95. Quality above 95 rarely makes a visible difference but significantly increases file size.

Can JPG files have a transparent background?

No. JPG does not support transparency. Use PNG, WebP, or SVG instead. JPG fills transparent areas with white by default.

Is JPG or PNG better for web images?

For photographs JPG is smaller. For graphics and text PNG is better. For modern web use, WebP outperforms both.

References

  1. JPEG standard (ISO/IEC 10918) - JPEG Committee
  2. JPEG image type - MDN Web Docs
  3. JPEG File Interchange Format Family - Library of Congress
  4. JPEG - Wikipedia