# Remove a background with Select Subject and a layer mask

> Remove a background like in Photoshop: Select > Subject, Select and Mask for the hair, then a layer mask you can still edit. Free in your browser.

URL: https://photopip.com/tutorials/remove-background-layer-mask/
Updated: 2026-11-09

Cut a person out of a photo and keep the original pixels under a mask, so you can fix the edges later. The menus are the ones you know from Photoshop.

Learn how to separate a subject from its background with **Select > Subject**, clean up the hair in **Select and Mask**, and keep the result as a layer mask instead of deleting pixels. The steps take about two minutes. You need one photo; this tutorial uses a portrait taken in a park, where the hair sits against trees and a gravel path.

If you only need a transparent PNG and do not want to edit the edges, the [Remove Background tool](https://photopip.com/remove-background/) does it in one click.

## Select the subject

1. Open the photo. Choose **File > Open**, or drag the file onto the editor window.
2. Choose **Select > Subject**. Photopip finds the person and draws a selection around her.

After Select > Subject. Look at the outline above her head: the hair edge is close, but loose strands are outside it.

> **Note:** Select Subject sends a smaller copy of the photo to our server, which finds the subject and returns the selection. If the service is busy, Photopip makes a simpler selection from the color difference and tells you so.

## Refine the edge and make the mask

1. Choose **Select > Select and Mask** (Alt+Ctrl+R on Windows, Option+Command+R on macOS).
2. Under **View Mode**, set **View** to **On White**. Dark hair is easier to judge against white than against the checkerboard.
3. Under **Edge Detection**, select **Smart Radius** and set **Radius** to about 12 px. Photopip now looks for soft edges in a band around the outline instead of cutting along it.
4. For stray hairs, choose the **Refine Edge Brush Tool** (R) on the left and paint once along the edge of the hair.
5. Under **Output Settings**, set **Output To** to **Layer Mask**, and click **OK**.

Select and Mask with On White, Smart Radius and Output To: Layer Mask.

The background is now hidden, not erased. In the **Layers** panel, the Background layer has become **Layer 0** with a mask thumbnail next to it. Paint on the mask with black to hide more, or with white to bring parts back.

> **Tip:** In the Properties panel, the **Remove Background** quick action selects the subject and adds the layer mask in one step, without Select and Mask. Try it first, and open **Select and Mask** only when the edge needs work.

## Export a transparent PNG

1. Choose **File > Export > Export As** (Alt+Shift+Ctrl+W on Windows, Option+Shift+Command+W on macOS).
2. Set **Format** to **PNG** and keep **Transparency** selected. Check the size under **Image Size**, then click **Export**.

Export As shows the file size before you save: about 1 MB for this 2000 × 1500 PNG.

To keep the mask for later, choose **File > Save As** and save a PSD. The mask and the hidden park stay in the file, and Photoshop opens it with the same layers.

To put the person on a new background, click **Add Background** in the bar under the photo, or add a layer below Layer 0.

## Frequently asked questions

### Can I remove a background like in Photoshop without installing it?

Yes. Photopip runs in the browser and uses the same menu names: Select > Subject, Select and Mask, Add Mask. The result is a layer with a mask, and you can save it as a PSD that opens with its layers in Photoshop.

### Is there a one-click way?

Yes. With the photo layer selected, click Remove Background under Quick Actions in the Properties panel. It runs Select Subject and adds the layer mask in one step, so you can still refine the mask afterwards.

### Why does the hair edge look cut off?

Subject selection draws a fairly tight edge around hair. Open Select and Mask, turn on Smart Radius, raise Radius to 10–20 px, and paint over loose strands with the Refine Edge Brush Tool.

### Is my photo uploaded?

For Select Subject, a smaller copy of the photo (up to 2048 pixels on the long side) is sent to our server and the selection comes back. It is free and needs no account. Masks, Select and Mask and the export run in your browser.

### Why does my exported file have a white background?

JPG has no transparency. Export as PNG or WebP with Transparency on, or use File > Export > Quick Export as PNG.

## Next steps

- [Remove the background from a photo](https://photopip.com/remove-background/): Cut out the person or product and download it full size, free.
- [Edit the text and photos in a PSD file](https://photopip.com/tutorials/edit-psd-file/): Open a layered PSD in the browser, change the headline, put a new photo into the smart object, and save it as a PSD that still has its layers.
- [Resize an image in the Image Size dialog without losing quality](https://photopip.com/tutorials/resize-image-without-losing-quality/): Make a photo smaller for the web, set it up for print, or make a small one bigger, and know which setting changes the pixels and which does not.
