Remove White Background

Remove a plain white or single-color background from one image up to 50 MB. Get a transparent or solid-color PNG, processed locally without uploading.

Drop files here or choose files
Best on plain white, blue or red backdrops · one image up to 50 MB · stays on your device

A small patch is taken from each of the four corners and their per-channel median becomes the color to remove; fully transparent pixels are left out of the sample.

② Replace it with

Whatever format goes in, the result is a PNG — only formats like PNG can store transparency.

Color tolerance from 0 to 100, measured as distance in RGB. Higher clears more of the backdrop; lower protects colors that are close to it.

0–80. At 0 the edge is hard — each pixel is either kept whole or dropped whole; higher values spread the transition over a wider band.

Backdrop left behind? Raise the background strength. Hair or clothing disappearing? Lower it.

How to use

  1. Choose one image: Drop a single picture onto the box or click to pick it. The picker takes images only, up to 50 MB and about 100 megapixels. The original pixel size appears next to the file name once the image has been read.
  2. Say which color to remove: Leave Detect the background color automatically checked and the four corners of the picture decide. Uncheck it to choose the shade yourself with the Background color to remove picker — useful when your subject reaches into the corners.
  3. Pick what replaces it: Under Replace it with, choose Transparent, White, Blue, Red or Custom. Custom opens a color picker and a HEX box, so you can match a brand or a form's required background exactly.
  4. Set the two sliders and run: Raise Background strength if backdrop is left behind, lower it if hair or clothing is being erased, and use Edge softness for how gradual the cut should be. Press Remove background, then download the result — photo.jpg comes back as photo-no-bg.png. On a phone, Save to device opens the system share sheet when the browser offers file sharing, and otherwise downloads the PNG.

Remove a white background without uploading the photo

This tool removes a plain white or single-color background from one image up to 50 MB. What you get back is a PNG at the original pixel size — either transparent or filled with white, blue, red or a color you choose — processed locally, without the picture being uploaded.

The decision behind it is a color key: the distance between a pixel and the background color in RGB space, and nothing else. Drop in one picture, say which color counts as the backdrop, and press Remove background; every pixel close enough to that color is cleared and everything further away is kept. That is why there is no model to download and no server in the loop — the file is decoded, rewritten and encoded by libvips compiled to WebAssembly (wasm-vips 0.0.18) inside the page itself, and the finished PNG is handed to you straight from your browser's memory.

This page uses cross-origin isolation so the image engine can access shared WebAssembly memory. One image goes through per run, up to 50 MB and up to roughly 100 megapixels (about 10000 × 10000). Drop several files at once and none of them is added — the box tells you how many were refused rather than silently taking the first.

The pixel loop runs on the page's main thread, so a very large photo can make the tab unresponsive for a moment; the button reads Removing background… while that lasts. Nothing is stored anywhere: closing or reloading the tab discards the result, and the download link dies with it.

Make the image background transparent, or change the background color

Transparent is the default. Choose it and the result is a four-channel RGBA PNG in which the cleared pixels have an alpha of 0 — the cut-out you want for a shop listing, a slide deck or a logo dropped onto a colored header. The checkerboard you see behind the preview is drawn by the page to mark those see-through areas; it is not written into the file.

The other four swatches fill the backdrop instead of clearing it. White (#ffffff), Blue (#438edb) and Red (#d9485f) are built-in presets. Check the receiving organization's requirements; use Custom when it specifies another color — it adds a color picker with a HEX box. To change the photo background color to blue, press Blue before you run the tool. A solid choice is composited rather than pasted: each pixel is mixed with the new color in proportion to how much of it survived, so edges blend into the new backdrop. The alpha channel is then dropped, which makes a filled result a three-channel, fully opaque PNG — there are no semi-transparent pixels left in it at all.

Which color gets removed is a separate question from what replaces it. Detect the background color automatically is checked to begin with: the tool takes a small square from each of the four corners — its side is a twentieth of the shorter edge, capped at 8 px and never below 1 px — and uses the per-channel median as the color to clear. On a picture shot against a #438edb backdrop it reads back [67, 142, 219]. Fully transparent sample pixels are skipped one at a time, so a PNG with one transparent corner still takes its reading from the other three; only when every sampled pixel is fully transparent does it fall back to white. Uncheck the box when the subject reaches into a corner and pick the shade yourself instead.

What Background strength and Edge softness actually do

Backdrop left behind → raise Background strength
Hair, fur or pale clothing vanishing → lower Background strength
Jagged, stair-stepped edge → raise Edge softness
Rim of the old backdrop around the subject → lower Edge softness
Crisp cut-out for a sticker or stencil → Edge softness 0

At the defaults (strength 32, softness 24):
distance 10 → removed · distance 44 → half kept · distance 80 → kept in full

Background strength is the tolerance: how far from the background color a pixel may sit and still be treated as backdrop. It runs from 0 to 100 and starts at 32. Edge softness is the width of the band in which a pixel is only partly kept; it runs from 0 to 80 and starts at 24. Both are measured in RGB, where the greatest possible distance between two colors is about 441, so the usable range is narrower than the sliders may suggest.

At the default pair, a pixel 10 away from the backdrop color is removed completely, one 44 away is kept at half strength, and one 80 away is kept in full. Pull Edge softness down to 0 and the boundary becomes a hard cut: with strength at 32, a distance of 32 is still backdrop and 33 is kept whole, with nothing in between. A distance exactly equal to the strength always counts as background, so if a stubborn fringe is sitting right on the line, nudging the slider up by one is enough.

Raising the strength widens the band that counts as backdrop, so it only ever clears more pixels, not fewer — in a 20 × 20 test image on a #438edb backdrop with softness at 0, each step up removed more. It barely touches the file size: the same 800 × 600 test PNG came out at 683,603 bytes at strength 0, 688,505 bytes at 32 and 701,537 bytes at 100, under 3% apart. Size is driven by the picture itself, not by how aggressive you were.

Reduce a heavy result with Compress Image; converting it to JPG removes transparency.

What the PNG keeps and what it loses

The geometry comes through untouched and the container does not: this tool rewrites color and transparency, then encodes a fresh PNG from bare pixels. The table sums up what that costs, property by property.

Expect photographs to get heavier. PNG stores the decoded pixels without further lossy compression and cannot restore detail already lost in a JPEG or WebP. The 541,541-byte 1200 × 800 test JPG came back at 2,319,088 bytes transparent (+328%) and 1,987,450 bytes on white (+267%), and a 194,060-byte WebP came back at 1,537,360 bytes (+692%). How much a particular picture grows — and whether its transparent version or its filled version is larger — depends on the content and on how the alpha ends up distributed, so read those as sample figures rather than a rule.

PropertyOutput
Pixel sizeUnchanged. The tool never scales, crops or rotates, so a 1200 × 800 photo comes back 1200 × 800, and subject pixels far from the backdrop keep their exact channel values — [10, 10, 10] on white came back [10, 10, 10, 255].
File formatAlways PNG at compression level 9, whatever goes in, and the download is named to match: photo.jpg becomes photo-no-bg.png. There is no format option, because transparency needs a container like PNG to live in.
TransparencyKept only with Transparent selected: the new alpha is the old alpha multiplied by how much of the pixel was kept, so a pixel can only become more transparent. Pick a solid color and the whole alpha channel is dropped, leaving a three-channel, fully opaque PNG.
Original EXIF / XMPNot carried over — GPS coordinates, capture time, camera model and any XMP block are gone, because the result is rebuilt from a bare block of RGBA bytes. Not a privacy wash, though: the PNG writer adds a 180-byte EXIF stub of its own, holding nothing but an orientation of 1 and a resolution, so a byte-level scanner still reports EXIF. To strip metadata deliberately, use the Photo info (EXIF) option in Compress Image.
EXIF orientationDropped, and the pixels are not turned to compensate. A phone photo stored as 64 × 48 with a flag saying 'rotate this 90°' comes back as 64 × 48 with no flag, so it can appear in a different orientation than the original did.
AnimationLost. An animated GIF or an animated WebP comes back as a single still PNG.

Pixel values and byte sizes come from the tool's own test images (Node 22, wasm-vips 0.0.18).

Turn a sideways phone photo upright with Rotate Image before or after clearing its background.

When a color key is the wrong tool

A color key compares colors and nothing else; it has no notion of a person, a product or a hairline. Gradient backdrops, patterned wallpaper and real outdoor scenes cannot be cleared tidily, because their pixels are not all near one color. A white shirt against a white backdrop, or a blue dress against a blue one, gets removed along with the background. Fine hair, tulle, smoke and glass sit between the two colors, so they either hold on to a rim of the old backdrop or are thinned out. For pictures like those, a brush-based editor or an AI cut-out is the honest answer, and no slider setting here will stand in for one.

The structural limits are worth knowing before you start. One image per run. One background color per run, so a two-tone or gradient backdrop is out of reach. There is no brush, mask or local patch-up — the whole frame goes through the same settings. There is no live preview either: each press of Remove background produces one result, and once it appears the controls are replaced by the result view, so changing a slider means pressing Start over and choosing the image again. Your settings are still where you left them when you do; only the file and the result are cleared. There is no undo button either: a transparent PNG still holds the background's RGB values behind an alpha of 0, while a solid color blends them away — so keep the original file and run it again when a setting needs changing.

Where it does shine is anything already shot or exported flat: product shots on a white sweep, ID and visa photos taken against a studio backdrop, scanned signatures and stamps, line art, and logos exported onto a flat white canvas. To remove the background from a logo like that, leave detection on, keep Transparent, and leave a little Edge softness so the anti-aliased outline does not turn jagged.

Frame the subject first with Crop Image when there is a lot of empty backdrop around it.

How this tool is checked

  • The logic behind this tool is covered by 26 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
  • Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
  • Your files are processed in your browser and are never uploaded to our server.
  • Formulas, figures and definitions are checked against the sources listed at the end of this page.

How we build and test our tools →

Frequently asked questions

Does this use AI to remove the background?
No — it is a color key, not an AI cut-out. Each pixel is compared with a single background color in RGB, and pixels close enough to it are cleared. That keeps it fast and private, with no model to download, but it also means the tool cannot tell a person from a backdrop. Plain, single-color backgrounds are what it is built for.
Can I remove a background that isn't white?
Yes. Detect the background color automatically samples the four corners and takes the per-channel median, so a blue or red studio backdrop is handled exactly like a white one. If your subject reaches into the corners, uncheck the box and choose the shade yourself with the Background color to remove picker.
How do I change my photo background to white, blue or red?
Press White, Blue or Red under Replace it with before running the tool. Those swatches are #ffffff, #438edb and #d9485f — the three built-in color presets — and Custom accepts any HEX value. A filled result is a fully opaque PNG, so there is no transparency left in it to worry about when a form rejects transparent images.
Why is my result a PNG, and why is it larger than the original?
The output is always a PNG: there is a single encoder path and no format option, because transparency needs a container that can store it. PNG is lossless, so photographs usually grow: our 541 KB test JPG came back at 2.3 MB transparent and 2.0 MB on white. Run the result through Compress Image if it is too heavy — but saving it as JPG would drop the transparency.
Are my pictures uploaded anywhere?
No. The image is read from your disk into the page, processed by WebAssembly code running in your browser, and offered back as a local file. There is no server in the loop, and the tool keeps no history of results — save the PNG before you close or reload the tab.
Part of my subject disappeared — what should I change?
Lower Background strength. Hair, pale clothing or skin that sits close to the backdrop color is being judged as background, and a smaller tolerance narrows what counts. If no setting separates them, the subject genuinely shares the backdrop's color and a color key cannot tell them apart; that picture needs a brush-based editor.
Can I remove the background from several images at once?
No, one image per run. Dropping several files at once adds none of them and reports how many were refused, so choose a single picture. For a batch, remove the current file with the ✕ beside its name, or press Start over on the result, then pick the next one — your slider settings stay as you left them.
Does it work on a phone?
Yes, in any current mobile browser. Save to device opens the system share sheet when the browser offers file sharing and simply downloads the PNG when it doesn't; if you dismiss the share sheet yourself, nothing is saved and you can tap the button again. Large photos take longer, because your phone is doing the work.

Add this tool to your website

Free for any website, personal or commercial. Paste the code where you want the tool to appear — it works on WordPress, Blogger, Google Sites, Notion and plain HTML.

This tool needs a browser mode that only works on its own page, so the embed shows a card with a button that opens it in a new tab.

<div class="gingertool-widget" data-embed="https://gingertool.com/embed/en/image/remove-background/" data-height="240" style="font-size: 13px; line-height: 20px; margin: 6px 0 16px; text-align: left">Remove White Background &#183; <a href="https://gingertool.com/en/image/remove-background/">Gingertool</a></div>
<script src="https://gingertool.com/embed.js" async></script>

Please keep the credit link below the tool. Embedded tools show no ads.

Step-by-step: Google Sites · Blogger · WordPress · Notion

Cite this tool

Using a result in a report, paper or assignment? Copy a ready-made reference.

APA
Gingertool. (2026). Remove White Background [Online tool]. Retrieved December 2, 2026, from https://gingertool.com/en/image/remove-background/
MLA
“Remove White Background.” Gingertool, December 2, 2026, https://gingertool.com/en/image/remove-background/. Accessed December 2, 2026.
BibTeX
@misc{gingertool-remove-background,
  author = {{Gingertool}},
  title = {Remove White Background},
  year = {2026},
  url = {https://gingertool.com/en/image/remove-background/},
  note = {Accessed: 2026-12-02}
}