BG Studio On-device · No upload
Back to the app

How BG Studio works

BG Studio removes and replaces image backgrounds without uploading your photo anywhere. The first time you use it, your browser downloads a small (~4.6 MB) neural network — U2-Net-p, an open salient-object detection model — and runs it locally with WebAssembly via onnxruntime-web. From then on, every pixel operation (matting, background compositing, brush refinement, color adjustment, export) happens on your own device.

The pipeline

  1. Detect. Two on-device models share the work: MODNet, a portrait-matting network running at 512×512, handles people; U2-Net-p handles general objects at 320×320. Auto mode tries the portrait model first and falls back when its result is not confident (you can override this in the Edit section). A second pass then re-runs the chosen model on just the detected subject region, so the subject gets the model's full resolution.
  2. Matte. The mask is upscaled to your photo's resolution, sharpened against the image's real edges with a guided filter, cleaned of stray specks, and applied as an alpha channel, producing the cutout.
  3. Refine. Erase / restore brushes let you fix any spots the model missed, with undo and redo.
  4. Compose. Choose a transparent, solid, gradient, image, or blurred background; move, scale, rotate, or mirror the subject; add a soft shadow or one-click color enhancement.
  5. Export. Save as PNG (keeps transparency), JPEG, or WebP.

Privacy

There is no upload endpoint, no account, no analytics, and no server-side image processing. The only network requests are for this app's own static files. Very large photos are edited at up to 2400 px on the long side to stay fast in the browser. Closing the tab discards everything.

Limits worth knowing

Credits & licences

Demo photo credits

The try-it demo photos are CC0 / public-domain images from Wikimedia Commons, resized for this app. No attribution is legally required for CC0/PD works; sources are credited anyway:

The built-in background gallery holds 38 CC0 photos from the same collection — three or four per category across Colorful, Beach, Sunset, Wall, Grass, Snow, Flowers, Street, Bokeh and Wood — each individually reviewed for backdrop suitability (no people, no readable text or brands, no dominant foreground subject) and resized for this app. Every photo and photographer is listed in models/NOTICE.txt.