免费工具 + 提示词

AI 换背景:几秒钟换个新背景

在浏览器里直接把人像抠出来,换成干净的纯色、渐变或你自己的图片。想换成全新的场景?用下面的 14 条提示词。

免费 · 无需注册在你的设备上运行14 条提示词

立即使用免费工具 ↓

工具演示

免费工具处理前后

真实效果:一张办公室照片,在浏览器里几秒换好背景。

处理前:办公室照片
处理前:办公室照片
处理后:证件照蓝底
处理后:证件照蓝底
处理后:证件照红底
处理后:证件照红底

示例

用这些提示词能做出什么

点图片直达对应提示词。示例效果,AI 生成(人物为虚构)。

免费工具

在浏览器里一键换照片背景

上传人像照片,在你的设备上自动抠出人物并换上新背景,全程不上传。

背景

选择一张照片开始。AI 模型约 10 MB,只加载一次并缓存。

基于 MediaPipe 人像分割(Apache-2.0 开源),模型由 drawcue 本站提供。适合一到两人正对镜头的照片;头发边缘可用“柔和度”微调。护照、签证、身份证等官方证件照请以官方规定为准,多数要求未经修改的真实照片。

概述

换照片背景的两种方法

上面的小工具是传统的“抠图换底”:设备上的 AI 模型识别人物、抠出来,再放到纯色、渐变或你选择的图片上。速度快、隐私好,适合头像、证件照风格照片和干净背景的人像。

如果想要以假乱真的新场景(日落海边、影棚柔光、夜晚街头),生成式模型效果更好,因为它会重新打光并加上匹配的阴影。把下面的提示词和照片一起粘贴到即梦、豆包、Gemini、ChatGPT 或可灵。

隐私优先。换背景工具完全在浏览器里运行,照片不会离开你的设备。护照、签证和身份证等官方证件通常要求未经修改的真实照片,这里的证件照底色仅适合非正式用途,请以官方要求为准。需要按官方尺寸对齐头部并排版冲印,请用证件照制作工具。

教程

换照片背景的步骤

  1. 上传人像照片

    使用上面的工具。一到两人正对镜头、和背景有一定反差的照片效果最好。

  2. 选择背景

    证件照蓝、白、红,渐变,自定义颜色,透明,或上传自己的图片。

  3. 调节边缘

    拖动“边缘柔和度”,让头发和肩膀过渡自然。

  4. 下载 PNG

    按原图分辨率保存(最大 2048 像素)。透明 PNG 可直接用于稿定、PPT 等。

  5. 想换完整场景就用提示词

    旅行、影棚、节日等需要真实光影的场景,把提示词和照片一起交给即梦、豆包或 Gemini。

指南

换照片背景实用指南

选一张容易分离的照片

人物越突出,抠图越干净:衣服和背景颜色有反差、光线均匀、身后没有别人。头和肩膀要完整入镜。离墙一步远用手机拍的人像最理想。

纯色适合头像和证件照风格

蓝、白、红是很多地方常见的证件照底色;浅灰适合领英和公司通讯录。头部居中、上方留一点空间,下载后再按表格要求裁成对应尺寸。

渐变和品牌色

柔和的双色渐变放在演讲嘉宾页和社交头像上很有现代感。用自定义颜色匹配品牌色,背景比肤色稍暗一点,人像会更出彩。

新场景需要重新打光

把人直接贴到日落照片上很少看起来真实,因为光线方向不对。这时就需要生成式工具:写清场景、时间和光线方向,它会重新给你打光,并加上落在地面的阴影。

真实使用

换背景用于头像、创意分享和娱乐都没问题。不要用来伪造你或别人到过某个地方、参加过某个活动,法律要求真实照片的场合绝不要使用修改过的照片。

提示词

14 条 AI 换背景提示词

先上传照片。每条都保持人物不变,只替换场景。

显示 14 / 14 条

#01

影棚柔和灰背景

影棚柔和灰背景
示例效果,AI 生成(人物为虚构)

适用场景: 领英头像、演讲嘉宾介绍、公司团队页用,原图是在家拍的也没关系;灰色百搭各种衣服颜色,也能掩盖边缘瑕疵。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:无缝中灰色影棚背景纸,带柔和暗角。左前方柔光主光,肩后有淡淡阴影,专业人像质感。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
影棚人像
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a seamless mid-grey photo studio backdrop with a soft vignette. Soft key light from the front-left, gentle shadow behind the shoulders, professional portrait look.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#02

证件照纯白底

证件照纯白底
示例效果,AI 生成(人物为虚构)

适用场景: 签证、求职、学生证要求白底时用;务必先查办理机构的要求,部分机构不接受电子修改过的照片。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:纯白(#FFFFFF)平涂,光线均匀无阴影,头肩居中,头顶留白,干净中性。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
证件照影棚
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: flat pure white (#FFFFFF), even lighting, no shadows, head and shoulders centred with space above the head, neutral and clean.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#03

证件照蓝底

证件照蓝底
示例效果,AI 生成(人物为虚构)

适用场景: 中文简历、部分考试报名和证件常要求蓝底;打印前确认表格要求的具体色值和尺寸。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:纯蓝色(#438EDB)平涂,光线均匀,无渐变无阴影,头肩居中,端正正式。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
证件照影棚
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: flat solid blue (#438EDB), even lighting with no gradient or shadow, head and shoulders centred, neat and formal.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#04

证件照红底

证件照红底
示例效果,AI 生成(人物为虚构)

适用场景: 结婚登记照和部分证件用红底;红底会放大碎发,拍之前先把头发梳顺。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:纯红色(#D9001B)平涂,光线均匀无阴影,头肩居中,头发边缘清晰。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
证件照影棚
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: flat solid red (#D9001B), even lighting with no shadow, head and shoulders centred, crisp edges around the hair.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#05

巴黎街头黄昏

巴黎街头黄昏
示例效果,AI 生成(人物为虚构)

适用场景: 发旅行主题朋友圈、小红书或做愿望清单时用;逆光或侧光照片最能匹配黄昏阳光。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:迷人的巴黎街道,米色石砌建筑和铁艺阳台,远处隐约可见埃菲尔铁塔,身后是温暖的黄金时刻逆光,人行道上有自然的影子。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
旅行地标
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a charming Parisian street with cream stone buildings and wrought-iron balconies, the Eiffel Tower softly visible in the distance, warm golden-hour light from behind, natural shadow on the pavement.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#06

纽约时代广场夜景

纽约时代广场夜景
示例效果,AI 生成(人物为虚构)

适用场景: 想要夜景城市氛围的头像或视频封面时选它;被手机屏幕或路灯照亮的照片,比白天大太阳的照片融合得好得多。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:夜晚热闹的纽约广场,巨幅广告牌发光(不出现可读文字),黄色出租车动态模糊,城市灯光映在湿润路面上,电影感色调。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
旅行城市
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a bustling New York square at night with glowing billboards (no readable text), yellow cabs blurred in motion, city lights reflecting on wet pavement, cinematic colour.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#07

长城日出

长城日出
示例效果,AI 生成(人物为虚构)

适用场景: 春节、家庭出游主题照片用;如果原图是正面光,把“侧光”改成“柔和正面光”,阴影才一致。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:日出时蜿蜒在青山上的长城,山谷里薄雾缭绕,暖色侧光与人物一致,人物站在城墙步道上。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
旅行地标
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: the Great Wall winding over green mountains at sunrise, soft mist in the valleys, warm side light that matches the subject, standing on the stone walkway.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#08

热带海滩

热带海滩
示例效果,AI 生成(人物为虚构)

适用场景: 夏天换头像或做度假主题贺图时用;只有原图拍到脚时才加“脚踩沙滩”,否则保持半身。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:白沙热带海滩,碧蓝海水和椰子树,午后明亮侧光,沙滩上有柔和阴影,轻松度假氛围。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
旅行夏天
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a white-sand tropical beach with turquoise water and palm trees, bright late-afternoon sun from the side, soft shadow on the sand, relaxed holiday mood.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#09

现代办公室

现代办公室
示例效果,AI 生成(人物为虚构)

适用场景: 没有影棚也能拍领英职业照、公司官网照;f/2 的虚化能遮掉边缘问题,让视线集中在脸上。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:明亮的现代办公室,玻璃隔断、绿植和木质办公桌,柔和虚化(f/2),冷调日光,专业职场感。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
办公室人像
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a bright modern office with glass walls, plants and wooden desks, softly blurred (f/2), cool daylight, professional LinkedIn look.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#10

温馨咖啡馆

温馨咖啡馆
示例效果,AI 生成(人物为虚构)

适用场景: 博主简介、小红书生活方式笔记或交友头像适合;暖色调原图效果最好,冷白办公室光和咖啡馆暖光会打架。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:温馨的咖啡馆内景,暖色吊灯、砖墙和摆满杯子的架子,柔和虚化,暖色调与人物肤色协调。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
生活室内
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a cosy café interior with warm pendant lights, brick wall and shelves of cups, softly out of focus, warm tones matching the subject's skin.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#11

圣诞客厅

圣诞客厅
示例效果,AI 生成(人物为虚构)

适用场景: 家人没法团聚时做圣诞贺卡或节日动态;晚上室内拍的照片和暖色串灯最搭。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:装饰好的圣诞树、暖色串灯光斑和壁炉的节日客厅,温馨的夜晚光线照在人物身上。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
节日冬天
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a festive living room with a decorated Christmas tree, warm fairy lights bokeh and a fireplace, cosy evening light on the subject.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#12

春节红灯笼

春节红灯笼
示例效果,AI 生成(人物为虚构)

适用场景: 春节发朋友圈、家族群拜年专用;穿红衣服容易和红灯笼混在一起,加“灯笼在身后,不贴着人物”。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:挂满红灯笼和梅花的春节街道,暖光,柔和光斑,喜庆氛围,不出现可读文字。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
节日春节
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a festive street lined with glowing red lanterns and plum blossoms for Lunar New Year, warm light, soft bokeh, cheerful atmosphere, no readable characters or text.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#13

樱花公园

樱花公园
示例效果,AI 生成(人物为虚构)

适用场景: 春季动态或日本旅行主题头像用;原图是正午强光的话,要求“柔和的粉彩日光”。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:樱花盛开的公园,花瓣飘落,春日柔光,背景轻微虚化。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
四季春天
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a park full of pink cherry blossoms in full bloom, petals drifting, soft spring daylight, gentle background blur.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

#14

电商风渐变背景

电商风渐变背景
示例效果,AI 生成(人物为虚构)

适用场景: 淘宝、Shopify、Etsy 店铺头像或品牌形象照用;写上品牌色的色值,让渐变和品牌一致。

以上传照片作为身份参考,人物的脸、发际线、肤色、体型和姿势保持完全不变。人物保持原样,只替换背景。新背景:从浅丁香紫到淡蓝的平滑渐变,脚下有淡淡投影,干净的电商风格,影棚均匀布光。

反向提示词:脸变了,换了一个人,抠图白边,头发边缘锯齿,光线不一致,人物悬浮,阴影错误,模糊,文字,水印,标志
渐变影棚
English version 英文版
Use the uploaded photo as the identity reference and keep the person's face, hairline, skin tone, body shape and pose exactly the same. Keep the person exactly as they are and replace only the background. New background: a smooth gradient from soft lilac to pale blue with a subtle floor shadow, clean e-commerce look, even studio lighting.

Negative prompt: changed face, different person, cut-out halo, jagged edges around hair, mismatched lighting, floating subject, wrong shadows, blurry, text, watermark, logo

实用笔记

修正与工具设置

换背景是否逼真,关键在于人物身上的光和新场景一致,所以下面每条都写了该配什么光线。发丝边缘最容易出问题,在纯色墙前拍的照片抠图最干净。

常见问题与修正

问题修正方法
头发周围出现白边或锯齿。加“发丝边缘自然,保留细碎发丝,无白边”,原图尽量在纯色墙前拍。
光线不匹配,人像贴上去的。描述原图光线,如“光从左侧来”,并要求新背景与之匹配。
人物脚下没有阴影,像飘在空中。全身照要求“脚下有自然接触阴影”,头像要求“肩后有柔和阴影”。
证件照背景有渐变或阴影。写出准确色值并要求“完全纯色,无渐变、无暗角、无阴影”,再用取色器检查四角。
换背景时脸、肤色或衣服被改了。开头写“人物保持完全不变”,仍有变化就改用只修改背景区域的抠图工具。
地标和招牌上出现乱码文字。加“招牌和广告牌上不出现可读文字”,接受招牌轻微虚化。
背景太清晰,整张照片显得假。加“背景柔和虚化,浅景深”,贴近原相机的效果。

不同工具的参数差异

工具关键设置这类图的表现
Jimeng 即梦上传照片作参考,比例与原图一致;用局部重绘只涂背景区域。中文写“证件照蓝底”“春节红灯笼”理解准确,局部重绘能更好保护人脸。
Doubao 豆包上传照片直接说“把背景换成纯白”,再追问细调颜色或光线。做证件照底色最快,但务必核对色值和尺寸是否符合要求。
Google Gemini上传照片后对话式更换,可在同一张图上连续试多个背景。样貌保持较好,适合一张人像试多种场景。
ChatGPT上传照片,保持原图比例;追问“脸上的光再暖一点”帮助融合。能根据新场景给人物重新打光,但可能微调面部,记得重复“脸不变”。

问答

常见问题

能做一寸、二寸、护照签证尺寸吗?

可以。在“输出尺寸”里选一寸 295×413、二寸 413×579、护照签证 35×45 mm 或美国签证 2×2 英寸,再选白底、蓝底或红底,工具会自动按头部位置裁切,下载 JPG 或 PNG。正式证件请以官方要求为准,很多证件要求近期、未经修改的照片,有的只认指定照相馆。

“背景虚化”是什么?

背景虚化(人像模式)会保持人物清晰、把原来的背景模糊掉,效果类似手机人像模式,能把杂乱的随手拍变成干净的头像照。

这个换背景工具真的免费吗?

真的免费,无需注册、无水印、不限次数。它在你自己的设备上运行,我们没有任何成本可收费。

照片会上传到哪里吗?

不会。抠图模型(MediaPipe 人像分割,Apache-2.0)只从 drawcue 下载一次,在你的浏览器里运行,照片始终留在你的设备上。

可以做蓝底、白底、红底证件照吗?

可以做简历、校园卡、工牌等非正式用途的证件照风格照片。护照、签证等通常要求按官方规定拍摄、未经修改的照片,请先查看官方要求。

为什么头发边缘有点毛糙?

细碎的头发配上杂乱背景是最难的情况。调高边缘柔和度、换一张背景更简单的照片,或者用下面的提示词让 AI 重新生成场景。

能给商品或宠物换背景吗?

模型是针对人像训练的,商品和动物效果不稳定。商品图建议看“AI 店铺装修套图”提示词,或使用生成式编辑工具。