Trim Transparent Images
Remove Excess Transparent Pixels
Cut the empty, transparent space from around PNG, WebP, GIF and AVIF logos, icons and cut-outs, one at a time or in bulk, with optional padding. It all happens in your browser, so nothing is uploaded.
Drop transparent images here
PNG, WebP, GIF or AVIF, as many as you like. They never leave your device.
Cuts off fully transparent edges, and saves as PNG. Change it below.
or paste from the clipboard (Ctrl/Cmd+V)
Adjust settings below to control how images are trimmed. Most images work fine with the defaults.
Guide by Ashley Whitehair, web designer at Norwich Website Design
How to trim transparent space from a PNG
Add your images
Drop transparent PNG, WebP, GIF or AVIF images onto the box above, or click it to choose them. Add one logo or a whole folder of icons.
Check the settings and process
The defaults cut away every fully transparent row and column. Add Padding to keep a margin, or raise Tolerance to cut faint shadows too. Then press Process.
Download
Each result shows its old and new size, such as 400 × 300 → 160 × 140. Download images one at a time, or press Download ZIP to get them all.
What trimming does, and when it helps
Trimming finds the smallest rectangle that holds every pixel that isn’t fully transparent, and cuts away the empty rows and columns around it, like an automatic crop. A 400 × 300 PNG with a logo in the middle might come out 160 × 140. Nothing inside the rectangle changes: solid pixels are copied exactly, and every pixel keeps its transparency.
It’s useful for:
- Logos exported on a large artboard, whose hidden margin makes them look small or off-centre on a website or in an email signature.
- Icons and favicons, so the artwork fills its box. Empty edges make a favicon look smaller than it needs to.
- Product cut-outs, so each product fills its space the same way on a shop page.
- Sprites and game art, which then pack more tightly into a sprite sheet.
Trimming gives each image its own size, though. Icons drawn on matching canvases, or the frames of an animation, stop lining up if you trim them one by one, so keep the originals for those.
Tolerance: shadows, glows and stray pixels
Every pixel has an opacity (alpha) from 0, invisible, to 255, solid. Tolerance (0 to 255) sets how faint a pixel can be and still be cut: anything at or below it counts as empty. At the default of 0, only fully transparent pixels go, so soft edges, drop shadows and glows are kept.
That also means a speck you can’t see can stop the trim. A 100 × 100 square with one pixel at opacity 1 near the corner of a 400 × 300 image trims to 296 × 196 at Tolerance 0, and to 100 × 100 at 1. If an image hardly shrinks, raise the Tolerance a little and press Rerun with new settings.
Higher values cut fainter artwork too: a shadow at opacity 10 is kept at 9 and cut at 10. Tolerance only moves the edges; faint pixels inside them are left alone. If no pixel is more opaque than the Tolerance, nothing would be left, so the file is listed as an error instead.
Padding
Padding (0 to 50 px) puts back a transparent margin on every side, so a logo doesn’t touch the edge of whatever it sits in. With 10 px, the 160 × 140 logo above becomes 180 × 160.
The margin comes from the space the image already had, so padding never makes it bigger than the original, and a side where the artwork touches the edge gets none: 50 × 100 artwork against the left edge becomes 60 × 120 with 10 px, not 70 × 120.
What it doesn’t trim
Only transparency is trimmed. A white or coloured background is made of solid pixels, so a PNG on white comes out the same size it went in. To cut off a white border, use Crop. Image Toolkit doesn’t remove backgrounds, so a logo on white needs an editor with background removal first.
The trimmer takes the formats that can be transparent: PNG, WebP, GIF and AVIF. JPGs can’t store transparency, so they and any other files you add are listed as skipped. An animated GIF or WebP is trimmed as a still image of its first frame.
File names, size and format
Trimmed images are always saved as PNG, which is lossless and keeps the transparency exactly. A PNG keeps its name, other formats get .png instead (logo.webp becomes logo.png, as each result shows), and ticking Add "_trimmed" suffix gives logo_trimmed.png. Download ZIP saves a batch as trimmed_images.zip, numbering any files that share a name. Your settings are remembered on this device.
A trimmed file isn’t always smaller. Empty areas already compress to almost nothing, and browsers save PNGs with less effort than dedicated optimisers, so it can come out slightly bigger; a WebP, AVIF or GIF usually comes out bigger as a PNG, as those formats pack pixels more tightly. The tool says so when it happens. For a website, WebP keeps the transparency and usually makes a smaller file: pass the results to the Image Converter with Send to....
Your images never leave your device
Trimming happens in your browser, on your own phone or computer, so your images are never uploaded. That matters for unreleased logos and client artwork.
To check, open your browser’s developer tools, watch the Network tab and trim a few images: no request carries them. Apart from the page’s own code, the only requests are anonymous usage counts, described in our privacy policy. After your first visit, the trimmer works offline too.
Frequently asked questions
How do I remove the transparent space around a PNG?
Add it above and press Process. The empty rows and columns around the artwork are cut away, and you download the trimmed copy. Your original isn’t changed.
Is this PNG trimmer free?
Yes. There’s no sign-up, no watermark and no limit on how many images you trim.
Are my images uploaded to a server?
No. They’re trimmed in your browser, on your device, which is why the tool also works offline after your first visit.
Can I trim lots of PNGs at once?
Yes. Add as many as you like, press Process once, then Download ZIP. Every image gets the same settings. Very large batches depend on your device’s memory.
Can it trim a white background, or a JPG?
No. It only removes transparent pixels, and JPGs can’t be transparent, so it accepts PNG, WebP, GIF and AVIF images, the formats that can be. To cut off a white or coloured border, use Crop.
Can I trim a transparent WebP, GIF or AVIF?
Yes. Add them just like PNGs. The trimmed copy is saved as a PNG, which keeps the transparency and every pixel exactly; to get a WebP back, pass it to the Image Converter with Send to....
Why didn’t my image get any smaller?
Usually something in the margin isn’t fully transparent: a faint shadow, a glow or a stray pixel you can’t see. Raise Tolerance a little and press Rerun with new settings. If the artwork already reaches the edges, there’s nothing to trim.
Does trimming reduce the quality?
No. Nothing is resized, and the result is saved as PNG, a lossless format, so the artwork you keep looks exactly as it did, whatever format it started in.
How do I add a margin around the trimmed image?
Set Padding before you press Process. It adds the same transparent margin, up to 50 px, on every side, as far as the original image had room.
Does it work on iPhone and Android?
Yes, in Safari, Chrome and other modern browsers on phones, tablets and computers. On an iPhone, downloads go to Downloads in the Files app.
Related tools
- Image CropperCrop images with preset aspect ratios (1:1, 16:9, 4:3) or free-form selection, at full resolution.
- Sprite Sheet GeneratorCombine multiple images into a sprite sheet with auto-generated CSS. Reduce HTTP requests for icon sets.
- Favicon GeneratorGenerate all favicon sizes from one image. Includes ICO, Apple Touch, Android Chrome icons and webmanifest.
- Image ConverterConvert between PNG, JPEG, WebP & AVIF. Supports HEIC from iPhone. WebP offers 25-35% smaller file sizes.
- Image CompressorReduce file size while maintaining visual quality. Set target file sizes or quality percentage for optimal results.
- Bulk Image ResizerResize images by percentage, exact dimensions, or social media presets. Batch process multiple files while maintaining aspect ratios.