How to Remove an Image Background for Free Using Photopea

Turn a product photo into a reusable transparent PNG in Photopea. Select the backdrop, include enclosed openings, refine your mask, and check the exported image on two colors.
Watch the video tutorial
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
For a product against a nearly uniform backdrop, use Photopea’s Magic Wand to select the backdrop and any enclosed openings. Invert the selection, refine the boundary, and apply a raster mask. Save an editable PSD, then export a transparent PNG.
1. Open the practice photograph
Visit Photopea in a desktop browser. If the welcome screen appears, choose Start using Photopea. Choose Open From Computer, or drag a photograph onto the editor’s home screen. Check the document name and look for the image in Layers. Our example uses an AI-generated studio-style image of a teal ceramic mug on peach. The mask and export were made in Photopea.
Practice files: Open the original mug photograph (PNG) and open the finished transparent cutout (PNG). Save each image from your browser.
2. Select the backdrop, including the handle opening
Choose Magic Wand (W) on the left. If the slot shows another selection tool, open its tool group. Enable Anti-alias and Contiguous. Start with Feather at zero for this hard ceramic edge.
In Replace mode, click a clear peach area outside the mug. Contiguous limits the selection to connected pixels. Switch to Unite in the options bar and click the peach inside the handle. Check for a moving outline around both the outside of the mug and the handle opening. If the wand catches ceramic, undo the last click and lower Tolerance. Add missed backdrop shades individually to preserve pale product highlights.
3. Keep the mug and refine its edge
Choose Select → Inverse. Click Refine Edge in the options bar. Brush in the left preview and inspect the result on the right. Start with a narrow border. The tutorial uses 3 pixels on the 1,254-pixel-wide example.
With the gray Unknown brush, make one short stroke across the boundary between the base and its shadow. Release the mouse to inspect the result. Use Foreground on ceramic that must stay and Background on backdrop that must disappear. Preserve the highlight on the rim. For a portrait with flyaway hair, work in small sections and check each pass.
4. Apply a mask you can repair
Change the Refine Edge output from New Layer to Raster Mask and click OK. In Layers, click the black-and-white mask thumbnail next to the photo. Black on the mask hides pixels. White restores them.
Try a short black brushstroke inside the mug. You should see a checkerboard stripe. Choose Edit → Undo to reverse it. To repair an older mistake, paint white on the mask over the missing detail. If the stroke leaves black paint, undo it and click the mask thumbnail before continuing.
5. Save an editable copy and export a transparent PNG
Check for checkerboard outside the mug and through its handle. Hide any colored test layer with its eye icon. Use File → Save as PSD to keep your editable layers and mask.
Choose File → Export as → PNG. In Save for web, check the name, format, width and height. Keep the example at 1,254 × 1,254 pixels, give it a distinct name such as Mug-cutout, and click Save. Enlarging the export cannot recover missing source detail.
6. Check the downloaded file on cream and navy
Reopen the exported PNG. In Layers, create a blank layer and drag it below the mug. Select that layer, set the foreground color to cream, and use Edit → Fill with the foreground color. Repeat with dark navy. The new color should appear both around the mug and through its handle. Keep this test document separate from the clean export.
| What you see | How to fix it |
|---|---|
| Peach in the handle opening | Return to the mask and paint black inside the opening, or repeat the wand selection using Unite. |
| A white rectangle or checkerboard stays visible on both colors | Hide any opaque background layer and export as PNG. A checkerboard baked into the source must be masked like any other backdrop. |
| A pale fringe against navy | Inspect the mask locally and hide the surviving strip of peach with a small black brush. Preserve the rim highlight and export again. |
For a desktop alternative, see how to remove a white background from a product photo in GIMP. Photopea also explains its Refine Edge tool and layer masks.
Comments
Read or join the discussion.