EIT easy-image-tools / Trim empty space from PNG

Trim empty space from PNG

Crops transparent borders around the content. Pixels with alpha above the threshold count as content.

Nothing found — try another word.

01

Trim empty space from PNG

Nothing found — try another word.

Alpha threshold

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Trim empty space cuts away the transparent or nearly transparent margins around the content of a PNG, so the file ends up with no wasted border. Every pixel whose alpha is above the Alpha threshold counts as content, the bounding box of those pixels becomes the new image, and nothing else is touched: no resampling, no smoothing of the cut edge, no change to the colors. The threshold matters for cutouts, where a faint halo of near-transparent pixels survives a hard edge. This is the cleanup step before exporting a logo, a sticker or an icon. Everything runs in your browser.

  • Runs entirely in your browser: no upload, no server, no signup.
  • Alpha threshold 0 keeps every pixel that is not fully transparent.
  • A straight cut at the bounding box — no resampling anywhere.
  • A JPG has nothing to trim: every pixel counts as content.
  • To keep the canvas and center the content, use the center by content tool.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Leave Alpha threshold at 0 to keep every pixel that is not fully transparent.
  3. Raise Alpha threshold when a faint halo should count as empty space.
  4. Download the trimmed image from the Download button as PNG, JPG, WebP or BMP.

Questions

What does the alpha threshold do?

It decides how visible a pixel has to be to count as content. At 0 anything not fully transparent is kept; raising it drops nearly invisible pixels too, which is how you remove the pale halo a rough cutout leaves behind.

Does trimming blur or resample the image?

No. The content is taken at full resolution with a straight cut at the bounding box, so the edges are exactly as they were. No interpolation happens anywhere in the process.

Will it work on a JPG?

No, there is nothing to trim. A JPG has no alpha channel, so every pixel counts as content and the file comes back the same size. Trimming works on PNG and on WebP, which both support transparency.

I want to keep the canvas and center the content instead

Use the center by content tool. It keeps the original canvas size and only redistributes the empty space, whereas trimming removes the margins and makes the file smaller.

Related tools