✂️ Image Margin Remover

Automatically detect and remove white margins or transparent margins from images.
Uses Flood Fill algorithm to identify background areas from corners and crop to foreground only.
All processing is done in your browser - images are never sent to our servers.

Drag & drop image files (JPEG/PNG) here
or click the button below to select files

Detection Settings

White threshold: Higher values detect more colors as "white" (250 recommended)
Transparency threshold: Lower values detect more transparent areas as "background" (50 recommended)

🔍 About Flood Fill Algorithm

This tool uses the "Flood Fill" algorithm widely used in image processing.
Starting from the four corners of the image, it identifies contiguous areas of the same color (white or transparent) as background.
It recognizes everything else as foreground and crops the image at those boundaries.
By adjusting the thresholds, you can handle various background colors and transparency levels.