🖼️
Photo & Image/Background Blur

Background Blur

Blur image backgrounds with center focus or edge vignette — 100% in your browser

100% LOCALCenter focusEdge vignetteAdjustable blurFull-res export

Upload & Settings

📷
Click to upload a portrait photo
JPG, PNG — stays in your browser

Preview

Upload an image to see the preview

Data Source & Legal Disclaimer
Effective: Browser Canvas API — no expirationLast updated: 3 months agoUpdate: Manual review
Sources: MDN — CanvasRenderingContext2D.filter

Background blur uses the Canvas API Gaussian blur filter. This is not AI-based background removal. Results depend on browser capabilities. All processing is local.

See all data sources & update policy →

Portrait masking and gaussian blur — illustrated

This tool emulates a shallow depth-of-field look without any lens. It builds a low-resolution elliptical alpha mask — an ImageData buffer where each pixel's alpha encodes how strongly the background should show through — then renders the photo with the CSS blur(radius) filter, which applies a fast box/ gaussian approximation over a kernel of the chosen radius (2–50 px). In Center Focus mode the sharp ellipse is composited back on top of the fully blurred frame; in Edge Vignette mode only the region outside the ellipse is blurred. The mask is computed at 25% resolution and upscaled with high-quality smoothing, so even a 6000 px image stays responsive while you drag the sliders.

Elliptical alpha mask decides what the blur(radius) filter touches
PORTRAIT MASK → GAUSSIAN BLURORIGINALfocus ellipseALPHA MASK + BLURα=1 inside · α=0 outsideRESULTsharp subject · soft bgctx.filter = 'blur(20px)'gaussian σ ≈ 20px kernelCenter Focus: sharp ellipse over blurred frameEdge Vignette: blur only outside the ellipse

A 20 px blur radius spreads each pixel into roughly a 20 px disc. The mask's smooth 0→1 transition — a linear ramp in Center Focus, a smoothstep in Edge Vignette — is what hides the seam between sharp subject and soft background.

Worked example

Liam photographs a colleague for a company headshot against a busy office background, and wants a clean portrait look without an expensive f/1.4 lens.

  1. Upload:He drops a 4000×3000 JPEG. The tool decodes it once, then renders a 25%-scale mask and a full-res preview capped at 600 px for the live slider.
  2. Mask:With Center Focus and a 40% focus ellipse, the alpha mask stays at 1 inside the subject ellipse and ramps to 0 across a narrow 0.3×radius band, keeping the face perfectly sharp.
  3. Blur:He sets Blur Strength to 20 px. The box-blur kernel mixes each background pixel with its neighbors in a ~20 px window, which flattens the desks and shelves behind into smooth color.
  4. Download:He clicks Download Full-Res. The same mask and 20 px blur are re-applied at the original 4000×3000 resolution, and the PNG saves ready for the corporate site.
↩ Back to calculator

To blur a background: upload your image — the AI segments the subject and applies a blur effect to the background, all processed locally in your browser.

FreeToolHub Background Blur is a free browser-based tool that blurs image backgrounds using AI, no signup, no upload.

About this tool

What is this tool?

Add DSLR-quality background blur to photos. No app, no upload, runs fully in your browser.

Center focusEdge vignetteAdjustable blurFull-res export

What Is the Image Background Blur?

Image Background Blur recreates the shallow-depth-of-field look of a DSLR portrait lens without any subject cutout. You upload a photo, and the tool keeps a central elliptical region tack-sharp while blurring everything around it, guided by two sliders: Blur Strength from 2 to 50 pixels (20 by default) and Focus Area from 10% to 90% of the frame (40% by default). Two rendering modes change the character of the effect: Center Focus cuts a crisp elliptical subject window over the blur, while Edge Vignette fades the blur in through a much wider, softer gradient. A before/after comparison slider previews the effect live, and the export is a full-resolution PNG.

Who Should Use This Tool?

Portrait photographers without a fast lens use it to fake bokeh on headshots taken with kit zooms. Profile-photo perfectionists get LinkedIn, dating-app, and team-page pictures where the background stops competing with the face. Product sellers on Etsy, eBay, and Shopify blur distracting kitchen tables or warehouse shelves behind the item. Real-estate and interior shots benefit when clutter at the frame edges melts away. Because the mask is elliptical and centered, it works best when the subject sits near the middle of the frame; extreme off-center compositions are better served by an AI background remover that traces actual subject outlines, then a blur applied to that mask.

How Does It Work?

(1) Your photo loads through a FileReader into an image element, entirely inside the tab. (2) The renderer builds an elliptical alpha mask: it is calculated at one-quarter scale, where each pixel's normalized distance from the center decides opacity, then upscaled with high-quality smoothing so the focus boundary becomes a feathered gradient rather than a hard edge. (3) Compositing applies it in one of two orders: Center Focus paints the fully blurred photo first and stamps the sharp original through the center mask; Edge Vignette keeps the sharp base and layers blur through the outer mask using a wide smoothstep falloff. Every slider change re-renders the preview instantly at up to 600 pixels.

Will Blurring Lower My Export Resolution?

No. The live preview is capped at 600 pixels on its longest side purely to keep slider dragging smooth, but the Download Full-Res button re-renders the entire effect onto a canvas sized to your photo's original natural width and height, so a 4000×3000 upload exports as a 4000×3000 blurred-background.png. The tool also displays the source dimensions above the controls, and the before/after comparison keeps that metadata attached. Two practical notes: the Gaussian blur is applied by the browser's Canvas filter engine, so extreme strengths above roughly 40 pixels can visually wash out thin details near the focus edge, and PNG output is lossless, meaning large photos produce large files.

Frequently Asked Questions

How does browser-based background blur compare to Photoshop?

Photoshop's Lens Blur costs $22.99/month and requires manual subject selection. This tool applies Gaussian blur (adjustable radius 1-20px) to your chosen background area in under 2 seconds, producing DSLR-style bokeh depth-of-field. For social media portraits, product shots, and video call backgrounds, the result is visually comparable for web use.

Can I control the blur intensity and area?

Yes. Adjust blur radius from subtle (2px, slight softening) to heavy (20px, complete background obliteration). Select the subject area to keep sharp, and the tool applies progressive blur to the remainder. Output is full-resolution PNG with no compression artifacts, suitable for Instagram, LinkedIn, or print at 300 DPI.

Related tools

Joke of the Day
Sep 6

What do you call a crab that plays baseball?

100% Free, Forever

Keep Tools Free for Everyone

No paywalls, no signups, no data sold. Built by a solo developer who believes useful tools should be accessible to everyone.

Support me on Ko-fi— keep tools free

100% of proceeds go towards hosting & building more free tools.