Skip to content
Türkçe

How to get a white background for product photos

A white-background product photo needs two things: a clean cut between product and background, and the right file. This guide covers both, along with what the tool actually does.

Open the tool: White background for product photos

For a product photo on white, the product has to be cut out from its background. In the White background for product photos tool, an AI does the cutting. How clean the result is varies with the photo.

Left: a navy mug with a shadow on a gray background. Right: the same mug on white
Left: the tool's input, a picture of a mug with a shadow on gray. Right: the downloaded JPEG on white. The shadow under the mug went away with the background.

How the tool removes the background

The tool shrinks the whole photo to 512×512 pixels and gives it to an AI model. For every point, the model gives a value that shows whether that point is product or background. The tool turns these values into a transparency map, scales the map back up to the photo's size, and makes the background see-through.

Two things follow from this:

  • Edge detail is limited. The model sees the photo 512 pixels wide. In a 4000-pixel photo, one point of the model covers about 8 pixels of the photo. That is why edges can stay soft around hair, tulle or glass.
  • A small product gets few points. If the product sits in a small corner of the photo, the model sees it small too. A product that fills the frame well tends to get a cleaner edge.

If the model finds no clear object, a warning mark (⚠) appears next to the photo's name in the list, and the tool says "No clear object was found in this photo".

How to shoot the photo

The tool's page says the result is good when the product stands out clearly from the background. So:

  • Pick a contrasting background. Shoot a dark product on a light background and a light product on a dark one. A white product in front of a white wall is hard to separate.
  • Keep the background plain. A patterned or busy background can make it harder to separate the product.
  • Get close. Let the product fill most of the photo; for the reason above, this helps the edge come out better.
  • Keep the whole product in the frame. A handle or lid cut off in the photo stays cut off on white.
  • Fix the light first. You can brighten a dark or yellowish photo with the Photo light and color fix tool before you start.

Transparent PNG or white JPEG?

The tool gives two files for each photo. Both come from the same cut; only the background differs.

PNG (transparent)JPEG (white)
BackgroundSee-throughPure white (#ffffff)
EdgeThe soft, half-transparent edge is keptThe half-transparent edge blends into white
When to useYou will place the product on another picture, a poster or a slideThe product will be shown on white

The JPEG format cannot hold transparency. So if you will put the product on a colored background, take the PNG. If you place the white JPEG on a colored background, you will see a white box around the product. JPEG files are saved at 0.92 quality.

You can download each file on its own or use "Download all as ZIP" to get one file. The ZIP holds both the PNG and the JPEG of every photo.

Output size and margin

"Output size" has four options:

  • Same as the photo: The result has the photo's own size. The product stays where it was in the photo; it is not centered.
  • 1200×1800 vertical, 1000×1000 square, 2000×2000 square: The tool finds the box around the product, puts the product in the center of that size, and scales it up or down to fit the space left.

"Margin" only works with these fixed sizes. It goes from 0% to 30% and starts at 8%. The margin is left on each side. For example, in a 1000×1000 square with an 8% margin, the product fits into an area of at most 840×840 pixels. In 1200×1800 vertical with the same margin, that area is 1008×1512 pixels.

One thing to watch: to fit that area, the tool may also enlarge the product. If you put a small product from a small photo into a 2000×2000 square, it gets enlarged and can look soft. For a photo like that, pick a smaller size.

Example: 12 product photos

Say you shot 12 products with a phone on a light gray table. You choose them all at once. You pick 1000×1000 square as the size, and the margin stays at 8%. You press "Remove background". The tool handles the photos one after another; on a computer, one photo takes about 10 seconds. When it finishes, you look at each one with "Show" and note any with a rough edge. Then you download them as a ZIP.

Up to 20 photos are handled in one run. If you choose more, the tool tells you how many were left out; choose those in a second run.

Other things to know

  • The model downloads once from Hugging Face (~98 MB) and is kept in your browser. A damaged or incomplete download is not saved.
  • Photos longer than 4096 pixels on the long side are scaled down to that size. Photos larger than 60 megapixels are skipped.
  • Up to 20 photos are handled in one run.
  • It works on a phone but takes longer; older phones may run out of memory.

When this tool is the wrong choice

  • You want to remove a single item or stain, not the whole background: use Remove objects from photos.
  • ID or passport photos: the tool was built for product photos; edges around fine hair can stay soft, and there is no ID photo size option.

Your photos are never uploaded; the background is removed inside your browser. Only the AI model is downloaded once, from Hugging Face.

Open the tool: White background for product photos

More guides

Last updated: