Image

Runs in your browser. No file uploads for processing.

Trim Transparent PNG Edges

Remove fully transparent outer margins from one or more still PNGs. Add even padding and download the crops and original offsets.

Loading tool...

Need a common canvas for differently sized PNGs? Add transparent padding without scaling.

How to trim fully transparent PNG margins

  1. Select still PNGs

    Choose PNG files with alpha transparency. Animated PNGs and other formats are excluded. The files are processed locally in your browser.

  2. Set even output padding

    The tool finds the smallest rectangle around pixels with alpha greater than zero. It keeps faint edges and does not scale the artwork; you can add an even transparent border.

  3. Download the batch and offsets

    The archive contains the PNGs and a JSON report of each original crop rectangle. For example, an 18 × 16 sprite beginning at x=5, y=5 keeps that source position in the report even when exported without margins.

Use cases

  • Tighten transparent margins around icons, stickers and sprites before a layout or import.
  • Use source offsets to keep placement information after cropping transparent UI assets.

Limits and privacy

  • Still PNG only, up to 24 files, 32 MiB total input and 32 MiB of PNG output. Each file up to 8 MiB, 4 million pixels and 4,096 pixels on each side. Fully transparent images are skipped.
  • Changed files are re-encoded by the browser; color metadata and hidden RGB values in transparent pixels may not be preserved. No visual content is resampled, and faint alpha>0 pixels are retained.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

Can I choose a crop by hand instead?

Use Crop Image if you need a manual rectangle or want to remove opaque pixels. The automatic trimmer keeps every pixel above zero alpha.

Does it remove semi-transparent pixels or resize the visible image?

No. Every pixel with alpha greater than zero counts as content. It crops the bounds at their original scale, then optionally adds transparent pixels around the edges.

What if the whole PNG is transparent?

The file is skipped and marked fully transparent. It does not invent a single-pixel output.

Does this preserve where the crop came from?

The JSON reports the zero-based source x and y and crop width and height, along with the output size and added padding.

Does it upload the PNGs or support animations?

It does not upload files. It supports only still PNGs; animated PNGs are rejected rather than flattened.

Related tools