← Back to Tools
🌫️

Background Remover

AI-powered background removal

Loading tool...

Quick start: remove a background in under a minute

  1. Upload — Drop a JPEG, PNG, or WebP photo (up to ~20 MB). Larger files are auto-scaled before inference.
  2. Wait for inference — ONNX Runtime Web runs the U²-Net model locally. First visit downloads ~10 MB; after that, cached.
  3. Download — Export a full-resolution transparent PNG. No watermark, no size cap.

The stack: @imgly/background-removal + ONNX Runtime Web + U²-Net

This tool runs the open-source @imgly/background-removal library compiled to WebAssembly, powered by ONNX Runtime Web — the same runtime family used in production ONNX deployments. Instead of uploading your photo to a cloud API, a U²-Net variant segmentation model (~10 MB) downloads once to your browser cache and classifies every pixel locally: foreground subject vs. background.

U²-Net (U-squared Net, 2020) uses a nested U-Net architecture — smaller U-Net blocks inside larger ones — to capture both fine edge detail and global scene context in a single pass. It was trained for salient object detection: finding the most visually prominent subject and producing a pixel-accurate alpha mask.

What happens during inference

StageWhat runsWhere
1. DecodeBrowser decodes JPEG/PNG/WebP into a raw pixel bufferMain thread
2. Pre-processImage is resized if needed; normalised for model inputWeb Worker
3. ONNX inferenceU²-Net model classifies each pixel (foreground vs background)WebGL or WASM via ONNX Runtime Web
4. Post-processSegmentation mask is smoothed and composited onto transparent canvasWeb Worker
5. ExportCanvas exports lossless PNG with full alpha channelMain thread

No stage sends image data to a network endpoint. The only network call on first load is downloading the cached ONNX model file.

Input formats and practical limits

FormatSupportedNotes
JPEGYesBest for photos; no alpha in source
PNGYesPreserves source quality; transparency in source is ignored (model segments subject)
WebPYesLossy and lossless WebP both work
GIFNoAnimated frames not supported in current build

Files up to ~20 MB process smoothly. Larger images are downscaled before inference to keep processing under ~8 seconds on mid-range hardware.

Cloud vs on-device: why it matters

Cloud (remove.bg, etc.)PDFBucket (this tool)
PrivacyYour photo leaves your deviceZero upload during processing
SpeedUpload + queue + downloadInference only — no network wait
ResolutionFree tiers often cap outputFull native resolution
ModelProprietary server-sideU²-Net via ONNX Runtime Web

Because inference runs in your browser tab, this is the right choice when the photo contains faces, confidential product designs, or sensitive documents.

Common workflows

E-commerce product listings: Amazon, Etsy, and Shopify require clean white or transparent backgrounds. Remove the background here, then composite onto white — or upload the transparent PNG directly if your platform supports it.

Professional headshots: Replace a cluttered office background with a solid brand colour or neutral blur for LinkedIn, ID cards, or speaker bios.

Design and collage work: Extract subjects from reference photos for mockups, presentations, and social graphics without opening Photoshop.

FAQs about Background Remover

Everything you might be wondering — answered.

Which AI model does this use?+
The tool uses a U²-Net-based segmentation model compiled to the ONNX format and executed via ONNX Runtime Web. It was designed specifically for salient object detection (separating the main subject from backgrounds) and handles complex edges like hair and fur much better than simple colour-threshold approaches.
Why does it take a few seconds on first load?+
The first visit downloads the ~10 MB ONNX model file and caches it in your browser. Every subsequent use skips the download entirely — the model loads from your local cache in under a second.
Can I download in full resolution?+
Yes. The canvas is drawn at the source image's native dimensions. The exported PNG is pixel-for-pixel identical in size to what you uploaded, minus the background pixels (replaced with transparency).
Does the tool work on product photos with complex edges?+
Generally yes. The U²-Net model was trained on a wide range of salient object types — portraits, products, animals, vehicles. Results are best when the subject has reasonable contrast against the background. Very low-contrast or camouflaged subjects may need manual cleanup.