Trim Transparent Pixels
Remove the empty space around any image automatically: transparent or solid-color edges.
or browse filesdrop an image here or paste
Remove the empty space around any image automatically: transparent or solid-color edges.
or browse filesdrop an image here or paste
This free PNG trim tool scans your image from every edge and crops away the empty margin, leaving the tightest rectangle that still contains every visible pixel. Drop in a logo, icon or sprite exported with too much room around it, and the trimmed version is shown immediately - the dashed outline on the preview marks exactly what survives, and everything cut away is dimmed. Anti-aliased and soft semi-transparent edges are preserved by default, so nothing visible is ever cut off.
Not all empty space is transparent. Screenshots, scans and JPG exports usually come with a white margin instead, and this tool handles that by itself: when an image has no transparency but a uniform border, it reads the border color from the corners and trims everything that matches it - white, black or any other solid surround. There is nothing to configure; a PNG with transparency gets its transparent margin trimmed, a flat JPG its white one. The tolerance slider decides how strict the match is, which matters for JPGs whose "white" is really a haze of near-white compression noise.
By default the trim keeps every pixel that is even slightly visible, exactly what you want for logos with soft shadows or glows. Some images, though, carry a faint invisible haze - a 1% opacity residue from an editor - that blocks the trim. Raising the tolerance tells the tool to treat such nearly-invisible pixels as empty. The slider goes from 0 (keep everything that is not fully transparent) to 100, and the preview updates live while you drag, so you can see the crop outline tighten in real time.
Everything happens in your browser: the image is scanned and cropped on your device, nothing is uploaded, and there is no signup or watermark. Trimming never touches the surviving pixels - the content is copied out of the original untouched, not re-rendered - and you can download the result as a PNG to keep full transparency or as WebP for a smaller file. Cutting away empty margins also shrinks the file itself, which is worth having for web images and app assets. If you need to crop to a specific area instead of the automatic bounds, the regular crop tool is the right companion; for changing the actual content size afterwards there is the resize tool, and to put a solid background under the transparency instead of trimming it there is Fill Transparency. Not sure whether an image is transparent at all? Check Transparency answers with exact pixel counts.
Load the PNG and the tool trims it instantly: it finds the outermost visible pixels on each side and crops the image to that rectangle. The result downloads as a PNG with its transparency intact, and the preview outline shows exactly where the new edges sit.
Yes, and there is nothing to switch: when an image has no transparency but a uniform border, the tool samples the border color from the corners and trims the matching margin automatically. A small tolerance is applied by default so JPG compression noise in a white background still counts as white.
Either the content genuinely reaches every edge, or an invisible haze of nearly-transparent pixels is blocking the trim. Raise the tolerance slider a little - it treats almost-invisible pixels as empty - and watch the preview: as soon as a trimmable margin exists, the dashed outline pulls inward.
No. The pixels that survive the trim are copied from the original unchanged - the tool only decides where the edges are. Download as PNG for a pixel-perfect, transparency-preserving result; WebP is available when a smaller file matters more.
No. The scan, the trim and the download all run inside your browser on your device. Nothing is transmitted anywhere, and the tool works even offline once the page is open.