Free background remover and replacer for passport photos
Embassies and ID authorities almost always require a plain, uniformly-lit background — most commonly pure white (US, India, Schengen) or light grey (Germany, France pre-2014). This tool uses MediaPipe Selfie Segmentation (Google's production-grade portrait matting model, ~2 MB WebAssembly) to isolate your face and shoulders, then composites them onto your chosen background. Pick a country preset, a custom hex colour, or upload your own background image. Edge refinement handles flyaway hair. Everything runs locally; the source photo never leaves your device.
Loading interactive tool…
How it works
- 1Upload your portrait. Frontal lighting works best.
- 2Pick a country preset, paste a hex colour, or upload your own background image.
- 3Download the result as JPG or PNG (PNG keeps transparency).
Frequently asked
How well does it handle hair edges?
MediaPipe Selfie Segmentation is trained on portraits and handles flyaway hair noticeably better than generic background-remover tools. Frontal lighting on a clean original is best. Backlit photos with a busy background are the worst case — re-shoot if possible.
What colours can I use as backgrounds?
Country presets cover the ICAO-standard options: pure white (#FFFFFF), light grey (#D8D8D8), off-white (#F5F5F5), pale blue (#A8C9E0 — some Japanese ID cards). You can also paste any hex code, or upload a uniform background image. Avoid gradients — they get rejected.
Why does my photo look weird around the shoulders?
The model is trained on visible-collar portraits. If your shirt is the same colour as the background it cuts into your shoulders. Wear a contrasting top (dark shirt against a white background) for the cleanest segmentation.
Need a fully compliant photo, not just a check?
Anfas.Pro turns any selfie into a passport-grade photo in 30 seconds. One-time €4.99, full refund if it isn't accepted.