Trim Transparent Pixels

Remove empty transparent borders from logos, icons, stickers and product assets so the visible image fits more tightly inside its canvas.

Transparent edge detectionPNG and WebP inputMargin reportLocal download

Transparent pixel trimmer

Result preview
Choose an image or enter dimensions to see results.
Choose an image or enter dimensions to see results.

How it works

  1. 1Choose a PNG or WebP image with transparent space around the subject.
  2. 2ImgShrink scans the alpha channel and finds the visible pixel bounds.
  3. 3Download the cropped copy and review the removed top, right, bottom and left margins.

Privacy and limits

  • Only transparent pixels are trimmed; opaque white or solid backgrounds are not removed.
  • Very soft shadows and semi-transparent edges may keep extra padding.
  • Processing stays in your browser.

Transparent trimming notes

The tool scans alpha values and crops to the smallest rectangle that still contains visible pixels.

It is meant for empty transparent borders around logos, icons and product cutouts, not for removing solid backgrounds.

Common use cases

  • Remove empty transparent padding around a logo
  • Tighten icon and sticker exports
  • Prepare transparent assets before resizing or compressing

Transparency notes

  • PNG and WebP can contain alpha transparency.
  • Soft shadows and semi-transparent pixels count as visible content.
  • If the source has no transparent edge, the tool leaves the canvas unchanged.

Original test sample

  • Upload a PNG logo with 40 px transparent padding and confirm the margin report shows removed edges.
  • Upload a file with no transparent border and confirm the page explains why no trim was needed.

Frequently asked questions

Are my images uploaded?

No. ImgShrink processes selected images in your browser and does not upload them to a server.

Can this tool guarantee an exact file size?

No. Target compression gets close when possible, but the final bytes depend on image detail, dimensions, format and browser encoding.

Why is an output format unavailable or different?

The browser controls image decoding and export support. Some browsers may not export AVIF or may flatten unsupported transparency.

Source and compatibility notes

This tool works in the browser, so output support depends on what your browser can read and export.

Last checked: 2026-09-07

Notes
  • No server-side image processing is used.
  • Output format support depends on the browser.
  • Animated images and metadata are not treated as guaranteed preserved data.

Related transparency tools

All tools

PNG Transparency Checker

Check whether a PNG or WebP image contains transparent or semi-transparent pixels. See alpha coverage and transparent edges locally.

Add Background to PNG

Add a white, black or custom color background to a transparent PNG or WebP in your browser. Preview and download JPG, PNG or WebP.

Compress PNG Online

Compress PNG images in your browser by resizing or converting to WebP/JPG when useful. Private local processing with instant downloads.

Image Converter Online

Convert images between JPG, PNG, WebP and AVIF in your browser. Private local conversion with no uploads.