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 portraitWhat comes backWhy
Person against a plain wallClean edge, believable bokehThe mask has an easy boundary
Hair in front of foliageHalo or eaten strands at the edgeSegmentation is the weak link, not the blur
Two people, one behindBoth stay sharp, the gap blursThe model returns one combined subject
Product on a tableUsually good; reflections may softenThe mask follows the table edge
Radius above 30 pxVisible smear band around the subjectStay near 10–20 px for faces
Blur left at zeroNothing changes, still exports a PNGUse 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

14 px

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

  1. 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.
  2. 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.
  3. Set the blur strength. Start around 12–16 px; push higher for a stronger faux-bokeh look or lower to keep some background context.
  4. 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.

Related tools

Blurred background: questions people actually ask

No. A segmentation model cuts the subject out first, the background layer is genuinely blurred, and the two are composited back together. An overlay would blur the subject's edges too — here the hairline between subject and background stays sharp.
It sets a Gaussian blur radius in pixels, from 0 to 40. At 0 you get an unblurred cut-out; around 10–20 the background reads as a shallow depth of field; 30–40 turns it into an abstract colour wash behind the subject.
The tool checks whether the canvas supports the native blur filter on load. If it does not, it falls back to shrinking the background image and scaling it back up, which approximates the same softness at a slightly lower quality.
The segmentation model has to download once before any processing starts. The browser caches it, so the second photo is fast. Clearing site data or switching to a private window forces the download again.
No. The model runs inside the tab, the compositing happens on a canvas on your device, and the finished image is written straight to a download. Nothing travels over the network.
Not in this tool — it only blurs the layer behind the subject. Inverting the mask would need a manual selection mode, which this page does not have.
Busy backgrounds with the same tone as the subject, subjects that touch three or four edges of the frame, and very low-contrast lighting. In those cases part of the background may stay sharp or part of the subject may soften.
It stays sharp. The mask is applied as an alpha cut-out of the original pixels and drawn on top of the blurred background at the same size, so eyes, text on a shirt and the hairline keep their original detail. A gradient overlay would soften those along with everything else, which is the usual tell of a fake bokeh.
Overshot. At 40 px on a 3000 px image the backdrop spreads into flat colour and the boundary against the subject starts to look cut out rather than optical. A real portrait lens at f/1.8 produces something closer to 10–18 px here, which is also where the mask errors are least visible.
No, the pipeline only blurs the layer behind the mask. Inverting the mask is a one-line change in principle, but the page does not expose it. For that effect, cut the subject out with a background remover and blur it in an editor instead.
The about 30 MB segmentation model has to be fetched and initialised before any pixels are processed, and the download goes to a CDN rather than this site. Once it is cached, later photos run in a couple of seconds. Clearing site data or opening a private window forces the whole download again.
Yes. The canvas is sized to the photo's natural width and height and the composite is drawn at that size, so nothing is downscaled on the way out. The cost is a PNG that can be tens of megabytes for a 12-megapixel photo — compress it afterwards if it is going on the web.