Transparent Margin Trimmer
Transparent Margin Trimmer finds the first visible pixels in an image and crops away fully transparent or near-transparent margins in your browser.
It reports the exact left, top, right, and bottom trim amounts plus the new output size, so the result is easy to verify before downloading.

Drop one transparent image here
PNG, WebP, GIF, BMP, or AVIF up to 100 MB.
Trim settings
Threshold 1 trims only fully transparent pixels. Raise it when exported artwork has faint semi-transparent halos that should be treated as empty margin.
No transparent image selected
Choose an image to detect transparent padding, trim bounds, output dimensions, and preserved PNG transparency.
Trim Transparent Image Margins
What It Trims
Use the tool when a PNG or WebP looks visually correct but carries invisible canvas space around the artwork, logo, sticker, sprite, or product cutout.
- Detect transparent margins from the alpha channel instead of guessing from the preview.
- Set an alpha threshold so faint edge pixels can be kept or removed consistently.
- Choose whether to keep a small safety padding after the automatic trim.
- Show original dimensions, trim bounds, margin sizes, and final dimensions before export.
Local Image Cleanup
The image can be decoded and processed with browser APIs, so private artwork and product assets do not need to leave the device.
- Works from file input or drag-and-drop on desktop and mobile browsers.
- Uses a canvas pixel scan to find the bounding box of non-transparent pixels.
- Exports a fresh PNG by default so transparency is preserved.
- Shows validation messages for unsupported files, decode errors, fully transparent images, and images with no removable transparent margin.
Deterministic Results
The page should make the crop decision inspectable instead of relying only on a visual before-and-after preview.
- Report crop rectangle as x, y, width, and height.
- Report removed margins as top, right, bottom, and left pixel counts.
- Report output MIME type, filename, file size, and width by height.
- Offer copyable JSON or CSV summary for QA workflows and repeat checks.
Compare Transparent Margin Trimmer
Review this tool beside related online utilities, dedicated apps, and adjacent workflows.
Compare Transparent Margin Trimmer with other toolsOpen Source Alternatives
Compare this focused browser workflow with proprietary software and online tools that solve similar jobs.
View Transparent Margin Trimmer open source alternatives