How to trim a transparent PNG
- Choose or drop a PNG or WebP file that has a transparent background.
- Leave Alpha threshold at 0 to cut only completely clear pixels, or raise it to treat faint shadows and glows as empty too.
- Set Keep a margin if you want some clear space left around the artwork.
- Press Trim edges. Compare the new dimensions with the old ones under the tool, then press Download PNG.
What each setting does
- Alpha threshold
- From 0 to 254. A pixel counts as content only when its opacity is above this number, where 0 is fully clear and 255 fully solid.
- Keep a margin
- From 0 to 100 px, added on every side of the trimmed area. It never reaches past the edges of the original image.
How the edges are found
The tool reads the opacity of every pixel and finds the smallest rectangle that still holds all pixels above the threshold. Everything outside that rectangle is cut off. Pixels inside it are copied unchanged, including faint ones below the threshold, so nothing in the artwork itself is altered.
The threshold matters for soft edges. Some images carry a faint halo of nearly clear pixels, with an opacity of 1 or 2, that you cannot see but that stop a plain trim. A threshold just above that, such as 5, treats them as empty. Raise it further only if you want to cut into a drop shadow.
When nothing gets trimmed
If the result has the same size as before, the image had no clear border at that threshold. A white or coloured background is not transparent, so it is never trimmed. For those images, drag a box by hand with the PNG cropper.
Limits
- Only PNG and WebP files open here.
- The result is always a lossless PNG, even when the source is WebP, so it may be larger in KB.
- The cut is a rectangle. Transparent gaps inside the artwork are left alone.
- If every pixel is at or below the threshold, the tool stops and asks you to lower it.
Questions
Why was the white background not removed?
White pixels are solid, not transparent. This tool only trims clear edges. Crop them by hand instead.
Can I leave a little space around the logo?
Yes. Set Keep a margin to the number of pixels you want on each side.
Does trimming change the colours or quality?
No. The kept pixels are copied exactly and saved as a lossless PNG.
Can I trim a WebP?
Yes. Transparent WebP files open here. The trimmed result is saved as a PNG.
Can I trim many PNGs at once?
No. Trimming here works on one image at a time.