View Categories

Why PNG images with transparency get a white background when converted to JPEG?

When converting PNG images with transparency to JPEG, by enabling the Force conversion of transparent images setting, transparent areas are replaced with a solid white background color.

PNG images can contain transparent pixels, which makes them ideal for logos, icons, and images that need to blend into different backgrounds. JPEG images, however, do not support transparency at all.

By default, ShortPixel fills transparent areas with white during the conversion process. This ensures predictable and clean results in most common use cases.

Once a PNG is converted to JPEG, transparency is lost. You can restore the original backed-up PNG to restore transparency.

Note: If the resulting JPEG image is later placed on a non-white background, the white areas may look unnatural around edges or cutouts. This is a limitation of the JPEG format itself and cannot be fully avoided.

Transparent PNG
Converted non-transparent JPG

When to convert PNG to JPEG #

Converting PNGs to JPEG works best when:

  • The image does not rely heavily on transparency
  • The image will be displayed on a white background
  • File size reduction is a higher priority than preserving transparency

When to keep PNG format #

You should keep images as PNG if:

  • The image needs real transparency
  • It will be placed on varying or dark backgrounds
  • It is a logo, icon, or UI element

Related settings #

To enable PNG to JPEG conversion: