Change photo background colour
Replace the background of a photo with white, blue, red, grey or any colour you pick, for profile, ID-style and product pictures.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
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.
How to use it
- Choose a photo.
- Pick a preset colour or choose your own.
- Choose smooth or sharp edges and JPG or PNG.
- Run it and download the result.
How the calculation works
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 colourWorked example
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.
Sample input and result
profile.jpg (1200 × 1600) → profile-background.jpg on light blue (#d6e6f5)
Limitations
- Single solid colour; gradients are in the profile picture maker.
- Hair against similar colours can look rough.
- Speed depends on your device.
Last updated:
Frequently asked questions
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.
Troubleshooting
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.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Image resizer
Fit an image inside maximum dimensions, preserving aspect ratio and preventing enlargement.
Image toolsImage compressor
Re-encode JPG or WebP at adjustable quality. Output can be larger; always compare sizes.
Image toolsJPG, PNG & WebP converter
Convert images to JPG, PNG or WebP. JPG replaces transparency with white.
Image tools