🪄

Bg Remover

Remove flat backgrounds from many images with edge sampling or a picked colour, export PNG.
cutout 📂 Image 👤 ToolCMS 🏷️ v1.0.0

图片未选择

参数

28
2px
0px

容差越大去掉的颜色越多,主体被吃掉时请调小。

导出

默认透明底 PNG,可切换白底 JPEG;本机处理,批量打包下载。

预览等待导入

导入图片后在这里预览透明效果;格子底表示透明区域。

队列—

还没有图片。导入后每张会列出透明像素占比与输出尺寸。

How to Use

📖 What it does

Product shots, ID photos and icons usually sit on one flat colour, so a large model is overkill. This tool samples the four borders, treats sufficiently similar pixels as background, clears them and feathers the edge to avoid a hard white rim.

Batch friendly: drop a dozen files, set tolerance and feather once, then download everything as a zip. All processing happens in the browser and no image is uploaded.

One 800x600 image is processed about 0.1 s after import. The background flood fill uses a fixed-size integer queue, and feathering plus shrink reuse two buffers instead of copying the whole bitmap every round.

The queue caps at 20 images and 24 million pixels. Results are stored as PNG blobs with separate 64 px thumbnails, so clearing the queue returns memory to the starting level.

The workspace exposes 6 controls, from 容差 to 边缘收缩, and every one of them only affects the local rendering: nothing is sent back to a server.

Ranges and defaults: 容差 (5–120(默认 28)), 背景取样 (自动(四边取样) / 手动指定颜色), 边缘羽化 (0–8(默认 2)), 输出格式 (PNG 透明底 / JPEG 白底), 输出最长边 (保持原尺寸 / 1200px / 1600px / 2400px), 边缘收缩 (0–3(默认 0)). Values outside the slider range are rejected rather than silently clamped.

The 容差 control is a slider with the range 5–120(默认 28); every step redraws the result, so you can compare two neighbouring values without guessing.

The 背景取样 control is a dropdown with the options 自动(四边取样) / 手动指定颜色; the active option is what the export uses, so check it after every reload.

The 边缘羽化 control is a slider with the range 0–8(默认 2); every step redraws the result, so you can compare two neighbouring values without guessing.

The 输出格式 control is a dropdown with the options PNG 透明底 / JPEG 白底; the active option is what the export uses, so check it after every reload.

The 输出最长边 control is a dropdown with the options 保持原尺寸 / 1200px / 1600px / 2400px; the active option is what the export uses, so check it after every reload.

✨ Features

  • Border sampling detects white, grey and single colour backdrops.
  • Tolerance from 5 to 120 with instant recompute.
  • Feather from 0 to 8 px to soften the cutout edge.
  • Up to twenty images per batch with thumbnail previews and transparent pixel ratios.
  • Optional max edge from 800 to 2400 px to control file size.
  • Download single PNGs or the whole batch as a zip with a -nobg suffix.

🚀 How to use

  1. Drop up to twenty images, each under 20 MB.
  2. Adjust tolerance on the first preview until the backdrop disappears without eating the subject.
  3. Set feather and max edge; changes apply to the whole batch.
  4. Check the transparent ratio per image; a very high value means tolerance is too loose.
  5. Download all as a zip, or save each file individually.

⚠️ Before you rely on it

  • Flat backgrounds only: gradients, patterned backdrops and real scenes leave large residues.
  • Low contrast risks clipping: white clothes on white or a pale cup on grey; lower the tolerance.
  • No hair or translucency: strands, glass and smoke cannot be preserved by colour thresholding.
  • PNG output: transparency needs PNG or WebP, so exports are PNG; capping the long edge shrinks files a lot.
  • Memory heavy: twenty large images at once can stutter on low-end devices.

Questions people ask: Q: Part of the subject vanished A: Tolerance was too high and subject pixels matched the backdrop; lower it. Q: Backdrop is not fully removed A: It may be a gradient or has shadows; raise tolerance and use feather. Q: Can it handle hair? A: No. Colour thresholding cannot preserve translucent edges. Q: How many images can I process at once? A: Up to 20. Beyond 24 million pixels total, later images are skipped to avoid exhausting memory; process in batches and download one batch first.

Typical use: Turning white-background catalogue shots into transparent cutouts for composites. Removing white behind icon and sticker assets for dark interfaces. Preparing transparent PNGs before swapping backdrops.

What you can enter: JPG, PNG or WebP, up to 20 MB and 4000 px per side, twenty files per batch. Tolerance 5 to 120, feather 0 to 8 px, max edge 800 to 2400 px or original.

What you get back: Transparent PNGs named with a -nobg suffix, single download or zip. Each row shows transparent ratio and output size.

Limits to keep in mind: Flat or near flat backgrounds only. No hair, glass or smoke preservation. No manual mask editing; output is always PNG.

Related

⏫︎