AI 抠图去背景(免费、无需上传)
去除任意照片的背景并下载透明 PNG。AI 模型在你的浏览器中运行,图片永远不会离开你的设备。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Cutting out a person, pet or product used to require careful work in an image editor. This tool uses an AI segmentation model that runs entirely in your browser to separate the subject from the background, then saves the subject on a transparent background as PNG or WebP. You can choose smooth or sharp edges and whether to crop the canvas to the subject.
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. Results are best when the subject stands out clearly from the background.
使用方法
- Choose a photo with a clear subject.
- Choose smooth edges (hair, fur) or sharp edges (products).
- Choose whether to crop to the subject and the output format.
- Run it; the first run downloads the model, then the cut-out appears.
计算原理
A 320 × 320 copy of the photo is passed to the U²-Net model (via ONNX Runtime in WebAssembly), which predicts how likely each pixel is to belong to the subject. The mask is refined at full resolution with a colour-guided filter using the photo itself as the guide, edge colours are cleaned of the old background, and the result becomes the alpha channel. Sharp edges use a tighter threshold than smooth edges.
U²-Net salient-object mask (320 × 320, int8) → guided-filter edge refinement at full resolution → alpha channel计算示例
A photographer has portrait.jpg (3024 × 4032) of a client in front of a busy bookshelf. The tool produces portrait-no-background.png with the person on a transparent background, ready to place on a new backdrop. She checks the hair edges at 100% zoom and touches up a few strands.
示例输入和结果
portrait.jpg(3024 × 4032)→ portrait-no-background.png,透明背景
局限性
- One subject area per image; it cannot choose which of several people to keep.
- Speed depends on your device.
- Fine details may need manual touch-up.
最后更新:
常见问题
我的照片会上传到服务器吗?
不会。图片的解码、抠图和保存全部在你的浏览器中完成,使用的是本网站自托管的 AI 模型。从本网站下载的只有模型文件本身,你的照片永远不会离开你的设备。
怎样得到最干净的抠图?
使用清晰、光线均匀、主体与背景区分明显的照片。人物和宠物选择柔和边缘,商品选择锐利边缘。背景非常杂乱或主体与背景颜色相同时最难处理。
有水印或大小限制吗?
没有水印,也不需要账号。支持最大 25 MB 的照片;长边超过 4,096 像素的图片会缩小到这个尺寸,以保持浏览器流畅。
常见问题
Is my photo uploaded?
No. The model and the processing run in your browser.
Why is the first run slow?
The model (about 26 MB to download) is fetched once and then cached by your browser.
What works badly?
Subjects that blend into the background, glass and very fine hair can produce rough edges.
故障排除
Parts of the subject disappeared.
Try sharp edges, or a photo with more contrast between subject and background.
A halo remains.
Use smooth edges, or place the result on a similar colour.
The model does not load.
Check your connection the first time; after that it is cached.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。