pngtoolskit.org
PNG and image utilities, in the browser
Workflows Sign in Create accountSign up

Auto-Trim Transparent Edges from PNG

auto bounding box · removes empty space around content · batch · in-browser

Drop PNGs with transparent borders and the tool finds the tight bounding box around the actual artwork and crops to it — removing the empty space around logos, icons, stickers, signatures, and sprite frames. Adjust the alpha threshold to also strip near-transparent anti-aliased halos. Runs entirely in your browser, batch-ready, with no upload.

Drop PNG files here

Multiple files allowed

    no files
    Ready.

    Picking the alpha threshold

    A pixel is treated as empty when its alpha is at or below the threshold:

    When to use auto-trim

    FAQ

    Can it trim a solid white (non-transparent) border?

    Not directly — auto-trim works on the alpha channel, so it removes transparent space, not coloured space. To trim a solid white margin, first make white transparent with Background (remove mode), then auto-trim. For a known fixed margin, Crop by coordinates is faster.

    What if my image is fully opaque?

    Nothing is trimmed — output is the same dimensions as the input.

    What if my image is fully transparent?

    The tool reports "all transparent — nothing to trim" and skips that file.

    Will it crop into the actual content?

    No (at threshold 0). Only fully-transparent edge pixels are dropped — interior content is untouched. At higher thresholds you can lose feathered edges; bump down to 0 if you see clipping.

    What about JPG inputs?

    JPG has no transparency, so there's nothing to trim — auto-trim is a PNG-only operation. To trim a uniform-coloured border (e.g. solid white) instead, use Crop with measured coordinates.

    Part of: Turn a logo into a clean transparent PNG

    Key the background out, then trim — trimming first leaves the halo you were trying to remove.

    1. 1 Background Key out the white, or swap it for transparency
    2. 2 Auto-trim Crop the now-empty border away
    3. 3 Feather edges Soften a hard-keyed edge so it composites cleanly
    4. 4 Add outline Add a contrasting outline if it will sit on photos
    5. 5 Transparency checker Confirm no near-white pixels survived

    All 28 step-by-step workflows

    Part of: Tidy up a scan or a photographed document

    Deskew before cropping, or the crop keeps the tilt and cuts a corner off.

    1. 1 Rotate by angle Straighten it by a fraction of a degree
    2. 2 Perspective Pull a photographed page back to rectangular
    3. 3 Auto levels Make the paper white and the ink black
    4. 4 Auto-trim Cut the desk out of the edges
    5. 5 PNG to PDF Bundle the pages into one document

    All 28 step-by-step workflows