Free Chrome extension — on-device cutouts

JPG background limitations: what the format cannot keep

JPG cannot store a transparent background. Every pixel in a JPG must resolve to visible color, so a cutout saved as JPG is flattened against white, black, or another chosen color. If you need the area around a subject to remain empty, export PNG instead.

This limitation does not make JPG a bad source photo. It only means JPG and transparent output have different jobs.

What “cannot keep transparency” means

A cutout contains two kinds of information:

The second part is commonly called alpha. JPG has no place to store it.

When software turns a transparent cutout into JPG, it must decide what visible color replaces every empty pixel. The result becomes a complete rectangle again. Often that replacement is white, but it could be black or any selected fill.

Nothing is wrong with the file. The transparent information was removed because the destination format cannot carry it.

For a plain-English introduction to alpha, see What is a transparent PNG?.

JPG can still be the input

Most camera and phone photos are ordinary rectangular images. They arrive with a room, wall, street, or tabletop already visible behind the subject. That makes JPG a normal input for background removal.

The useful workflow is:

  1. open the JPG source;
  2. isolate the subject;
  3. inspect and refine the edge;
  4. export the new result as PNG.

The source and output do not need to use the same format. Convert a JPG photo into a transparent PNG walks through that job directly.

Why a white background can be misleading

A cutout on white may look transparent when viewed on a white page. Move it onto a dark slide and the rectangular white plate becomes obvious.

Use this quick test:

  1. place the image over a bright non-white color;
  2. look at all four corners;
  3. check gaps around arms, handles, and hair.

If the test color does not show through those areas, the file is flattened. A .jpg filename confirms why. A .png filename can support transparency, although the PNG may still have been intentionally exported with a fixed fill.

White is a color. Transparency is the absence of visible background pixels.

Soft edges reveal another limitation

Good cutouts do not always have a hard boundary. Hair, fur, fabric, shadows, and anti-aliased curves can contain partially visible edge pixels. Alpha lets those pixels blend with a new background.

When a transparent edge is flattened into JPG, the edge is blended against one fixed color. Place that JPG on a different color and you may see:

This is why simply removing a white rectangle from a JPG later does not always recover the original cutout. The transition pixels have already been mixed with white.

Repeated JPG saving can reduce quality

JPG uses lossy compression. It is designed to make photographic images smaller by simplifying visual detail. Each additional save can introduce more ringing, blockiness, or smearing, especially around sharp high-contrast edges.

Those artifacts matter around a cutout boundary because the edge is precisely where clean detail is needed. A heavily compressed source may show:

Exporting to PNG prevents another lossy JPG stage after the cutout. It cannot restore detail already missing from the source, but it avoids adding JPG compression to the transparent result.

When JPG is still the correct final file

JPG can be a sensible delivery format when all of these are true:

For example, a finished banner with a full photographic backdrop may not benefit from alpha. A finalized white-background catalog photo may also be delivered as JPG if the receiving specification requires it.

The important point is intention. Flatten a transparent master onto the required color, then create the JPG delivery copy. Do not discard the master unless you are certain the subject will never need another background.

A practical decision table

Need Use
Start from a phone or camera photo JPG can be fine
Preserve empty background area PNG
Reuse one cutout on many colors Transparent PNG master
Deliver a final photo on one fixed background JPG may be suitable
Preserve partly transparent soft edges PNG
Meet a destination that explicitly requests JPG Flatten deliberately, then export JPG

For a broader comparison of modern cutout formats, read PNG vs WebP vs AVIF for cutouts.

Common recovery mistakes

Renaming the extension

Changing image.jpg to image.png does not convert the file or restore alpha. Export or convert through software that actually writes PNG data.

Erasing white from the flattened JPG

This can work for simple hard-edged graphics, but it often damages white parts of the subject and leaves pale edge contamination. Returning to the transparent master is safer.

Sending the preview instead of the export

A screenshot flattens the whole preview, including any visible checkerboard. Use the editor’s export action.

Assuming every PNG is transparent

PNG can carry alpha, but it can also contain a fully opaque background. Verify it over a contrasting color.

The safest workflow

Use JPG for what it does well: common photographic input and compact fixed-background delivery. Use PNG when the result must preserve transparency.

Keep a clean PNG master after background removal. From that master, make a white JPG, colored JPG, or other destination copy when required. This order preserves options and avoids trying to reconstruct transparency after it has been flattened away.

Keep exploring

Interesting