unbagrnd is a free, open-source AI background remover that processes images locally on Windows, macOS, Linux, and Android.
It uses computer vision segmentation models through ONNX Runtime to create transparent cutouts without uploading your images to a cloud service.
You can process a single image or a batch, choose from six background-removal models, clean up cutout edges with brushes and feathering controls, edit the background, and export PNG, WebP, SVG, or a separate alpha mask.
After a one-time model download, the desktop and Android apps process images offline without an account or API key. You can also run unbagrnd as a self-hosted REST API.
How Local Background Removal Works
unbagrnd passes the selected image to its Rust backend for decoding and preprocessing. ONNX Runtime runs the selected segmentation model locally and converts its prediction into the alpha mask used for the transparent cutout.
Each model downloads the first time you select it. unbagrnd verifies the downloaded file with a SHA-256 checksum and stores it in the local app-data directory. Future processing uses the cached copy.
Available Background-Removal Models
unbagrnd currently includes six selectable models. Silueta is the default model and has the smallest download at about 44 MB.
| Model | Intended Image Type | Approx. Download |
|---|---|---|
| Silueta | Fast general-purpose background removal | 44 MB |
| U2-Net | General images with higher detail | 176 MB |
| BiRefNet General Lite | General images, fine edges, and hair detail | 224 MB |
| U2-Net Human | Portraits and people | 176 MB |
| U2-Net Cloth | Clothing and garment regions | 176 MB |
| IS-Net Anime | Anime and illustrated characters | 176 MB |
Single Images, Batch Jobs, and Manual Cleanup
For a single image, select a file and run background removal. unbagrnd displays the original image and processed cutout side by side, or in a comparison view with a draggable divider. The app remembers your preferred view.
You can paste a screenshot or copied image on Windows, macOS, and Linux using Ctrl+V or ⌘V, or select Paste image. If you copied an image file in Finder or Explorer, the result is saved beside the original file. Raw clipboard images are saved to Pictures/unbagrnd. The Copy button on the result screen or in the Background editor copies the cutout or finished edit, preserving transparency when present. On Android, image pasting is available through a long press.
Batch processing handles multiple files and desktop image folders. You can apply the same background color and drop shadow to every image, set output names with {name} and {index} templates, cancel a batch, retry failed files, and export the results as a ZIP archive. Gradient backgrounds, ID photo backdrop colors, and output-size presets can also be applied across a batch. Each image retains its own result entry for reviewing product photos, profile images, and other repeated cutout jobs.
The Refine editor provides erase and restore brushes for correcting the generated mask. Undo and redo controls let you return to earlier editing states when an edge needs several adjustments. The edge refinement controls can shift the boundary inward or outward, smooth uneven outlines, and feather the edge with a live preview. These adjustments help clean up fine areas such as hair and fur.
The Background editor can replace transparency with a solid color or linear gradient and apply an on-device drop shadow. Choose from six gradient presets, or customize the start color, end color, and angle.
Crop a cutout to the subject’s outline with adjustable padding, or use a fixed output-size preset. Marketplace presets include 1000 × 1000 and 2000 × 2000 squares. ID photo presets offer 2×3, 3×4, and 4×6 cm at 300 dpi, with red or blue backgrounds and the subject aligned to the bottom edge. Social presets include Instagram posts (1:1), Instagram portraits (4:5), stories (9:16), and 512 × 512 WhatsApp stickers.
PNG, WebP, and SVG Export
unbagrnd exports processed images as PNG, WebP, or SVG. You can also save the cutout’s alpha channel as a black-and-white mask for use as a layer mask in an image editor.
PNG and WebP can preserve transparency. SVG export places the processed raster image inside an SVG document.
Self-Hosted REST API for Developers
unbagrnd also runs as a self-hosted REST API built with Axum. The server uses the same Rust background-removal core and ONNX models as the app, making it useful for automating image cutouts in your own software. Images submitted to the API are processed on your own server.
To run the server with Docker Compose, clone the repository, copy its example environment file, and set UNBAGRND_ADMIN_KEY to a private value in .env:
git clone https://github.com/zidniryi/unbagrnd.git
cd unbagrnd
cp .env.example .env
# Edit .env and set UNBAGRND_ADMIN_KEY
docker compose up --buildBy default, the server listens on port 8080. Open http://localhost:8080/docs for the interactive Swagger API documentation. The selected model downloads on first startup and is cached on the server.
API requests use a client key. First, create one through the admin-protected key endpoint, replacing YOUR_ADMIN_KEY with the value you configured:
curl -X POST http://localhost:8080/v1/keys \
-H "X-Admin-Key: YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-image-app"}'The response includes an api_key, shown only when the key is created. Use that value for image processing:
curl -X POST http://localhost:8080/v1/remove-background \
-H "X-API-Key: YOUR_API_KEY" \
-F "[email protected]" \
--output result.pngThe single-image endpoint returns a transparent PNG. For multiple files, POST /v1/remove-background/batch accepts up to 10 images per request by default and returns JSON containing each image’s status and base64-encoded result. The batch limit is configurable through UNBAGRND_MAX_BATCH_SIZE.
Installation and First Use
To install the desktop or Android app, download the current release package for your platform from GitHub Releases.
- macOS: DMG for Apple Silicon
- Windows: MSI or EXE installer
- Linux: AppImage, DEB, or RPM package
- Android: Universal APK
Open unbagrnd and select an image. When the chosen model is not already stored on your device, the app downloads and verifies it before processing begins.
macOS Gatekeeper Warning
The macOS build is not code-signed or notarized. Gatekeeper can quarantine the downloaded application and report that it is damaged.
Move unbagrnd to Applications and run:
xattr -cr /Applications/unbagrnd.appPros
- Image processing runs locally.
- Free and MIT-licensed.
- Six models for different image types.
- Windows, macOS, Linux, and Android versions.
- Batch processing with shared backgrounds, retry controls, and ZIP export.
- Manual mask cleanup and edge smoothing or feathering.
- Clipboard paste and copy for desktop cutouts.
- Gradient backgrounds, subject cropping, and photo and social output-size presets.
- PNG, WebP, SVG, and separate alpha-mask export.
- Self-hosted REST API for automated background removal.
Cons
- Each model needs a first-time download.
- macOS builds require Apple Silicon.
- macOS releases are not signed or notarized.
- The REST API requires a self-hosted server and API-key setup.
Alternatives & Related Resources
- 10 Best Free AI Background Removers Compared
- Fast, Private, and Browser-Based AI Background Remover – Remove-BG
- Free Privacy-First Image Background Removal – BGNix
- Free Privacy-first Image Background Remover – CutItOut
FAQs
Can I use unbagrnd for commercial work?
Yes. unbagrnd uses the MIT license. The current background-removal model weights use MIT or Apache licensing that permits personal and commercial use.
Does unbagrnd work offline?
Yes, after the selected model has been downloaded. Each model requires internet access once for its initial download. Later background-removal jobs use the cached model on your device.
Where does unbagrnd store downloaded models?
Downloaded models are stored in the app-data directory:
- macOS:
~/Library/Application Support/com.unbagrnd.app/ - Linux:
~/.local/share/com.unbagrnd.app/ - Windows:
%APPDATA%\com.unbagrnd.app\ - Android:
/data/user/0/com.unbagrnd.app/models/
What happens if a model download is corrupted?
unbagrnd calculates the SHA-256 checksum of each downloaded model before storing it as the finished model file. A checksum failure removes the incomplete file, and the model can be downloaded again.
Last Updated: Nov 09, 2026










