How to blur the background of a photo

To blur the background of a photo afterwards, the subject has to be separated from its surroundings first, then only the surroundings are blurred and the sharp subject is placed back on top. The tool on this page does both steps automatically with an AI model in your browser; you only choose how strong the blur is and how soft the edges are.

4 min read

The short answer

Drop your photo onto the tool below. The first time, the AI model downloads once (about 98 MB); after that it is ready immediately. The model finds the main subject, a person, an animal or an object, and the background is blurred in the preview. Move Blur strength until the background is as soft as you like, adjust Edge softness if the outline looks cut out, press and hold Hold to see original to compare, then press Download.

Try it here: Blur Background

Open the full tool page

Why a blurred background looks good

Our eyes go to what is sharp. When everything in a photo is equally sharp, a busy background competes with the subject: signs, cars, other people, furniture. Photographers solve this with a wide aperture and a long lens, which leaves only a thin slice of the scene in focus. The soft, creamy background this creates is often called bokeh.

Phone cameras have small lenses and sensors and keep almost everything sharp, which is why phones added a portrait mode that blurs the background in software. Blurring afterwards does the same for photos taken without portrait mode, screenshots from video calls, older pictures and product shots taken in a cluttered room.

How the tool does it

The blur itself is made by scaling the image down and smoothly back up in several steps. This gives the same result in every browser, including Safari, which does not support the usual canvas blur filter.

  • Finding the subject: the photo is analyzed by BiRefNet, the same open AI model used by the Background Remover. It returns a mask: fully white where the subject is, black where the background is and soft gray values along hair and fine edges.
  • Blurring only the background: the subject is cut out before blurring, so its colors do not spread into the background. Without this step a red jacket would leave a red glow around the person.
  • Filling hidden areas: the parts of the background hidden behind the subject are filled from the surrounding background, so no dark or colored ghost of the subject remains in the blur.
  • Putting it together: the sharp original is laid over the blurred background through the mask. Edge softness blurs the mask a little so the transition looks natural.

Choosing the right settings

Blur strength scales with the size of the photo, so a value of 5 looks the same on a small and a large image, and the preview matches the downloaded file. Very high values turn the background into soft color fields, which can look artificial for scenes with a visible floor or ground leading up to the subject; a medium value often looks more like a real camera.

PhotoBlur strengthEdge softness
Portrait, head and shoulders5 to 73 to 4
Full body in a busy street6 to 83
Product on a table4 to 61 to 2
Pet with fur5 to 74 to 5
Subtle look for a profile photo2 to 43

Which photos work best

The best results come from photos with one clear subject that stands out from the background by color or brightness: a person in front of a building, a dog on a lawn, a bottle on a shelf. The model finds the subject in most normal photos, including people with loose hair, but some situations are harder.

  • Several people: the model may keep only the most prominent one or two sharp. Crop the photo so the group fills the frame.
  • Objects held in the hand at arm's length, bicycles, chairs with gaps: thin parts may be treated as background and blurred.
  • Subject touching the frame edge: works well, the subject stays sharp up to the edge.
  • Floor and ground: a real lens blurs the floor gradually with distance. This tool blurs the whole background evenly, so a floor running right up to the feet can look slightly flat. Keep the blur moderate for such photos.

Privacy, speed and file size

The AI model runs inside your browser. Your photo is never uploaded, which matters for portraits of family and friends. With a graphics card the analysis takes a second or two; on the processor alone it can take much longer, especially for the first photo. After the model has downloaded once, it stays in your browser.

The download keeps the size of your photo up to 6000 pixels on the long side. JPG, HEIC and AVIF photos are saved as JPG, PNG and WebP keep their format. Camera information such as the location is not copied to the new file.

Step by step

  1. Add a photoDrop a portrait, a pet or a product photo on the tool.
  2. Wait for the subjectThe AI finds the subject; the first time the model downloads once.
  3. Set the blurMove Blur strength until the background is soft enough.
  4. Smooth the edgesRaise Edge softness if the outline looks cut out, lower it for crisp products.
  5. Compare and downloadHold to see the original, then press Download.

Frequently asked questions

Is my photo uploaded?

No. The AI model runs in your browser and the photo stays on your device.

Why does the first photo take longer?

The model, about 98 MB, downloads the first time. Afterwards it loads from your browser.

Part of my subject is blurry. What can I do?

Crop the photo so the subject is larger and clearly the main object, then try again.

Can I blur only a part of the background, like a license plate?

For blurring chosen areas use the Blur Image tool, where you drag over the parts to hide.

Does it work for group photos?

Often, but with many people the model may keep only those in front sharp.

Is there a watermark?

No. The tool is free, without watermark or sign up.