# Bilateral Filter

Apply bilateral filter for edge-preserving smoothing that reduces noise while maintaining image details

> Canonical page: https://elysiatools.com/en/tools/image-bilateral-filter

- **Category:** Design

- **Keywords:** image, bilateral, filter, edge-preserving, smoothing, denoise, gaussian, spatial, range, photography

## Overview

The Bilateral Filter tool provides advanced image smoothing that effectively reduces noise while preserving sharp edges and fine details. Unlike standard blur filters that soften everything, this tool uses both spatial and intensity differences to maintain structural integrity, making it ideal for photography and digital image restoration.

## Inputs

- **Image File** (file): Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) to apply edge-preserving bilateral filtering
- **Spatial Sigma** (range): Controls spatial smoothing. Higher values smooth larger areas
- **Range Sigma** (range): Controls edge preservation. Higher values preserve fewer edges
- **Kernel Size** (range): Size of the bilateral filter kernel (must be odd). Larger kernels consider more neighbors
- **Filter Iterations** (number): Number of bilateral filter passes. More iterations = stronger smoothing
- **Preserve Details** (checkbox): Maintain fine details and textures while smoothing
- **Channel Processing** (select): Choose which color channels to process
- **Output Format** (select): Choose output format or keep original. PNG recommended for maximum quality
- **Quality (1-100)** (number): Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

## When to use

- Removing digital noise from high-ISO photographs without losing subject definition.
- Smoothing skin textures or surfaces while keeping facial features or object edges crisp.
- Pre-processing images to improve clarity before applying further artistic effects or analysis.

## How it works

- Upload your image file (JPEG, PNG, WebP, GIF, BMP, or TIFF).
- Adjust the Spatial Sigma to control the area of smoothing and Range Sigma to define edge preservation sensitivity.
- Select your preferred output format and quality settings.
- Click process to generate the denoised, edge-preserved image.

## Use cases

- Restoring old or grainy scanned photos by removing sensor noise while keeping text and lines sharp.
- Enhancing portrait photography by smoothing skin tones without blurring eyes, hair, or jewelry.
- Refining digital illustrations to remove pixelation artifacts while maintaining clean line art.

## Frequently asked questions

### How does a bilateral filter differ from a standard Gaussian blur?

A standard blur averages pixels regardless of their color, which causes edges to become fuzzy. A bilateral filter considers both the distance between pixels and the difference in their intensity, allowing it to smooth flat areas while leaving sharp edges untouched.

### What is the difference between Spatial Sigma and Range Sigma?

Spatial Sigma determines how far the filter looks for neighboring pixels to average; higher values create stronger smoothing. Range Sigma determines how much intensity difference is allowed between pixels; higher values preserve fewer edges.

### Can I process multiple images at once?

No, this tool is designed to process one image file at a time to ensure high-quality, precise filtering results.

### What is the recommended output format?

PNG is recommended if you want to maintain maximum image quality without compression artifacts, though JPEG and WebP are available for smaller file sizes.

### What is the maximum file size I can upload?

You can upload image files up to 20MB in size.

## Related tools

- [Image Adaptive Threshold](https://elysiatools.com/en/tools/image-adaptive-threshold): Apply adaptive threshold operation that calculates threshold for small regions, suitable for varying lighting conditions
- [Add Noise Effect](https://elysiatools.com/en/tools/image-add-noise): Add various types of noise effects to images with customizable intensity and parameters
- [Image Box Blur](https://elysiatools.com/en/tools/image-box-blur): Apply box blur kernel for simple uniform averaging and fast noise reduction
- [Image Convolution Kernel](https://elysiatools.com/en/tools/image-convolve): Apply standard convolution kernels (blur, sharpen, edge detection, emboss) for image processing and effects
- [Image Custom Convolution Kernel](https://elysiatools.com/en/tools/image-custom-kernel): Apply custom convolution kernel by defining your own matrix values for personalized image effects and processing
- [Image Gaussian Blur](https://elysiatools.com/en/tools/image-gaussian): Apply Gaussian blur kernel for smooth noise reduction and image softening with precise control
- [Image Noise Reduction](https://elysiatools.com/en/tools/image-noise-reduction): Reduce image noise using multiple algorithms including median, gaussian, and bilateral filtering
- [Image Solarize Effect](https://elysiatools.com/en/tools/image-solarize): Apply solarization effect that mimics darkroom exposure overexposure

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Image Cleanup, Resizing, and Detail Enhancement](https://elysiatools.com/en/hubs/image-cleanup-resize-and-detail-enhancement): Prepare reviewed images for delivery by fixing orientation, trimming edges, reducing noise, resizing precisely, and restoring crisp detail.
