Skip to content
Free Indian Tools

Daily · Free tool

Background Eraser

Upload a photo and the tool wipes out the background — keep it transparent, swap it for plain white for a passport / PAN photo, or pick a custom colour. Everything runs in your browser; the photo never leaves your device.

Photo never leaves your browser. All processing happens locally on your device.

How the eraser works

The tool reads the colour of pixels on the canvas edges (top, bottom, left, right) and treats those as the background sample. It then runs a connected flood-fill from the border inward: every pixel close enough to the sample colour gets marked transparent. Because the fill is connected, pixels of the same shade inside the subject — like a white shirt or grey hair — are left untouched, which is the difference between a chroma-key style remover and a true edge-aware one.

The tolerance slider controls how strict the colour match is. A plain-white wall behind you needs a tolerance of ~25-35. A gradient or busy backdrop needs 60+. The feather slider softens the cut-out edge by ramping the alpha channel — useful when you plan to paste the cut-out onto another image.

When to click the background manually

Auto-detect samples the four corners + four edge midpoints. That covers most photos. Use the click-to-pick mode when:

  • The background has more than one colour (e.g., a window in one corner).
  • Your subject touches an edge, so the corner-sample picks up clothing or skin.
  • The auto-pass leaves a halo around the subject — click the halo to add that shade as another background sample.

Good photos vs hard photos

  • Easy: studio passport shots, product photos on white seamless, screenshots with a flat backdrop.
  • Workable: selfies against a plain wall, profile photos, ID-card mugshots.
  • Hard: outdoor photos with sky + trees, hair against patterned backgrounds, anything where the subject and the background share a dominant colour.

For hard photos, expect to raise tolerance, add multiple click samples, and accept some touch-up afterwards in any image editor. The flood-fill keeps your subject intact even on aggressive settings, so over-erasing the background is safe.

Privacy and what leaves your device

Nothing. The image is read by your browser using FileReader, pixels are processed on a <canvas> element in JavaScript, and the result is downloaded back to your machine. No server upload, no third-party API, no tracking of the image. Close the tab and the photo is gone. If you want to format the cut-out into a government-form-ready size, run it through the Govt Form Photo Formatter next.

FAQ

Is my photo uploaded to a server?

No. The eraser runs entirely in your browser using a canvas — your image is never sent to any server or third-party API. Close the tab and it is gone.

Why does the cut-out have a halo around the subject?

The background tolerance is set too low. Raise the tolerance slider by ~10, or click directly on the halo colour to add it as another background sample, then re-run.

Will this work on outdoor or busy-background photos?

Best results come from photos with a plain wall, seamless studio backdrop or solid colour. Outdoor photos with sky + trees + buildings need a heavy tolerance and usually some touch-up after — it is a colour-based eraser, not an AI subject-segmentation model.

Can I save with a white or sky-blue background for an Indian govt form?

Yes. Pick "White" or "Light blue" under "Replace background with" and the cut-out is composited onto that colour before download — exactly what UPSC, passport and most state govt forms expect.

Why does the tool resize my photo before processing?

Anything larger than 1600 px on the long edge is scaled down to keep the flood-fill snappy on phones and laptops. The result is still high-resolution enough for any govt-form photo (which capsout at ~500 px) and for most web uses.