Trim the Borders of an Image screenshot

Trim the Borders of an Image

Trim a uniform border from an image in your browser. Rows and columns are removed from each edge until the picture differs from its corner color.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this trim the borders of an image does

The top-left pixel is treated as the background color, and whole rows and columns are removed from each edge until a pixel differs from it by more than the tolerance. That is how a uniform white surround, a screenshot matte or a scan margin disappears without guessing coordinates. An image that is entirely one color is refused, because nothing would be left.

How to use it

Trim the Borders of an Image: choose an image file from the file picker and press Run, after setting Tolerance (0-100), default 12, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Why it runs in your browser

The work is done locally with JavaScript and the canvas. That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

The top-left pixel is treated as the background color, and whole rows and columns are removed from each edge until a pixel differs from it by more than the tolerance. That is how a uniform white surround, a screenshot matte or a scan margin disappears without guessing coordinates. An image that is entirely one color is refused, because nothing would be left.

Trim a uniform border from an image in your browser. Rows and columns are removed from each edge until the picture differs from its corner color.

How to use it

Trim the Borders of an Image: choose an image file from the file picker and press Run, after setting Tolerance (0-100), default 12, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Why it runs in your browser

The work is done locally with JavaScript and the canvas. That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

What to Expect

Best for

  • Converting image file to result image when the data is already on screen.

What this tool keeps

  • That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

Frequently asked questions

How do I use the trim the borders of an image?

Trim the Borders of an Image: choose an image file from the file picker and press Run, after setting Tolerance (0-100), default 12, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Is my input uploaded?

No. The file is read with the browser's File API and processed on this page; the bytes are never posted to a server.

Is there a size limit?

Yes: 25 MB per file. A larger file is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.