全球免费使用

更换照片背景颜色

把照片背景换成白色、蓝色、红色、灰色或任何你选择的颜色,适用于头像、证件风格照片和商品图。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

A plain coloured background makes a portrait or product photo look professional and consistent: light blue or grey for staff photos, white for listings, a brand colour for social media, or green for compositing in video. This tool cuts out the subject with an AI model running in your browser and places it on the colour you choose, then saves a JPG or PNG.

Official passport and visa photos have strict rules about size, head position and lighting, and some authorities do not accept edited photos; this tool only changes the background colour. The U²-Net segmentation model (about a 26 MB download, 44 MB once unpacked) downloads the first time and is then cached by your browser; your photo itself is never uploaded. Photos larger than 4,096 pixels on the longest side are scaled down before processing.

使用方法

  1. Choose a photo.
  2. Pick a preset colour or choose your own.
  3. Choose smooth or sharp edges and JPG or PNG.
  4. Run it and download the result.

计算原理

The segmentation model creates a foreground mask; the original pixels are composited over a solid canvas of the chosen colour using that mask as alpha. Smooth edges blend gradually, sharp edges use a threshold.

AI cut-out → composited over a solid colour

计算示例

A company needs consistent staff photos on light blue. A photo taken in a cluttered office, profile.jpg (1200 × 1600), becomes profile-background.jpg on #d6e6f5, matching the rest of the team page.

示例输入和结果

profile.jpg(1200 × 1600)→ profile-background.jpg,浅蓝色背景(#d6e6f5)

局限性

  • Single solid colour; gradients are in the profile picture maker.
  • Hair against similar colours can look rough.
  • Speed depends on your device.

最后更新:

常见问题

Can I use it for passport photos?

Check your government’s rules first; many require unedited photos.

Which colour should I use for video keying?

Use the green preset (#00b140) or a bright blue, whichever contrasts with the subject.

Does it work on products?

Yes, choose sharp edges for hard-edged items.

故障排除

A coloured fringe appears around hair.

Choose a background colour closer to the original.

Part of the subject was removed.

Improve lighting and contrast in the original photo.

The custom colour is ignored.

Select “custom” in the preset list.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步