Background removal

How to Remove a Photo Background Online (and When Not To)

Published Updated 8 min read By Pradeep Maskeri

Removing a background takes a few seconds with an AI model, but the result depends heavily on the photo you start with and on checking the edges afterwards. This guide shows the steps in Pixemon, which model to pick, how to judge the result, and the one situation where you should not use background removal at all: official ID photos.

Three versions of the same close-up portrait: the original with a beach behind her, the cut-out on a checkerboard showing transparency, and the cut-out on a solid blue backdrop.
The same portrait processed in Pixemon with the Studio HD model: the original, the transparent cut-out, and the cut-out on the built-in blue backdrop. Look closely at the bottom right of the third image: some blue shows through the thin white fabric. That is the kind of edge to check before you use a result.

What happens when you press Remove Background

An AI segmentation model looks at every pixel and estimates how likely it is to belong to the subject. Pixemon turns that estimate into a transparency mask: subject pixels stay, background pixels become transparent, and pixels on soft edges such as hair become partly transparent so the outline does not look cut with scissors.

The model runs in your browser. The first time you use a model, the browser downloads it and keeps it for next time, so the first run is slower than later ones. Your photo is processed on your device rather than uploaded to a server for the cut-out.

Step by step in Pixemon

  1. Open your photo in the Pixemon editor. Use the original file from your camera or phone where possible; screenshots and photos sent through chat apps have fewer pixels and softer edges.
  2. Choose the AI model. On a computer the model menu is in the tools panel; on a phone, swipe the tool cards to Remove background.
  3. Press Remove Background (AI) and wait for the progress bar to finish. The removed areas show as a grey and white checkerboard.
  4. Check the edges at full size, especially hair, hands, glasses, and thin or see-through clothing (more on this below).
  5. Choose what goes behind the subject, or save it with a transparent background.

Which model should you choose?

Pixemon offers three background-removal models. They trade download size against detail:

Model Download Best for
AI Model A (default) Fetched on first use General photos of people, pets, and objects
Studio HD AI About 40 MB Portraits where hair and soft edges matter
Fast Portrait About 2.8 MB A quick result on a slow connection; simpler photos

When we tested the close-up portrait above, Studio HD separated individual strands of hair from the sea and sand behind them. Fast Portrait, on the same photo, removed only part of the background. If the first result is not clean, try another model before spending time on manual fixes. You can also load your own compatible model file from your computer with Load from Disk (.onnx).

Photos that cut out cleanly

The model has to decide where the subject ends. You can make that decision easier before you take the photo:

Transparent PNG or a new backdrop?

After the cut-out you have two choices.

Keep it transparent

Choose PNG when you save a cut-out: PNG keeps transparency, while JPG fills transparent areas with white. A transparent cut-out is the right choice when you will place the subject on something else later: a slide, a poster, a product listing template, or a Pixemon collage.

Replace the background

Under Replace background there are three options:

For plain studio backdrops that the AI handles poorly, the Chroma key fallback lets you sample the background colour with the eyedropper and remove pixels close to it instead.

Check the edges before you use the result

Look at the result at full size, not just as a thumbnail. These are the places where cut-outs usually go wrong:

If an edge is wrong, try another model, retake the photo with more separation from the background, or choose a backdrop colour close to the original so small errors are less visible.

Do not use background removal on official ID photos

It is tempting to fix a passport or visa photo by swapping the background for plain white. Most authorities do not allow it. The US Department of State tells applicants not to digitally alter passport photos, and Canada's guidance excludes altered photos. Replacing a background is an alteration, even when the result looks natural.

If an official photo needs a plain background, take a new photo against a plain wall or use a photographer. Pixemon's passport print layouts are for arranging an unaltered photo on a print sheet; see our passport photo size guide for official sources.

Using the cut-out in a layout

Once you are happy with the result, you can place it straight into a Pixemon collage or print layout without leaving the editor. A transparent subject on a soft-coloured backdrop often works better in a collage than the original busy background, because it keeps attention on the person.

Common questions

Why is the first background removal slow?

The browser is downloading the model. Later runs use the saved copy and start much faster.

Will I lose quality?

The subject keeps the pixels of your original photo. Saving as PNG avoids adding compression artefacts.

Can I remove the background from a product photo?

Yes. Objects with clear edges on a contrasting surface usually cut out well. Shiny or transparent products, such as glass bottles, are harder and need careful checking.

Try it with your own photo

Open a photo in Pixemon, choose a model, and press Remove Background. The processing happens in your browser.

Open the background remover

Related guides: passport photo sizes and official sources and fixing photo colour and brightness.