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.
The five tools, when to use which
- Pick bg colour: click any background spot to add its colour as a sample. Add as many as you need (e.g., one for the wall, one for the shadow). Then run Auto erase.
- Click-fill: click any region — the connected patch of that colour gets cleared. Perfect for one-off stray patches the auto pass missed, like a corner of bedsheet visible behind a shoulder.
- Erase brush: hold and drag to manually paint away pixels. Large brush for bulk, small brush for hairlines and earlobes.
- Restore brush: painted too much? Drag to bring the original pixels back. The original image is kept in memory so restore is always lossless.
- Rect erase: drag a rectangle to wipe everything inside it. Best for watermarks, timestamps, or removing a person standing behind your subject.
Every action is undoable — the editor keeps the last 25 states. Resetbrings you back to the original photo without losing the loaded image, so you can try a different approach without re-uploading.
Auto-erase algorithm
Auto-erase samples the pixel colours at the four corners and four edge midpoints (or uses the colours you picked in Pick bg colour mode). It runs a connected flood-fill from the canvas border inward — every pixel within tolerance of a sample gets cleared, but the fill stays connected so same-colour pixels inside the subject (white shirt, grey hair) are left intact. Pixels already cleared by manual edits are treated as background, so the fill keeps walking through them — meaning you can erase a tricky edge by hand and then run auto to mop up the rest.
A passport-photo workflow
- Upload a clear photo on a plain wall.
- Hit Auto erase. The bulk of the wall disappears.
- Use Click-fill on any leftover patches (around hair, under chin).
- Switch to the Erase brush (size ~12) to clean hair edges.
- If you nicked the face, Restore brush brings those pixels back.
- Pick White under "Replace background with", hit Render download and grab the JPG.
- For a govt-form size and KB cap, run the result through the Govt Form Photo Formatter.
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 — usually auto + a couple of click-fills.
- Hard: outdoor photos with sky + trees, hair against patterned backgrounds, anything where the subject and the background share a dominant colour — expect heavy brush work.
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.
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.
Can I erase a specific area or object, not just the background colour?
Yes — use the Erase brush to paint over any region, or the Rect erase tool to drag a rectangle around a watermark / object. The Click-fill tool wipes only the connected patch of the colour you click on, so you can erase one stray spot without touching the rest of the image.
I erased part of the face by mistake — can I get it back?
Switch to the Restore brush and paint over the area. The original image is kept in memory the whole session, so restore is lossless. The editor also keeps the last 25 states; the Undo button steps back through every action.
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 use Pick bg colour to click directly on the halo colour and re-run Auto erase. A small edge feather (6-12 px) also helps blend the boundary.
Will this work on outdoor or busy-background photos?
Best results come from photos with a plain wall, seamless studio backdrop or solid colour. For outdoor / busy photos the brush + rect-erase tools do the heavy lifting — it is a colour-based eraser with manual touch-up, 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. For exact dimensions and KB caps, pass the result through the Govt Form Photo Formatter.
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 and brush snappy on phones and laptops. The result is still high-resolution enough for any govt-form photo (which caps out at ~500 px) and for most web uses.