Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/How to remove a white background from an image 2027
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

How to remove a white background from an image (2027)

Source: Bria AI•December 2, 2026 at 05:14 PM

How to remove a white background from an image (2027)

Updated December 1, 2026 TL;DR Direct answer: pick the method by the image. A flat white background on a dark subject works with GIMP Color to Alpha or ImageMagick, and shadows, hair and fur need a model such as Bria RMBG 3.0, which costs $0.018 per image on the Bria API (price checked December…

TL;DR

  • Direct answer: pick the method by the image. A flat white background on a dark subject works with GIMP Color to Alpha or ImageMagick, and shadows, hair and fur need a model such as Bria RMBG 3.0, which costs $0.018 per image on the Bria API (price checked December 1, 2026).

Direct answer: pick the method by the image. A flat white background on a dark subject works with GIMP Color to Alpha or ImageMagick, and shadows, hair and fur need a model such as , which costs $0.018 per image on the Bria API (price checked December 1, 2026).

  • GIMP: Colors, Color to Alpha removes white from a black object, and an opacity threshold of 0.5 keeps gray pixels solid.

GIMP: Colors, Color to Alpha removes white from a black object, and an opacity threshold of 0.5 keeps gray pixels solid.

  • ImageMagick: -fuzz with -transparent white clears near-white noise that an exact match misses.

ImageMagick: -fuzz with -transparent white clears near-white noise that an exact match misses.

  • Bria API: one POST call with "model": "RMBG3" starts the job, and the result is a PNG with a transparent background that you fetch from the status URL.

Bria API: one POST call with "model": "RMBG3" starts the job, and the result is a PNG with a transparent background that you fetch from the status URL.

  • Free start: the Bria API gives 100 free generations with no credit card.

Free start: the Bria API gives 100 free generations with no credit card.

  • Format: save the result as PNG, because JPEG cannot hold transparency.

Format: save the result as PNG, because JPEG cannot hold transparency.

To remove a white background from an image, first check what the white sits behind. Flat white around a dark object is a quick job in free tools, while a gray object or a soft shadow breaks the same steps. This guide shows four working methods with exact settings, plus a simple rule for choosing between them. Bria wrote it, so the model recommendation is Bria's, and the benchmark numbers come from Bria's own test.

What kind of white background do you have?

Match the method to the image: flat white on a dark subject needs a color rule, and anything with shadows, hair or fur needs a segmentation model.

Look at the image at 100% zoom before you pick a tool. Check three things:

  • Background: pure white, or off-white with noise and gradients.

Background: pure white, or off-white with noise and gradients.

  • Subject: dark and saturated, or gray, cream and white.

Subject: dark and saturated, or gray, cream and white.

  • Edges: hard lines, or hair, fur, lace and other fine detail.

Edges: hard lines, or hair, fur, lace and other fine detail.

  • Image type: Flat white, dark object; Start with: GIMP Color to Alpha; Key setting: Opacity threshold 0.5; Source: GIMP docs

Image type: Flat white, dark object; Start with: GIMP Color to Alpha; Key setting: Opacity threshold 0.5; Source: GIMP docs

  • Image type: Near-white noise, dark object; Start with: ImageMagick; Key setting: -fuzz percentage; Source: ImageMagick docs

Image type: Near-white noise, dark object; Start with: ImageMagick; Key setting: -fuzz percentage; Source: ImageMagick docs

  • Image type: Gray object turning see-through; Start with: GIMP Color to Alpha; Key setting: Opacity threshold 0.5; Source: GIMP docs

Image type: Gray object turning see-through; Start with: GIMP Color to Alpha; Key setting: Opacity threshold 0.5; Source: GIMP docs

  • Image type: Shadows, hair and fur, many files; Start with: Bria API; Key setting: Async call, sync false; Source: Bria docs

Image type: Shadows, hair and fur, many files; Start with: Bria API; Key setting: Async call, sync false; Source: Bria docs

How do you remove a white background in GIMP?

Open the image, add an alpha channel, run Colors, Color to Alpha with white selected, and export as PNG.

  • Open the file in GIMP.

Open the file in GIMP.

  • Choose Layer, Transparency, Add Alpha Channel if the option is not grayed out.

Choose Layer, Transparency, Add Alpha Channel if the option is not grayed out.

  • Choose Colors, Color to Alpha and set the color to white.

Choose Colors, Color to Alpha and set the color to white.

  • Click OK, then choose File, Export As and save a PNG.

Click OK, then choose File, Export As and save a PNG.

The GIMP Color to Alpha documentation shows white removed cleanly from a black object. The filter fades pixels toward transparent the closer they sit to the selected color.

Why does a gray or light object turn see-through?

With default settings, Color to Alpha makes a gray object semi-transparent, because gray sits midway between white and black.

The filter has two thresholds. Colors between them fade gradually, so a mid-gray pixel ends up partly clear. The GIMP docs give the fix: lower the opacity threshold to 0.5, which keeps gray and darker pixels fully opaque.

  • Setting in GIMP: Transparency threshold; Default: 0; What it does: Raising it makes more colors near the background color transparent

Setting in GIMP: Transparency threshold; Default: 0; What it does: Raising it makes more colors near the background color transparent

  • Setting in GIMP: Opacity threshold; Default: 1; What it does: Colors between the two thresholds fade gradually. Lowering it to 0.5 keeps gray and darker pixels fully opaque

Setting in GIMP: Opacity threshold; Default: 1; What it does: Colors between the two thresholds fade gradually. Lowering it to 0.5 keeps gray and darker pixels fully opaque

If the object is lighter than mid-gray, or white on white, this fix is not enough. Move to a model instead, because no color rule can separate two similar colors. The guide to cutting out a white product on a white background covers that case.

How do you remove a white background with ImageMagick?

Run `magick input.jpg -fuzz 10% -transparent white output.png`, then adjust the fuzz percentage until the white clears and the subject stays solid.

ImageMagick defines -transparent as "Make this color transparent within the image." It also ensures the image has an alpha channel, the same effect as -alpha set, so no separate step is needed. The 10% value is an illustrative example value, not from the ImageMagick docs. magick is the ImageMagick 7 command, and older installs use convert.

  • No `-fuzz`: the default match is exact, so only pure white pixels clear.

No `-fuzz`: the default match is exact, so only pure white pixels clear.

  • Higher `-fuzz`: treats more near-white colors as white. As a rule of thumb, too low leaves a faint fringe and too high eats light parts of the subject.

Higher `-fuzz`: treats more near-white colors as white. As a rule of thumb, too low leaves a faint fringe and too high eats light parts of the subject.

For a folder of similar images, loop the same command in a shell script and keep the fuzz value that works on your worst file.

How do you fix a noisy near-white background?

Raise `-fuzz` a few points at a time, because ImageMagick treats colors within that distance of white as equal.

Background pixels that look white to the eye can differ slightly in value. An exact match skips them, which is why a first attempt can leave speckles. The ImageMagick docs state the distance can be given in intensity units or as a percentage with %.

Stop raising the value when the subject's highlights start to fade. At that point the color rule has reached its limit, and a segmentation model separates subject from background by shape rather than by color.

How do you remove a white background with the Bria API?

Send one POST request to the remove_background endpoint with `"model": "RMBG3"`, and the job returns a PNG with a transparent background that you fetch from the status URL.

runs on the existing Remove Background endpoint of the Bria API. Without the model parameter you get RMBG 2.0, the default. The request authenticates with an api_token header, and the quickstart shows how to create a token and store it as BRIA_API_TOKEN.

  • Replace the image value with a public URL or base64 data.

Replace the image value with a public URL or base64 data.

  • Keep sync at its default of false. The call returns a request_id and a status_url.

Keep sync at its default of false. The call returns a request_id and a status_url.

  • Fetch the result from the status URL, or receive it through a webhook. The result holds an image_url.

Fetch the result from the status URL, or receive it through a webhook. The result holds an image_url.

  • Do not send a prompt with "model": "RMBG3", because that combination returns a 422 error.

Do not send a prompt with "model": "RMBG3", because that combination returns a 422 error.

The PNG carries an 8-bit alpha channel with anti-aliased edges, so soft edges blend into a new background. In Bria's benchmark, RMBG 3.0 ranked first of 6 models with an average rank of 1.51 across 234 hard images at full resolution. The method was blind votes from professional and casual users plus a side-by-side comparison by a vision language model. The benchmark write-up explains the method.

Should you choose RMBG 3.0 or RMBG 2.0?

Choose RMBG 3.0 when edge quality matters, and RMBG 2.0 when speed and volume matter.

Bria's docs position the two models for different jobs:

  • RMBG 3.0: hair and fur (average rank 1.60 in Bria's benchmark) and shadows and reflections (1.57), where the cutout is the final asset.

RMBG 3.0: hair and fur (average rank 1.60 in Bria's benchmark) and shadows and reflections (1.57), where the cutout is the final asset.

  • RMBG 2.0: interactive tools and high-volume work, at under a second per image in Bria's docs.

RMBG 2.0: interactive tools and high-volume work, at under a second per image in Bria's docs.

  • Guided cutouts: only RMBG 2.0 accepts a prompt.

Guided cutouts: only RMBG 2.0 accepts a prompt.

The two models are priced separately. For results by image type, see the guide to the best background remover for hard images.

What does it cost, and is there a free tier?

GIMP and ImageMagick are free, the Bria API charges $0.018 per image for background removal (checked December 1, 2026), and the Bria API offers 100 free generations with no credit card.

  • Option: GIMP; Price per image: Free; Free tier: Not applicable

Option: GIMP; Price per image: Free; Free tier: Not applicable

  • Option: ImageMagick; Price per image: Free; Free tier: Not applicable

Option: ImageMagick; Price per image: Free; Free tier: Not applicable

  • Option: Bria API, RMBG 3.0; Price per image: $0.018; Free tier: 100 free generations, 10 requests per minute

Option: Bria API, RMBG 3.0; Price per image: $0.018; Free tier: 100 free generations, 10 requests per minute

  • Option: Photoroom API Basic; Price per image: $0.02; Free tier: 10 free production calls

Option: Photoroom API Basic; Price per image: $0.02; Free tier: 10 free production calls

At list price, a 100-image batch on the Bria API costs $1.80 once the free generations are used.

Which file format keeps the transparency?

Save the cutout as PNG, because PNG stores an alpha channel and JPEG does not.

Exporting a transparent image as JPEG fills the clear area with a solid color, which undoes the work. Check the format in each tool:

  • GIMP: File, Export As, and give the file a .png extension.

GIMP: File, Export As, and give the file a .png extension.

  • ImageMagick: name the output file output.png.

ImageMagick: name the output file output.png.

  • Bria API: the result is already a PNG with a transparent background.

Bria API: the result is already a PNG with a transparent background.

Which method should you choose?

Choose the simplest method that works on your worst image, and move up only when it fails.

  • Choose GIMP Color to Alpha if you have a few flat white backgrounds behind dark objects and want a free, local tool.

Choose GIMP Color to Alpha if you have a few flat white backgrounds behind dark objects and want a free, local tool.

  • Choose ImageMagick if the images are similar and you need a repeatable command for a folder.

Choose ImageMagick if the images are similar and you need a repeatable command for a folder.

  • Choose Bria RMBG 3.0 if the subject has hair or fur, or sits in a shadow, or if you process images through an API.

Choose Bria RMBG 3.0 if the subject has hair or fur, or sits in a shadow, or if you process images through an API.

  • Choose RMBG 2.0 if you run high volume and speed matters more than the finest edge detail.

Choose RMBG 2.0 if you run high volume and speed matters more than the finest edge detail.

Test five of your hardest files first. The Bria API's free generations cover that test.

← All articles

What this article says

More in AI & Machine Learning

All →
Introducing MolmoWeb 2: Advancing open visual web agents with reinforcement learning
Hugging Face

Introducing MolmoWeb 2: Advancing open visual web agents with reinforcement learning

White product on white background: cutout guide (2027)
Bria AI

White product on white background: cutout guide (2027)

Open source video matting vs API: GPU or per second (2027)
Bria AI

Open source video matting vs API: GPU or per second (2027)

Best background remover for hair and fine edges in 2027
Bria AI

Best background remover for hair and fine edges in 2027

GLM-5.4 is now available on Mistral Cloud, on day zero.
Mistral AI

GLM-5.4 is now available on Mistral Cloud, on day zero.

Amazon's water conservation and replenishment efforts around the world
Amazon

Amazon's water conservation and replenishment efforts around the world

More from Bria AI

White product on white background: cutout guide (2027)
Bria AI

White product on white background: cutout guide (2027)

Open source video matting vs API: GPU or per second (2027)
Bria AI

Open source video matting vs API: GPU or per second (2027)

Best background remover for hair and fine edges in 2027
Bria AI

Best background remover for hair and fine edges in 2027

Make an image background transparent for free (2027)
Bria AI

Make an image background transparent for free (2027)

PNG vs WebP for transparent images in 2027
Bria AI

PNG vs WebP for transparent images in 2027

How to remove a video background with an API (2027)
Bria AI

How to remove a video background with an API (2027)