Trim Transparent Image Online
Automatically detect and remove the empty transparent border around a PNG or transparent WebP directly in your browser. Adjust the detection threshold and margin, then download without uploading your file.
What this tool does
NexKit Trim Transparent Image scans a PNG or transparent WebP for the tightest rectangle that contains every non-transparent pixel, then crops the image to that rectangle. It is built for screenshots, exported logos, and design assets that carry excess transparent padding.
This is an automatic bounding-box crop, not a manual selection tool. For dragging and resizing a crop area by hand, use the separate Crop Image tool instead.
How detection works
The tool reads the alpha channel of every pixel and treats any pixel whose alpha value is above the chosen threshold (1 by default, out of 255) as visible content. The smallest rectangle containing all such pixels becomes the crop area, optionally expanded by the chosen margin in pixels.
Raising the threshold ignores faint semi-transparent pixels (for example, soft drop shadows) when deciding the content boundary; lowering it toward 0 treats almost any non-zero alpha as content.
Supported formats and edge cases
This tool supports PNG and transparent WebP, the two common raster formats with per-pixel alpha. JPEG, GIF, and SVG have no alpha channel and are rejected.
An image that is fully transparent (every pixel at or below the threshold) has no content to bound and is rejected with a clear error instead of producing an empty or arbitrary output. An image with no transparent border at all is returned unchanged, without re-encoding.
Privacy and local processing
Images are processed locally in your browser for this tool. NexKit does not upload selected images to a server or store image blobs in browser storage for this workflow.
Frequently Asked Questions
Are my images uploaded?
No. Trim Transparent Image processes supported images locally in your browser. Files are not uploaded to NexKit servers by this tool.
How is this different from Crop Image?
Crop Image is a manual tool where you drag and resize a crop rectangle yourself. Trim Transparent Image automatically detects the bounding box of non-transparent pixels and crops to it, with no manual selection.
Which formats are supported?
PNG and transparent WebP, the formats with a per-pixel alpha channel. JPEG, GIF, SVG, HEIC, AVIF, TIFF, and BMP are not supported.
What happens with a fully transparent image?
The tool rejects it with an explicit error, since there is no visible content to define a crop boundary.
What happens if there is no transparent border to trim?
The original file is returned unchanged, without re-encoding, and is included in ZIP output as unchanged.
Can I process multiple images at once?
Yes. Select multiple PNG or transparent WebP files, apply one shared threshold and margin, and download the results individually or together as a ZIP.