Skip to content
toolsdocks

How to remove a background from a photo (transparent PNG or white)

8 min read · Updated 23 October 2026

How do I remove the background from a photo? Add the photo to a background remover, let an AI model find the person or object, then save the result as a transparent PNG or place the subject on a new background such as white. The background remover runs in your browser, so the photo stays on your device. For a plain white background, use change photo background to white, which opens the same tool with white and JPEG already chosen.

Cutting out a subject used to take careful work in an image editor. Today, an AI model does most of it in seconds. It is not perfect, though, and some photos work much better than others. This guide explains how it works, when it gets good results, how to choose between a transparent PNG and a white background, and how to fix the usual trouble spots such as hair and soft edges.

How automatic background removal works

The tool uses a trained model that looks at the photo and decides, pixel by pixel, which parts are the subject and which are background. The output is a mask, a grayscale map where white means "keep" and black means "remove." The tool applies the mask to your photo.

The toolsdocks background remover offers two models:

  • Portrait is for people. It is about 12 MB and runs on most computers, with or without a fast graphics card.
  • Objects is for products, animals and things, and it also handles people. It is about 109 MB and needs a browser with WebGPU.

The first time you use a model, the page downloads it. The model files come from Hugging Face, which sees your IP address when you press Download model. Your photos are never sent. The model is cached, so later visits load faster. After that, the work happens on your device.

Limits to know about: up to 40 megapixels per image, and up to 50 images per batch. Without WebGPU, the Portrait model runs on the processor and takes a few seconds per photo on a typical laptop.

When it works well

Automatic removal works well when the subject is clearly different from the background.

  • Strong contrast. A dark jacket against a light wall is easy. A gray jacket on a gray wall is not.
  • Clean edges. Solid shapes such as a mug, a shoe or a phone case cut out neatly.
  • Good light. Even lighting with no hard shadows over the subject gives the model a clear edge.
  • One main subject. The model looks for the most obvious subject. Busy scenes with several people or objects can confuse it.
  • Sharp focus. A blurry edge gives a blurry mask.

When it needs help

The tool's own notes list the weak spots. Fine hair, glass and very low-contrast edges may need manual cleanup. A few more:

  • Hair and fur. Single strands blend with the background. The mask may cut them off or leave a halo of the old background color.
  • Transparent or shiny objects. Glass, water and clear plastic let the background show through, so the model cannot tell where the object ends.
  • Similar colors. A white shirt on a white wall has almost no edge.
  • Small gaps. The space between an arm and the body, or a handle on a cup, may be filled in or left out.
  • Shadows. A shadow on the floor may be treated as part of the background, or as part of the subject.

You can often shoot a better starting photo in a minute. Put the subject on a plain, contrasting surface, turn on more light, and keep the camera steady.

Step by step: remove a background

  1. Open the background remover.
  2. Choose a model. Portrait suits people. Objects suits products and animals, if your browser supports WebGPU.
  3. Press Download model the first time. Wait for it to finish.
  4. Add your images. JPEG, PNG and WebP photos work. You can add up to 50.
  5. Press Remove background.
  6. Pick what goes behind the subject: transparent, a solid color, a blurred copy of the photo, or another image.
  7. Use the before and after comparison to inspect the edges. Zoom in on hair and corners.
  8. Download the result.

The tool turns the 800 x 1000 sample portrait into a transparent PNG. The person, including face, hair and shirt, stays opaque, and the corners and wall panels become fully transparent.

Transparent PNG or white background?

Choose based on where the picture will go.

You need Choose Why
A logo-style cutout to place on other designs Transparent PNG PNG keeps transparency
A profile photo with a plain background White JPEG Small file, works everywhere
A shop listing photo White JPEG or PNG, depending on the platform's rules Many marketplaces ask for a plain white background
A cutout to use in slides or documents Transparent PNG It sits cleanly over any color
A photo with a softened background Blur background Keeps the context but hides clutter

PNG supports transparency. The areas the tool removed are fully see-through. The files are larger than JPEGs.

JPEG does not support transparency. If you save a cutout as JPEG, the empty areas must be filled with a color, which is why the tool offers a color background such as white. JPEG files are small and open everywhere.

For the full story on picking formats, see choosing an image format.

How to make a white background

  1. Open change photo background to white. It starts with a white color and JPEG output.
  2. Choose the model, download it once, then add your photo or photos.
  3. Press Remove background. Everything behind the subject turns white.
  4. Check the edges, adjust if needed and download the JPEGs.

In the general tool you can do the same by choosing a color background and picking white.

White background for product photos

Online stores often require a plain white background for the main image. Amazon is a well-known example, and sellers often cite pure white (RGB 255, 255, 255) as the standard. We could not confirm the current rules from Amazon's own pages, and they differ by marketplace and change over time, so read the seller guidelines before you upload. Some also set a minimum pixel size, so that shoppers can zoom.

Tips for product shots:

  • Use the Objects model for products.
  • Shoot straight on, with the product filling most of the frame.
  • Light the product evenly so there are no dark patches at the edges.
  • If the platform allows it, add a soft shadow back in an image editor. A cutout floating with no shadow can look odd.
  • Check the result at 100 percent zoom for leftover fringes.
  • Keep a copy of the original.

Fixing the edges

After you remove a background, you will usually see one of three problems: a halo of the old color, a chewed-off edge, or a rough, jagged line. Two controls fix most of it.

  • Edge position moves the cutout edge inward or outward. Trim inward to remove a halo. Move outward to keep more of the subject, such as thin hair.
  • Feather softens the edge so the cutout blends into the new background.

After each change, press Remove background again, as the tool describes, then use the before and after view to compare.

Rules of thumb:

  • Light halo on a dark subject: trim inward a little.
  • Hair cut off: move the edge outward and add a small feather.
  • Hard, cut-paper look: add feather.
  • Still not right: try the other model, or touch up the PNG in an image editor.

A worked example

You sell handmade candles and need a clean main photo for a listing.

  1. You photograph a candle on a kitchen counter with window light, straight on, about 3 feet away. The file is 4000 x 3000 pixels.
  2. You open change photo background to white in a browser that supports WebGPU. You choose the Objects model and download it, about 109 MB, once.
  3. You add the photo and press Remove background. The counter and wall turn white.
  4. In the before and after view you spot a faint gray fringe near the lid. You trim the Edge position inward slightly, add a small Feather, and run it again.
  5. You download the JPEG. It keeps the same width and height as the original.
  6. The listing asks for a file under 1 MB. You run it through the image compressor with a target of 900 KB.

Total time is a few minutes per photo, and a batch of 50 photos can be processed in one go.

Common mistakes

  • Using the Portrait model on a product. Portrait is trained on people. Use Objects for things.
  • Saving a cutout as JPEG and expecting transparency. JPEG has none. Use PNG.
  • Skipping the zoom check. Edge problems are hard to see at small size and obvious on a big screen.
  • Starting with a messy photo. A cluttered, low-contrast photo gives a poor mask. Reshoot if you can.
  • Overwriting the original. Keep the source file.
  • Assuming white means white. A photo with a gray cast can look off-white. Check the final color.
  • Expecting perfect hair. Fine strands are a known weak point for any automatic tool.
  • Uploading private photos to unknown sites. Many sites send your image to a server. This tool runs in your browser.

FAQ

Can I make a background transparent without Photoshop? Yes. Add the image to the background remover, keep the transparent output and download the PNG.

Is it really private? The model is downloaded from Hugging Face, and the photos are processed in your browser. According to the tool's notes, your images are never sent.

Why does the first photo take so long? The first use downloads the model, which is about 12 MB for Portrait or 109 MB for Objects. After that it is cached.

Which output format keeps transparency? PNG. JPEG cannot store transparency.

Does the tool work on a phone? The page is built for modern browsers. The Objects model needs WebGPU, and without it only the Portrait model is available and runs on the processor, which is slower. We have not benchmarked phones, so a recent computer is the safer choice for large batches.

What image types can I add? JPEG, PNG and WebP. If you have iPhone HEIC photos, convert them first with HEIC to JPG.