How to Remove the Background from a Photo (Free, No Upload)
Cutting a subject out of its background used to mean tracing it by hand with a pen tool. Today a small AI model can do most of the work in a few seconds, right in your browser. This guide explains what that model is actually doing, walks through a cut-out step by step, and shows how to fix the edges it gets wrong.
When removing a background is worth it
A cut-out is useful any time the subject matters and the surroundings do not. The most common reasons are:
- Product photos. Marketplaces and online shops often ask for a plain white or light background so listings look consistent. Removing a cluttered kitchen counter behind a mug is faster than reshooting it.
- Profile pictures and headshots. A clean, neutral backdrop (or a brand color) makes a casual phone photo usable on a résumé, a team page or a conference badge.
- Stickers and graphics. Messaging stickers, slide decks and thumbnails need the subject on transparency so it can sit on top of anything.
- Compositing. Placing a person or object into a different scene starts with isolating it cleanly, then matching light and color in an editor.
If you only need to hide a distracting background rather than remove it, a blur is often the better choice: it keeps the photo looking natural and avoids edge problems entirely.
How automatic background removal works
The tool does not “know” what a background is. It runs a segmentation model: a neural network trained on many photos where people had carefully marked which pixels belong to the subject. From that training it learned to estimate, for every pixel in a new photo, how much of that pixel is subject and how much is background.
The output is called a matte, or alpha mask: a grayscale image the same size as your photo. White means “keep this pixel,” black means “make it transparent,” and the grays in between mean partly transparent. Those in-between values are what make hair and soft edges look natural instead of cut out with scissors. The tool then copies the matte into the photo’s transparency channel, and the background disappears.
In Photoyam, this model runs on your device, inside the browser tab. The first time you use it, the browser downloads the model file (4.4 MB) and caches it. After that, the only thing doing work is your own computer or phone. Your photo is never sent to a server, which matters if it is a client’s product shot, an ID photo or anything personal.
Step by step: remove a background in Photoyam
- Add your photo. Go to the Remove Background tool and click Choose images, or drag files onto the page. The first photo opens right there in the page; if you picked several, a Next image button takes you through them one at a time.
- Let the cut-out run. There is no button to press: the background removal starts as soon as the photo opens, with Method on Auto. A one-line note says whether Auto chose Solid color or AI; click the other one to override it. On the very first AI run the photo shows Downloading the AI model with the megabytes done and the time left, then Removing background…. If the model is unsure, for example it left much of the subject see-through or kept scattered pieces, the page says so and offers Pick the subject yourself and Try High quality; you can still download the result as it is.
- Compare before and after. When it finishes, drag the slider across the image: the Original side shows your photo, the Result side shows the cut-out on a checkerboard, the usual way editors show transparency.
- Touch up mistakes. The row above the image switches from Compare to a brush: Restore paints back a part the cut-out lost, Erase paints leftover background away, and Tap to remove clears every connected pixel of the color you tap. The brushes have their own Size and Soft edge settings, and Undo (Ctrl+Z) and Redo step back and forward one touch-up at a time.
- Tune the edge. Under Edges, Shift edge moves the whole outline in or out by up to 20 pixels. A small negative value (−1 to −3) trims a halo of the old background; a positive value grows the edge back if the model cut into the subject. Feather (0 to 20 pixels, default 0) softens the boundary, which helps hair and fur but makes hard objects look slightly out of focus, so raise it only as far as needed. Clean edge color and Refine edges at full size are on by default; untick one to see what it changed.
- Pick a background. Leave Transparent for stickers, logos and compositing. Choose Color and click a swatch (white is the first one) or pick any color, for example for marketplace listings. Blur keeps the original background but blurs it, with a slider for the strength: a quick portrait-mode look. Photo puts a picture of your own behind the subject. Below, Shadow (with its own Shadow softness) and Framing (square, 7:9 portrait or a close crop) shape the finished file; a small preview shows it.
- Download.
A transparent result is saved at the original size as a PNG, or as a WebP if you pick it
under Save as. With a color or blurred background you can choose JPG,
PNG or WebP. The button names the format (for example Download
PNG), and the file is saved with
-no-bgadded to the original name, so it will not overwrite your photo.
Getting cleaner edges
On most photos the automatic pass gets the shape right, and what is left to fix sits at the edge. Each kind of edge has its own fix.
Hair and fur
Loose strands are partly transparent in real life, and the matte captures that with gray values. Keep Shift edge at 0 or only slightly negative so those strands survive, and add a pixel or two of Feather if the outline looks cut out. If a few stray hairs pick up the old background color, placing the cut-out on a background with similar brightness hides it far better than trimming the hair away.
Glass, veils and smoke
A wine glass is transparent, so the “correct” matte is gray across the whole bowl, and the background shows through it. Automatic tools usually make it either solid or invisible. For product shots, paint the glass back fully on the layer mask in the Pro editor and accept a slightly solid look, or shoot it against a plain white backdrop in the first place.
Low contrast between subject and background
A white shirt against a white wall, or a black cat on a dark sofa, gives the model very little to go on. Expect to fix these edges by hand in the editor: zoom in, set a small brush and paint along the outline of the layer mask in short strokes. If you are still taking the photo, a background that contrasts with the subject saves more time than any edge trick.
Shadows
The model treats a cast shadow as background and removes it, which can make a product look like it is floating. Raise Shadow under the background choices for a quick, even one, and set how blurred it is with Shadow softness; for a shadow that matches the light, paint it in the editor on its own layer.
Hard cases: finish the job in the Pro editor
The quick tool’s brushes offer only a size and a soft edge, with nothing to select by color range or refine around hair. For that level of control, open the photo in the Photoyam Pro editor (or click Edit further in the Pro editor in the tool), and work with a layer mask, the same way you would in Photoshop. There are two quick starts:
- Layer › Remove Background runs the same AI model on the active layer and adds the result as a layer mask, in one undoable step. Nothing is deleted: the background is only hidden. A locked Background layer is turned into a normal layer first.
- Select › Subject runs the model too, but gives you a selection instead, so you can refine it before you commit to a mask.
For difficult edges, build or refine the selection yourself:
- Select the subject with Select › Subject, the Quick Selection or Magic Wand tool (W), or Select › Color Range… if the background is one solid color.
- Open Select › Refine Edge… and turn on Smart Radius and increase Radius around hair so the edge adapts to detail. Use Shift Edge to nudge the whole edge in or out, and switch the view to On Black or On White to spot halos.
- Set Output To to Layer Mask. The background is hidden, not deleted.
- Paint on the mask with the Brush: black hides, white reveals. This is where you bring back an ear or a strap the model removed, or hide the gap between an arm and the body. The mask’s Feather and Density settings in the Properties panel soften or weaken it globally.
The editor works at the photo’s full resolution, and because a mask is non-destructive, you can keep refining it later. When you are done, use File › Export As › PNG to save the transparent result.
Which file format to save in
Transparency only survives if the file format supports it. This is the single most common reason a “transparent” cut-out shows up with a white or black box.
| Format | Transparency | Best for |
|---|---|---|
| PNG | Yes, full soft edges | Stickers, logos, design files, anything you will edit again. Lossless, so files are larger. |
| WebP | Yes, full soft edges | Websites and online stores: usually much smaller than PNG at similar quality. |
| JPG | No | Final images on a solid background, such as a white product shot. Transparent areas are filled with a solid color. |
A practical rule: keep a PNG as your master copy, then convert it to WebP for the web, or to JPG only after you have chosen a solid background.
Common mistakes
- Saving as JPG and expecting transparency. JPG cannot store it; the background comes back as a solid color.
- Pushing Shift edge far negative to kill a halo. It also eats hair and thin details. Use a pixel or two, then fix the remaining spots on a layer mask in the Pro editor.
- Starting from a tiny image. A cut-out from a 400-pixel thumbnail will look soft when enlarged. Start from the largest original you have.
- Ignoring the new background. A subject lit by warm indoor light looks pasted on over a cool blue sky. Match the light, or choose a neutral backdrop.
- Judging the edge only on the checkerboard. Check it against both a light and a dark background before you publish; each reveals different flaws.
Try it in Photoyam
Remove a background in your browser, tune the edge, and download a transparent PNG at your photo’s full size, or put the subject on a color or a blurred backdrop. Free, no sign-up, and your photo never leaves your device.
FAQ
Is my photo uploaded when I remove the background?
No. The cut-out model runs inside your browser tab. The only download is the model itself, fetched once on first use and then cached. Your image stays on your device.
Why does my cut-out have a thin light or dark outline?
That fringe is leftover background color in semi-transparent edge pixels. Check that Clean edge color is ticked under Edges; it takes the old color out of those pixels. If a rim remains, move Shift edge a pixel or two to the negative side. For hair, a little softness usually looks more natural than a hard trim.
What resolution is the result?
The full size of your original. The AI looks at a smaller copy of the photo, and its mask is then fitted to the edges of the full-resolution image, so a 4000 by 3000 photo downloads as a 4000 by 3000 cut-out. The practical limit is your device's memory.
Can I get a white background instead of a transparent one?
Yes. Set Background to Color and click the white swatch, or pick any color with the color picker. With a solid color you can save a JPG or a PNG, and the background is baked into the file. Blur keeps the original background but blurs it, and Photo puts another picture behind the subject.