← All text tools

Trim whitespace around an image

Automatically cut off the empty white, coloured or transparent border around a picture, logo or scanned page, with tolerance and an optional margin.

  • Free
  • No sign-up
  • Works on any device

About Trim whitespace around an image

Logos, product shots and scanned pages often come with a wide empty margin. This tool looks at the picture's corners, decides whether the border is transparent, white or another solid colour, and finds the smallest box that still contains everything else. A tolerance value treats near-matching pixels as border, so soft edges and scanner noise do not block the trim. Add a margin in pixels if you want some breathing room, and see exactly how many pixels were removed from each side.

How to use Trim whitespace around an image

  1. Choose a picture; the sample is a logo on a white sheet.
  2. Leave detection on automatic, or force transparent or white, and adjust the tolerance.
  3. Set a margin if wanted and download the trimmed PNG.

Why use this tool?

Also known as

Frequently asked questions

What tolerance should I use?

Start at 10. Raise it for scans or JPG files with faint noise in the border; lower it to 0 for exact flat colours.

Does it work on photos?

Only when the border is a flat colour. A photo with a gradient or textured background cannot be trimmed by colour.

Does a transparent logo stay transparent?

Yes, the result is a PNG, so transparent logos stay transparent, including inside the margin.

Is Trim whitespace around an image free?

Yes. Trim whitespace around an image on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools