Skip to main content
Free Tool

Trim images online and get back the version without the blank edges

Drop in a PNG, JPG or WebP and the empty border comes off automatically. Everything runs in your browser, so the files never leave your device.

Screenshots, exported logos and product shots almost always carry a margin of dead space around them. That space makes your subject render smaller in every card, thumbnail and social crop it lands in, and it adds weight to a page for nothing. This tool scans in from each edge, finds where the content actually starts, and hands back the tight version. Load a whole folder at once if you need to.

The difference

Trimming vs cropping, side by side

Same logo export, 1000 × 1000, with the mark itself only 600 × 200 in the middle. Here is what each one gives you back.

The file you have

1000 × 1000. Most of it is empty artboard that still gets encoded and downloaded.

Trimmed

600 × 200. The scan stopped at the first real pixel on each side, so every part of the mark survived. You made no choices.

Cropped

Whatever box you dragged. Here it clips the wordmark, which is sometimes exactly what you want and is never what you want from a logo export.

Trim when

  • A logo or icon exported with a big empty artboard around it
  • A screenshot with a slab of desktop background down one side
  • A product shot with more white sweep than product
  • A set of images that need to line up in the same grid

Crop instead when

  • You want a tighter composition, closer to the subject
  • You need a fixed ratio for a banner or a social post
  • Something in the frame has to go, and it is not just blank space
  • The background is a photo rather than one flat colour
FAQ

Frequently Asked Questions

What does trimming an image actually do?
Trimming an image removes the uniform border around the content. The tool scans in from each edge until it meets a pixel that is not the background colour and is not transparent, then keeps the rectangle inside those four stopping points. Nothing inside your subject is ever cut, which is what separates it from cropping.
What is the difference between trimming and cropping an image?
Cropping is a choice you make: you pick a rectangle and everything outside it goes, even if that cuts into the subject. Trimming is automatic and keeps all of your content, because it only deletes the blank or single-colour margin already surrounding the subject. Crop to change the composition. Trim to delete dead space.
Are my images uploaded anywhere?
No. The trimming runs in your browser using the Canvas API, so the file is read from your own device and the result is written back there. Nothing is sent to a server, which means it is safe to use on client artwork and anything under NDA.
Which file types can I trim?
Anything your browser can decode, which covers PNG, JPG, WebP, GIF, BMP and usually AVIF. You can save the result as PNG, WebP or JPG. PNG and WebP keep transparency. JPG cannot, so it fills the transparent areas with a colour you pick.
Why is nothing being trimmed off my JPG?
JPG compression leaves a spread of near-white pixels rather than one exact white, so a zero-tolerance scan finds no background to remove. Raise the tolerance slider to about 5 to 10 per cent and it will trim properly. Watch the dashed box on the before preview to check it has not gone too far.
Can I trim several images at once?
Yes. Drop in up to 20 files and the same trim settings, padding and output format run across all of them. Download them one at a time, or take the whole set as a single ZIP.
Does trimming reduce the file size?
Usually, and sometimes by a lot. A screenshot with a wide blank margin can lose a third of its pixels, and those pixels still had to be encoded and downloaded. Saving the trimmed version as WebP cuts it further again.
Can I add space back after trimming?
Yes. The padding field paints a set number of pixels of background back around the content on all four sides, so every image gets the same margin instead of whatever it shipped with. Combined with the square canvas option it is the fastest way to make a mismatched set of logos line up.

Trimming vs cropping: what is the difference?

People use the two words for the same job. They are not the same job.

Cropping is you choosing a rectangle. You drag a box over the picture and everything outside it is thrown away, including parts of the subject if that is what you want. A crop is a compositional decision: cut the bin out of a street photo, turn a landscape shot into a square for Instagram, push in on a face.

Trimming makes no decision at all. It walks in from the top edge until it meets a pixel that is not the background, then does the same from the bottom, the left and the right. Whatever rectangle those four stopping points describe is the result. No part of your subject can be lost, because the scan stops the moment it finds any of it.

Take a 1000 x 1000 logo export sitting on a transparent artboard, with the mark itself only 600 x 200 in the middle. Trimming gives you a 600 x 200 PNG of exactly the same mark. Cropping it to 600 x 200 by hand gives you whatever you happened to drag, and you will be one pixel off.

So: change what is in the picture, crop it. Delete the white or transparent margin that is already doing nothing, trim it. This page trims. The dashed box on the before preview shows you what the scan found, so you can see what is coming off before you download anything.

How the auto-detection decides what counts as empty

The tool reads the four corner pixels first. If any of them is transparent, it treats transparency as the background and trims to the visible artwork. That is the right behaviour for a logo exported out of Illustrator or Figma with a big empty artboard around it.

If the corners are opaque, the most common corner colour becomes the background. A scanned document on white, a product shot on a grey studio sweep, a chart exported on a dark canvas: all of them trim correctly without you picking anything.

Where it needs help is JPG. Lossy compression smears the edge of a white background into a spread of near-whites, so an exact match finds nothing to remove and you get your image back unchanged. That is what the tolerance slider is for. Push it to 5 or 10 per cent and those almost-white pixels count as background again. Push it too far and it starts eating pale parts of your subject, which the before preview will show you straight away.

You can also skip the detection and name the colour to remove, which is handy when a design has a deliberate coloured frame you want gone.

Why blank margins cost you on a website

An image with a 20 per cent dead border looks fine on its own and behaves badly everywhere else:

  • Your subject renders smaller than the slot it sits in. A logo with built-in padding goes into a header that already has padding, so it reads as undersized next to a competitor who trimmed theirs.
  • Grids go ragged. Ten team photos or partner logos with different amounts of surrounding space will never line up, however careful the CSS is.
  • You pay for pixels nobody sees. Blank area still gets encoded, still gets downloaded, and across thirty images on a page that works against your Largest Contentful Paint.
  • Social and Open Graph crops go wrong. Platforms crop to their own ratio from the centre out. Extra margin pushes the subject toward the edge, where it gets clipped.

Trim first, then resize, then compress. The order matters, because resizing a padded image just gives you smaller padding.

Trimming a batch of images at once

Drop in up to 20 files together and the same settings run across all of them. That is the case this was built for: rebuilding a team page, cleaning up a folder of supplier logos, tidying a set of screenshots for documentation.

A few of the settings earn their place on batch work:

  • Padding adds a consistent margin back after the trim. Set it to 24 and every image ends up with the same breathing room instead of whatever it was exported with.
  • Square canvas pads the short side so everything comes out at 1:1. Quickest way to make a row of logos sit properly in a grid.
  • Longest edge caps the size, so a mixed folder of 4000px exports and 600px screenshots all come out at one sensible width.
  • WebP as the output usually lands around a third of the PNG size at a quality nobody questions.

When more than one image is loaded, one button gives you the whole set back as a ZIP.

Trimming is one of three jobs in the free image tools set. If the margin you are cutting is a white background rather than empty canvas, the transparent background maker removes it properly and leaves alpha behind, and if the file is simply too heavy for a web page, the bulk image resizer shrinks a whole folder at once.

Talk to Terris Directly

Your images are tidy. Is the site around them?

We design and build websites where every image is trimmed, sized and compressed before it ships, and the custom artwork is made to match your brand.

Terris
Chat with Terris
Typically replies instantly

Need a detailed quote? Get a Free Quote

Email Us
We reply within 1 business day