Blur Photo Background
A segmentation model cuts the subject out of your portrait, the background layer is genuinely blurred, and the two are composited back at full resolution — the same two-layer trick a phone uses for portrait mode. Blur strength runs from 0 to 40 px and the export is a PNG. The model is about 30 MB and downloads once; the photo itself never leaves the device.
- PriceFree, no signup
- FormatsJPG · PNG · WebP → PNG
- UploadPhoto no; model from CDN
- OutputFull-resolution PNG
The mask, not the blur, decides whether it looks right
| Your portrait | What comes back | Why |
|---|---|---|
| Person against a plain wall | Clean edge, believable bokeh | The mask has an easy boundary |
| Hair in front of foliage | Halo or eaten strands at the edge | Segmentation is the weak link, not the blur |
| Two people, one behind | Both stay sharp, the gap blurs | The model returns one combined subject |
| Product on a table | Usually good; reflections may soften | The mask follows the table edge |
| Radius above 30 px | Visible smear band around the subject | Stay near 10–20 px for faces |
| Blur left at zero | Nothing changes, still exports a PNG | Use the slider before downloading |
Drop a portrait photo here or click to choose a file
JPG, PNG or WebP · the model runs locally after a one-time download
Choose a portrait photo to begin.
How the background blur works
The page loads a segmentation model that runs entirely in your browser via WebAssembly. It returns the subject as a transparent cut-out; the background layer is then blurred and the sharp subject is composited back on top — the same two-layer trick a portrait-mode camera uses.
🔒 Nothing is uploaded
Image decoding, segmentation and compositing all happen on your device. The only network request is the one-time model file.
🎚 Adjustable strength
Slide from 0 px (barely visible separation) to 40 px of heavy bokeh until the subject pops.
🖼 Full resolution
The result keeps the original pixel dimensions, so it stays usable for print and for social platforms.
🧠 Real model, stated honestly
This page uses @imgly/background-removal v1.7.0 (ISNet) for segmentation. Blur itself is a standard canvas operation.
How to blur the background of a photo
- Add a portrait. Photos with a clearly separated person work best; a busy scene with many small objects is harder for any segmentation model to split cleanly.
- Wait for the model on first use. The about 30 MB model is downloaded once and cached by the browser, so later photos process almost instantly.
- Set the blur strength. Start around 12–16 px; push higher for a stronger faux-bokeh look or lower to keep some background context.
- Download the PNG. PNG keeps the full quality of the composite; convert to JPG afterwards if you need a smaller file.
Two layers, one mask — why the edge is the whole job
A convincing blurred backdrop is not a filter applied to the photo. It is two images composited: the original blurred, and the subject cut out and laid back on top. The quality of the result is decided almost entirely by the mask between them.
The pipeline here uses the isnet_fp16 segmentation model to produce an alpha mask, blurs the full-resolution original into a background layer, then draws the cut-out subject over it at the same pixel size. Because the cut-out keeps its own sharp edges, the boundary between subject and backdrop stays crisp — the tell-tale failure of a gradient overlay, where the blur bleeds across the shoulders and hair, never happens.
There is a small detail in the compositing that is easy to miss. Before blurring, the background layer is scaled up slightly around its centre — by 6% at minimum, and more as the radius grows. Without that, the blur kernel samples past the canvas edge and the outermost pixels turn transparent, leaving a faint dark or light rim around the frame. The overscan hides that sampling gap so the border of the photo stays solid.
Picking a radius that still reads as a photograph
The slider runs from 0 to 40 px and starts at 14. The number is a canvas blur radius applied at the image's own resolution, so the same setting looks different on a phone snapshot and on a 24-megapixel file.
- 0–8 px. Barely a blur. Useful when you only want to knock down a distracting sign or a parked car without losing the sense of place.
- 10–20 px. The portrait range, and where the default sits. Background shapes stay recognisable but stop competing with the face.
- 22–30 px. Heavy separation for busy scenes — a street market, an office, a cluttered kitchen. Texture disappears and colour remains.
- 32–40 px. An abstract colour wash. Good behind large headline text or a product cut-out, where any structure in the backdrop would be noise.
Two practical notes on the number. First, because the radius is in pixels of the original image, a high-resolution photo needs a larger value than a small one to reach the same visual softness — doubling the pixel dimensions roughly doubles the radius you want. Second, going past 30 px on a low-resolution image starts to look artificial, because the blur runs out of neighbouring pixels to average and the background flattens into bands.
What happens on a browser without the native blur filter
Canvas filtering is not universal. The page tests support on load by assigning a blur to a throwaway 2D context and reading it back; if the value does not survive, a different path runs.
The fallback shrinks the background to a fraction of its size, then scales it back up with high-quality smoothing. The divisor scales with the radius — roughly the radius divided by 1.6, plus 2, never below 2 — so a heavier blur simply means a smaller intermediate image. The visual difference is subtle: the softness is real, but the bokeh highlights come out slightly blockier than a true Gaussian, and very fine detail can smear into flat patches.
Crucially, only the background takes this path. The subject is composited from the segmentation mask at full resolution either way, so a fallback browser still returns sharp eyes, sharp text on a shirt, and a clean hairline. If you are comparing two machines and one result looks softer in the backdrop but identical in the subject, this is the reason.
The download is always a PNG at the original pixel dimensions, named after your file with a -blurred suffix. PNG is used deliberately: the subject layer is already a lossless cut-out, and re-encoding the composite as JPEG would put compression artefacts on exactly the edges this tool exists to protect. Convert to JPEG afterwards if you need a smaller upload.