Trim transparent PNG borders
Automatically crop transparent borders from PNG logos, icons and sprites. Add transparent padding or a square canvas, preview the results and download individual PNGs or a batch ZIP.
Your results
Trim transparent PNG borders
Remove empty outer margins so logos and sprites fit layouts without manual crop coordinates. The crop follows pixels whose alpha is above your chosen threshold; retained RGBA pixels are copied without resizing or smoothing. Optional padding adds new transparent pixels. The CSV report records original bounds and output offsets for checking placement. Compatible color profiles and resolution are retained; other metadata is omitted. Exports are limited to 40 MB.
How to use this tool
- Upload PNG images or import a direct public PNG URL. Try the example logo with transparent margins.
- Keep alpha threshold at 0 to preserve every non-transparent edge. Choose padding and a tight or square canvas, then create the images.
- Check the previews and dimensions, then download PNGs or ZIP. Review the crop coordinates in the CSV before replacing game assets or aligning logos.
Supported input formats
PNG
Available settings
- Alpha threshold
- Transparent padding (pixels)
- Output canvas
Output and limitations
Automatically crop transparent borders from PNG logos, icons and sprites. Add transparent padding or a square canvas, preview the results and download individual PNGs or a batch ZIP.
Up to 10 static PNGs, 5 MB each, 40 MB total and 2048 × 2048 pixels each. The default trims fully transparent outer pixels only. Higher alpha thresholds can crop faint shadows. White backgrounds are not transparent. Animation, 16-bit and HDR PNGs are unsupported.
What happens to empty images, shadows and sprite alignment?
If no pixel exceeds the threshold, the original pixel canvas is kept and marked no_visible_content in the report; padding and square settings are ignored for that image. Default threshold 0 keeps faint edges. Cropping changes sprite origins and animation alignment; use the reported bounds and offsets to review placement. This tool does not preserve a fixed animation pivot automatically.
Does this remove a white background or separate objects?
No. It trims existing transparent outer margins around all visible content. White and other opaque backgrounds remain. Separate objects stay together in one crop. A higher alpha threshold only changes the crop bounds; it does not erase pixels inside the retained rectangle.
What if processing fails?
Check the supported formats and file limits, then try a smaller file. Keep an original copy. A clear error message will explain an unsupported input or an unavailable processing service.