Blur photo background (portrait mode)
Keep the person or object sharp and blur everything behind it, like the portrait mode on a phone camera.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
A blurred background draws attention to the subject and hides clutter, the effect phone cameras call portrait mode. This tool uses an AI segmentation model in your browser to find the person or object, blurs everything else and blends the two together, so you can add the effect to any existing photo.
Choose light, medium or strong blur and smooth or sharp edges. 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 with a clear main subject.
- Choose the blur strength.
- Choose smooth or sharp edges and the output format.
- Run it and download the photo.
How the calculation works
A foreground mask is predicted with the U²-Net model. The background is blurred with a strength-dependent radius using normalized convolution (the subject is excluded from the averaging so its colours do not bleed into the blur) and the sharp subject is composited back on top through the mask.
AI subject mask → background blurred (3-pass box blur ≈ Gaussian) → subject composited on topWorked example
A street photo of a friend, street-portrait.jpg (3000 × 4000), has distracting cars behind her. With medium blur, street-portrait-blur.jpg keeps her sharp while the street becomes a soft wash of colour, much like a wide-aperture lens.
Sample input and result
street-portrait.jpg (3000 × 4000) → street-portrait-blur.jpg (medium blur)
Limitations
- Uniform blur, not depth-aware.
- Objects held by the subject may be blurred if not detected as foreground.
- Fine edges may need touch-up.
Last updated:
Frequently asked questions
Is it the same as real lens blur?
It is uniform, not depth-based; real bokeh increases with distance.
Can I blur a specific area instead?
Use the image blur tool to blur one rectangle.
Is the photo uploaded?
No, processing is in your browser.
Troubleshooting
A halo appears around the subject.
Try sharp edges or lighter blur.
The subject is partly blurred.
Use a photo with better contrast.
Processing is slow.
Large photos take longer on older devices.
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