The ShareX background remover separates the main subject from an image and makes the surrounding background transparent. It runs an ONNX segmentation model locally on your computer, so the source image is not uploaded to a background-removal service.
ShareX does not bundle a model because these files can be very large. You need to download a compatible .onnx model before using the tool for the first time.
We recommend bria-rmbg-2.0.onnx, which gave the best results in our testing. It is a large model, so downloading it and processing an image can take longer than with smaller alternatives.
The rembg model downloads page provides other models, including smaller or use-case-specific options.
To install a model:
.onnx model and place it directly in that folder.Models are supplied by third parties and can have different licenses. Check the model's source and license before using its output commercially. In particular, BRIA RMBG 2.0 has its own license terms separate from ShareX and rembg.
The output keeps the original subject and stores background transparency in an alpha channel. ShareX saves background-removal results as PNG or WebP because both formats support transparency. JPEG does not support transparent pixels.
Save replaces the source file when it is already a PNG or WebP. For other source formats, ShareX asks for an output path instead. Save as always lets you choose a new PNG or WebP file.
The first run with a model can be slower while ShareX prepares the inference session. Repeated runs with the same model and device can reuse that session while the tool remains open.
Confirm that the file uses the .onnx extension and is placed directly in the folder opened by the folder button. Then click refresh. Files inside a nested subfolder are not listed.
Switch the device to Auto or CPU. Updating the graphics driver can also restore DirectML compatibility.
Large models require more memory and computation. Try a smaller model, use a smaller source image, or select a faster device. The recommended BRIA model is approximately 1 GB and prioritizes quality over speed.
Save the result as PNG or WebP and open it in an application that displays transparency. Some image viewers show transparent areas as white, black, or a checkerboard without changing the file.
For cropping, annotations, color adjustments, and other changes after removing the background, use the ShareX image editor.