designwithfocus

Image file formats

What Is a JPG File? JPEG Format Explained Simply

By Design With Focus Team 4 min read
Diagram of a photo divided into small blocks to show how JPEG compression works

Short answer

A JPG, or JPEG, is a compressed image format designed for photographs. The name comes from the Joint Photographic Experts Group, the committee that created the standard, published in 1992. JPG uses lossy compression, which shrinks files a lot by discarding detail the eye barely notices. It is ideal for photos but cannot store transparency.

Last verified against the sources listed below.

Key takeaways

  • JPG and JPEG are the same format; the shorter extension came from old file name limits.
  • JPEG stands for Joint Photographic Experts Group.
  • It uses lossy compression, so quality drops a little each time you re-save.
  • JPG is best for photos; PNG is better for logos, text and transparency.
  • WebP and AVIF usually give smaller files than JPG at similar quality.

JPG is the format most of the world’s photos live in. Phones, cameras and websites all use it, because it makes photo files small enough to store and share easily. The trade-off is a little invisible quality loss.

Quick facts
Full name JPEG (Joint Photographic Experts Group)
Extensions .jpg, .jpeg
Standard published 1992
Compression Lossy
Transparency Not supported
Best for Photographs

JPG is a compressed photo format

JPG is a widely used image format that compresses photos to small file sizes. Wikipedia’s JPEG article describes it as a commonly used method of lossy compression for digital images, particularly photographs.

The JPEG committee’s overview explains that the standard was created by the Joint Photographic Experts Group. That group gave the format its name.

JPG and JPEG are the same

There is no difference between .jpg and .jpeg files. Early versions of Windows only allowed three-letter file extensions, so .jpg became the common form. Today, both extensions work everywhere.

You can rename photo.jpeg to photo.jpg, or the other way round, without changing a single pixel.

How JPG compression works

JPG throws away detail your eye is least likely to notice. That is why it is called lossy compression.

In simple terms, the encoder:

  1. Splits the image into small blocks, typically 8 by 8 pixels.
  2. Separates brightness from color, since eyes are more sensitive to brightness.
  3. Reduces fine color detail and subtle high-frequency changes.
  4. Packs what remains efficiently.

At high quality settings, the loss is hard to see. At low settings, you may notice blocky patches and fuzzy halos around edges, called compression artifacts. The free JPG Compressor lets you pick a balance between size and quality.

Pros and cons of JPG

JPG is excellent for photos, but it has clear limits.

Pros Cons
Small files for photos Lossy: quality drops on re-save
Supported almost everywhere No transparency
Adjustable quality Blurs sharp edges and text
Good for millions of colors Not ideal for logos or screenshots

JPG vs PNG vs WebP

Pick the format that fits the image, not habit. MDN’s image format guide compares common web formats and their strengths.

Format Best for Transparency
JPG Photos No
PNG Logos, screenshots, text, transparency Yes
WebP Photos and graphics on the web, smaller files Yes
AVIF Very small high-quality web images Yes

web.dev’s guide to image formats recommends modern formats such as WebP and AVIF when you want smaller files for the web. Our guide on what a PNG file is explains when PNG beats JPG.

When to use JPG

Use JPG for photographs where file size matters and transparency does not.

  • Photos for websites, blogs and email.
  • Camera and phone pictures.
  • Social media posts with photographs.
  • Large images where PNG would be far too big.

Avoid JPG for logos, icons, text-heavy graphics and screenshots. Sharp edges in those images turn fuzzy after JPG compression.

Tips for working with JPG

Edit from the original, and export JPG last. Every re-save adds a little more compression.

  • Keep your master file in a lossless format, such as PSD, TIFF or PNG.
  • Export at a quality around 75 to 85 for web photos, then check visually.
  • Resize to the size you actually need before compressing.
  • Strip metadata if you do not need it, which also protects location data in phone photos.

These steps keep photos looking sharp while loading quickly, which matters for both visitors and search engines.

How JPG quality settings affect file size

Quality settings trade file size against visible detail. The scale usually runs from 0 to 100, and the relationship is not linear.

Quality setting Typical result
90 to 100 Very large files, little visible gain
75 to 85 Good balance for most web photos
50 to 70 Noticeable softening on close inspection
Below 50 Visible blocks and color blotches

Always check the result at the size people will actually see. A photo shown 600 pixels wide can usually use a lower quality than one shown full screen. If you need to change format later, the JPG to PNG Converter keeps the current quality without further loss.

Frequently asked questions

What does JPG stand for?

JPG is short for JPEG, which stands for Joint Photographic Experts Group, the committee that developed the standard. The format was published as an international standard in 1992 and remains one of the most widely used image formats in the world.

Is JPG the same as JPEG?

Yes. JPG and JPEG are the same format. Older versions of Windows limited file extensions to three letters, so .jpg became common. Modern systems accept both, and you can rename one to the other without changing the image.

Does saving a JPG reduce quality?

Each time you edit and re-save a JPG, it is compressed again, and a little more detail can be lost. Opening and viewing a JPG does not reduce quality. To avoid losses, keep an original in a lossless format and export a JPG only at the end.

Can a JPG have a transparent background?

No. The standard JPG format does not support transparency, so transparent areas are filled with a solid color, usually white. Use PNG, WebP or AVIF when you need a transparent background, such as for logos and cutout product images.

Should I use JPG or PNG?

Use JPG for photographs and complex images where small file size matters. Use PNG for logos, icons, screenshots, text and anything needing transparency or crisp edges. For the web, WebP or AVIF can replace both with smaller files where supported.

Sources