Image Trim
Trim uniform borders from an image automatically. The tool compares the edge pixels with a background color, either the color you enter or the top-left pixel, and removes every row and column that stays within the tolerance. Use it to cut white margins from scans, screenshots and product photos or to remove empty space around logos. The trimmed result downloads as a PNG.
Frequently asked questions
How does the trim tool decide what to remove?
It compares the pixels along each edge with a background color and removes rows and columns from the outside in while they stay close to that color. As soon as a row or column contains a pixel that differs by more than the tolerance, trimming stops on that side. The remaining rectangle is your result.
Which background color is trimmed if I leave the color empty?
Without a color the tool uses the top-left pixel of the image as the background. That works well for scans and screenshots with a single margin color. If the corner contains part of your subject, enter the margin color as a hex value such as #ffffff instead.
What does the tolerance do?
The tolerance, from 0 to 255, sets how far a pixel may differ from the background color and still count as border. The default of 10 ignores light noise and JPEG artifacts. Raise it for uneven paper backgrounds and lower it to 0 when only exact matches should be removed.
Can I trim transparent edges?
Yes. When an image has an alpha channel, fully transparent edges are treated as border and trimmed together with the background color. The color field itself only accepts opaque hex colors, so leave it empty for transparent PNG, WebP or GIF files.
What happens if the whole image is one color?
If every pixel matches the background, there is nothing to keep, so the tool returns the image at its original size rather than an empty file. Lower the tolerance or pick another background color if you expected part of it to be removed.
Does trimming change the quality of my image?
No. Trimming only removes rows and columns, so the remaining pixels are copied unchanged. The result is saved as a lossless PNG, which keeps sharp edges and transparency intact.
Which file formats can I upload?
You can upload JPEG, PNG, GIF, WebP, TIFF and AVIF images up to 5 MB. Animated GIF and WebP files are trimmed using their first frame, and the result is always a PNG.
Is there a size limit?
Uploads can be up to 5 MB. Images larger than 4000 pixels on a side are scaled down to fit within 4000 pixels before trimming, so the result never exceeds that size.
Why was only one side trimmed?
Each side stops trimming at the first row or column that differs from the background. A shadow, a scanner edge or a thin line on one side keeps that side in place. Raise the tolerance slightly or crop that detail first with the Image Crop tool.
Can I add a uniform margin after trimming?
Yes. Trim first to remove uneven borders, then run the result through the Image Padding tool to add an exact margin on every side in the color you want. This gives product photos and logos consistent spacing.