Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Blur Background (Portrait Mode)

Portrait-mode blur for any photo — AI finds the subject, on your device.

Image No upload Free to try, no sign-up Pro tool Pro pass from ₹79

Next steps

About the Blur Background (Portrait Mode)

Give any photo the soft, out-of-focus background of a portrait lens. Choose A person or people and an AI portrait model (MODNet) finds them, keeps them sharp and blurs everything behind them evenly. Choose Whatever is in focus for pets, products, food and scenes: a depth model (Depth Anything V2) estimates how far away everything is, and the blur grows with the distance from the point you tap — like a real lens, with near and far both going soft.

The blur is made in linear light with a round-aperture (disc) kernel, so small lights bloom into bokeh circles instead of smudges. Adjust the strength, the focus and how much depth stays sharp, fix the edge with Keep sharp and Blur brushes, and save a full-resolution JPG or PNG. The models run on your device with ONNX Runtime in WebAssembly — your photo is never uploaded.

How to use it

  1. Choose, drop or paste a photo (JPG, PNG, WebP or HEIC).
  2. Choose A person or people for portraits and selfies, or Whatever is in focus (any scene) for everything else, then select Blur the background. The first time, the AI engine and the model are downloaded from this site.
  3. Adjust Strength, Bokeh and Bright highlights. With a scene, tap the subject with Focus (or use the Focus distance slider) and set how much depth stays sharp.
  4. Paint with Keep sharp or Blur to fix what the model missed — hair, a hand, a glass. Then choose JPG or PNG and Download: the photo is made again at full resolution.

Examples

Selfie with a busy street behind
Input
A person or people · Strength 60 · Round lens
Result
You stay sharp; the street becomes an even soft blur with round highlights from the lights
Product on a table
Input
Whatever is in focus · tap the product · Depth that stays sharp 15
Result
The product and the table under it sharp, the table further back and the wall blurred more and more
Cat in a garden
Input
Whatever is in focus · tap the cat’s eyes · Strength 75
Result
The cat sharp, the grass in front and the plants behind it softly out of focus

Common uses

  • Portrait-mode photos from a phone or camera that has no portrait mode.
  • Profile pictures and headshots with a calm, blurred backdrop.
  • Product, food and pet photos where the subject should stand out.
  • Thumbnails, posters and social posts that need a clean, out-of-focus background.

Two ways to find the subject

  • A person or people uses MODNet, a portrait-matting model (Z. Ke et al., “MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition”, AAAI 2022; Apache-2.0). The matte is refined along the photo’s own edges, the background is blurred with the person left out so their colours do not smear into it, and the person is put back sharp.
  • Whatever is in focus uses Depth Anything V2 Small (L. Yang et al., “Depth Anything V2”, NeurIPS 2024). The Small model is published under Apache-2.0; this site serves an 8-bit quantised ONNX export of it (about 27 MB, stored in two parts). It estimates relative depth for every pixel — no special camera needed — which is aligned to the photo’s edges at the working size.

Both run on your device with ONNX Runtime Web (MIT) in WebAssembly. A depth estimate takes a few seconds on a computer and longer on a phone.

How the blur is made

For a camera lens of focal length f and aperture A focused at distance z_f, a point at distance z is drawn as a blur circle of diameter c ≈ A·f·|1/z − 1/z_f| (the thin-lens model; M. Potmesil and I. Chakravarty, “A lens and aperture camera model for synthetic image generation”, SIGGRAPH 1981) — proportional to the difference in inverse depth from the focus. Depth Anything estimates relative inverse depth, so the blur radius here grows linearly with that difference beyond the sharp range, both behind and in front of the focus; Strength sets the unknown scale (like the lens’s aperture).

The photo is split into depth layers, each blurred with a disc the size of its blur circle (larger blurs are computed at a reduced size, which looks the same), and the layers are composited from far to near, so a blurred foreground softly covers what is behind it. Blurring happens in linear light, and with Bright highlights, small points brighter than their surroundings are boosted first — the camera clipped them — so they bloom into bokeh discs. Smooth uses a Gaussian-like blur instead of a disc.

Getting a natural result

  • Real portrait lenses blur gradually: a strength between 30 and 60 usually looks most natural; very strong blur exaggerates any mistake on the edge.
  • Zoom in on the edge of hair and hands; paint Keep sharp where the subject went soft and Blur where background stayed sharp.
  • Glass, reflections, fences, fine hair against a busy background and very thin objects are hard for both models.
  • The preview is drawn at a reduced size so it stays quick; the download is rendered again from the full-size photo, with the sharp edge refined along the photo’s own detail.

Limitations

  • The models can miss parts of the subject or keep bits of background sharp — check the edges and fix them with the brushes.
  • Depth is estimated from one photo: it is relative, not measured, and can be wrong on glass, mirrors, reflections and flat pictures of scenes.
  • Photos over 16 megapixels (8 on phones and tablets) are reduced to that size; the preview is shown at a smaller working size.
  • The first run downloads 27–42 MB; a depth estimate takes a few seconds, more on older phones.
  • Edits are kept only while the page is open.

Privacy

Your photo is processed in your browser and never sent to a server. The first blur downloads ONNX Runtime and a model from MySmartCoPilot — not from a third party — about 27 MB for portraits and 42 MB for scenes; after that your browser’s cache serves them. Saved photos contain no EXIF data from the original, such as the camera or GPS location.

Frequently asked questions

Is my photo uploaded?

No. The AI models run in your browser, so the photo and the result stay on your device. Only the engine and the models are downloaded from MySmartCoPilot, once.

Which mode should I choose?

A person or people for portraits, selfies and group photos — it is quicker and keeps hair edges well. Whatever is in focus for everything else, or when you want a gradual blur that grows with distance.

How do I choose what is sharp?

In scene mode, choose Focus and tap the subject: everything at that distance comes into focus. Depth that stays sharp widens the sharp range. In either mode, paint with Keep sharp and Blur for exact control.

Why are the highlights round circles?

That is bokeh: an out-of-focus point of light takes the shape of the lens aperture. Round lens (disc) imitates that; Bright highlights makes small lights bloom more. Choose Smooth for a softer, Gaussian-like blur.

Is the download full resolution?

Yes, up to 16 megapixels on a computer (8 on phones and tablets). The blur is rendered at a working size and enlarged — it has no fine detail — while the sharp subject is taken from the full-size photo.

Can I blur only part of a photo, like a face or a number plate?

For hiding details, use Blur Image or Blur Faces, which blur exactly the areas you choose.

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.