Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Image Processing
  3. Image Background Remover
Add to favorites

Image Background Remover

Remove a background with a model or with a colour key that has a real alpha ramp, scored against a corpus whose right answer was chosen rather than found.

Edits stay in your browserMore image processingJump to full guide

Related reading

  • Image Background Removal: Techniques and Best Practices12 min read

Initializing in your browser…

You might also like

Image Metadata Remover

Remove EXIF, GPS, XMP and IPTC by rewriting the container rather than re-encoding the picture, so the pixels are byte-for-byte identical and the file gets smaller. Selective removal, batch mode and a ZIP.

Image to Base64

Turn an image into a data URL whose payload is decoded again and compared byte for byte with the file, with the media type taken from the file's own signature rather than its extension and the size cost of embedding stated in full.

Image Diff Comparator

Compare two images with a perceptual engine (pixelmatch) that ignores anti-aliasing, or an exact byte engine. Groups changes into regions with bounding boxes, reports SSIM, and handles size mismatches with an explicit policy.

Image Background Remover: a worked example

A known foreground composited onto a known background at a known alpha, so the right answer for every pixel is the number the compositing used.

Input

480 x 360 · 113,442 background pixels, 54,995 foreground, 4,363 partly both
What Image Background Remover produces

What came back, scored against that alpha

                      threshold    ramp     model
background removed      113,442 113,442   113,343
subject kept             54,995  54,995    48,040
soft edge recovered           0     537       990
worst pixel, of 255         211      95       255
seconds                     0.1     0.1      12.4

on a graduated background
background removed       67,034 113,442   113,243
mean error, of 255        69.93    5.30     12.31

The colour key was already perfect at the two things it is asked to do on a flat background, and that is recorded rather than claimed as a fix. What a hard threshold cannot do at all is a soft edge: a pixel that is part background and part subject sits at a middle distance and a threshold can only call it one or the other, so all 4,363 of them kept the background colour. The ramp is now fitted to the picture, and on a background whose corners differ the old four-corner average left 46,408 background pixels behind.

About the Image Background Remover

Remove a background with a model, or with a colour key that has a real alpha ramp fitted to the picture. The page reports how many pixels it removed, how many it kept and how many edge pixels came back partly transparent, and how long the model took.

How to use

  1. 1Upload the picture
  2. 2Choose the model for a photograph, or the colour key for a flat or graduated backdrop
  3. 3For the colour key, let the ramp fit itself or drive the tolerance and ramp by hand
  4. 4Press Remove Background; the page reports what it did and how long it took
  5. 5Put the cut-out on a new background: transparent, a colour, a gradient, a blur or another picture
  6. 6Download the PNG

Where this helps

  • Product photography

    Cut a product off its backdrop for a listing, with the fringe removed rather than left on the edge.

  • Portraits and avatars

    Let the model find the subject in a photograph where no single background colour exists.

  • Green screen stills

    Key a chroma green frame with a ramp, comparing colour alone so shadows survive.

Key features

  • A colour key with a real alpha ramp, fitted to the picture with Otsu’s threshold
  • Spill suppression, so the edge does not keep the background’s colour
  • A choice of what to compare: colour and brightness, or colour alone
  • The disagreement between the four corners measured and reported, not averaged away
  • The number of pixels removed, kept and partly both, on the page
  • A model for photographs, with the elapsed time reported
  • Backgrounds to put back: transparent, solid, gradient, blur, or your own picture
  • Everything in the browser, with nothing uploaded

Tips & best practices

  • On a flat or graduated backdrop the colour key is both faster and more accurate than the model, and it runs in a tenth of a second.
  • "Fit the ramp to the picture" is on by default and is what recovers an antialiased edge. Turn it off to drive the two sliders yourself; the page prints what the fit chose either way.
  • If the page says the four corners do not agree, pick the colour you mean with the eyedropper rather than trusting their average.
  • "Colour only" ignores how bright a pixel is, which keeps a shadow on a green screen rather than cutting a hole in the subject.
  • The model takes about twelve seconds the first time, most of it downloading. The page shows the seconds when it is done.

Examples

  • A product shot on a plain backdrop

    Choose Color Based and press Remove Background. The corners give the backdrop colour, Otsu fits the ramp, and the panel reports how many pixels were removed, how many kept, and how many came back partly transparent.

  • A photograph of a person

    Leave the mode on AI. The model downloads once and takes about twelve seconds, and the page shows the elapsed time when it finishes.

  • A backdrop that is not one colour

    The page says the four corners differ by up to 40 of 255 and that their average may appear nowhere in the picture. Pick the colour you mean with the eyedropper, or let the fitted ramp handle it: the graduated fixture now comes back with every background pixel removed.

How it works

A background remover is one of the few image tools whose right answer can be CONSTRUCTED rather than found. Composite a known foreground onto a known background at a known alpha, save the alpha map beside the picture, and every pixel of the result has an answer that is arithmetic: the number the compositing used. That is the corpus this page is scored against, and it settled three things.

**The colour key was already perfect at the two things it is asked to do.** On a foreground composited onto flat chroma green it removed 113,442 of 113,442 background pixels and kept 54,995 of 54,995 subject pixels, and the same on flat white. Recording that is worth as much as a fault would have been, because it moved the pass to the two places the key really failed.

**A hard threshold cannot key a soft edge, by construction.** The alpha was set to 0 or left at 255 and nothing in between, so every pixel that was PART background in the original kept the whole background colour: of the 4,363 partly transparent pixels in the fixture it recovered none, and the worst pixel was 211 levels of 255 away from the truth. That is what a green fringe is. The alpha is a RAMP now, and the ramp is fitted to the picture rather than guessed: the two clusters are separated with Otsu’s threshold, the same one this project’s OCR preparation uses to binarise a page, and the ramp runs from the background’s own noise floor to the distance of the NEAREST part of the subject. Compositing is linear, so a pixel half way between the two in colour really is half transparent, and stopping at the nearest part of the subject is what keeps the subject itself solid. Measured after: 537 edge pixels recovered where there were none, the worst pixel down from 211 to 95, and the subject still 54,995 of 54,995.

**A background colour has to be found, not assumed.** The old mode averaged the four corners, which on a background whose corners are four different colours gives a colour that appears nowhere in the picture: it removed 67,034 of 113,442 background pixels and left the rest, at a mean error of 69.93 of 255. The corners are still sampled, but their DISAGREEMENT is measured and printed, and with the ramp fitted the same picture now comes back with all 113,442 removed at a mean error of 5.30.

Spill is suppressed by name rather than left in: an edge pixel is a mixture, so it carries the background’s colour, and removing that contribution in proportion to how transparent the pixel is takes the fringe with it. There is a choice of what to compare, too: colour and brightness together, which is what most tools mean, or colour alone, which ignores how bright a pixel is and so keeps a shadow on a green screen rather than cutting a hole in the subject.

The model is the other mode, and it is TIMED, because a background remover downloads tens of megabytes and that is exactly where a progress bar stops moving and nothing says why. Measured here it returns in about 12 seconds including the download, removes over 99 percent of the background whatever the background is, and produces a soft edge of its own: 990 of the 4,363 edge pixels came back partly transparent. On this synthetic corpus of flat colours it keeps less of the subject than the colour key does (48,040 of 54,995), which is what you would expect of a model trained on photographs of people and objects rather than on discs, and it is stated rather than hidden. Use the model on a photograph and the colour key on a flat or graduated backdrop.

The cut-out can then be put on a new background: transparent, a solid colour, a gradient, a blurred copy of the original, or another picture. Everything runs in the browser and nothing is uploaded.

Frequently asked questions

Which mode should I use?

The colour key for a flat or graduated backdrop: it is a tenth of a second and, measured against a corpus whose alpha was chosen in advance, it removed every background pixel and kept every subject pixel. The model for a photograph, where no single background colour exists.

Why did the old version leave a coloured fringe?

Because it set the alpha to 0 or left it at 255 and nothing in between. A pixel that is part background and part subject sits at a middle distance from the background colour, and a threshold can only call it one or the other, so it kept the whole background colour. On the test fixture that was all 4,363 partly transparent pixels.

What does "fit the ramp to the picture" do?

It separates the background and the subject with Otsu’s threshold, then runs the ramp from the background’s own noise floor up to the distance of the nearest part of the subject. Compositing is linear, so that recovers the fraction directly, and stopping at the NEAREST part is what keeps the subject solid.

How long does the model take?

About twelve seconds here, most of it downloading, and the page shows the number when it is done. A model that downloads tens of megabytes is exactly where a progress bar stops moving and nothing says why, so it is timed.

Is the model always better?

No. On a corpus of flat colours it kept 48,040 of 54,995 subject pixels against the colour key’s 54,995, because it is trained on photographs rather than on flat shapes. It is better at a picture with no single background colour, and it produces a soft edge of its own.

Is my picture uploaded?

No. The model runs in your browser and the colour key never leaves the page.

Related tools and how they differ

  • Image Annotator: Marks a picture up rather than cutting it out.
  • Image Collage Maker: Puts several pictures together once you have the cut-outs.
  • Screenshot Beautifier: Puts a background BACK, as a gradient, a card and a frame.

Further reading

  • Image Background Removal: Techniques and Best Practices12 min read

Private by design

Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.