Remove the background.
Nothing leaves your device.

Drop a photo and NearBG cuts out the background right in your browser, using an on-device ML model. Nothing is ever uploaded to a server.

Drop an image here
or

or press Ctrl+V to paste

→ 0 files sent to a server · background removal runs on your device

LIVE · this device
0 Buploaded
0files sent
WASMin-browser
retention

Why remove backgrounds in your browser?

Most background-removal tools upload your photo to a server to process it — which means someone else's computer briefly has your image. NearBG runs the entire segmentation model (U2Netp) on-device, in your browser, so your photo never leaves your machine. Works for portraits and product shots; outputs a transparent PNG you can drop onto any new background.

How NearBG works

  1. Pick a photo — drop it onto the page, paste it with Ctrl+V, or use the file picker. PNG, JPEG and WebP images are supported.
  2. Your browser downloads the segmentation model (U2Netp, about 4 MB) once, from our own domain — never from a third party. That download is the model coming to your photo, not your photo going to a server.
  3. The model runs on your own device via WebAssembly and estimates, pixel by pixel, what is subject and what is background. Your photo never leaves your browser's memory.
  4. You get a transparent PNG to download — and if an edge needs fixing, a touch-up brush lets you erase leftover background by hand, with an adjustable brush size and a reset button.

Which photos work well — and when you'll want the brush

NearBG's model is a saliency segmenter: it looks for the visually distinct subject of the photo. That makes it strongest on portraits, product shots, pets — anything with reasonably clear subject-background separation. Busy backgrounds, low contrast between subject and backdrop, or several competing subjects give it a harder time: the model has to guess what you meant, and it can guess wrong.

An honest limitation: the mask is computed at a compact 320×320 resolution and then scaled up to your photo's full size, so extremely fine detail — individual hair strands, wisps of fur, semi-transparent things like glass or veils — can come out soft or partially kept. That is exactly what the touch-up brush is for: drag over any leftover background to erase it by hand. And to be clear about what NearBG doesn't do: there is no background replacement, no batch processing, and no resizing — it does one job, the cutout, and hands you a clean transparent PNG for whatever tool comes next.

Is my photo uploaded while it's being processed?

No. Processing happens in a Web Worker inside your own browser tab. The only network request the tool makes is downloading the model file from our own domain — and the page's Content-Security-Policy (connect-src 'self') technically prevents your image data from being sent anywhere.

What files can I use, and what do I get back?

You can drop, paste or pick a PNG, JPEG or WebP image. The result is always a PNG, because PNG supports a transparent (alpha) background — JPEG doesn't. On low-memory mobile devices, very large images are limited to avoid crashes.

What kinds of photos does it handle best?

Clear, well-lit subjects: people, products, pets. Fine hair, fur and transparent objects are the classic hard cases for any automatic background remover — if a few background pixels survive around the edges, the built-in brush erases them in seconds.

Part of Near