Trim white edges off a scan

Remove the uniform border around a scanned document, letterboxed screenshot, or padded image without picking crop corners.

Tools used in this guide

The job

A scan came out with a white frame, a video screenshot has black letterbox bars, or an export sits inside padding you want gone. Cropping by hand means nudging four corners; trimming detects the uniform border and cuts it in one step.

How to do it

Drop the image in. The tool reads the border colour from the four corners, finds where the real content starts, and cuts to that box — with an optional padding to keep a thin margin. Raise the tolerance when a scan's edge is slightly uneven.

  • PNG, JPG, or WebP up to 25 MiB; the output keeps the input format.
  • Padding keeps up to 64 px of border around the content.

Worked example

A 3,000 × 2,100 scan with a 60 px white frame trims to the document area in one run. With padding set to 8, it keeps an 8 px margin instead of cutting flush to the text.

Limits

It detects a uniform border only — a photo background, a gradient, or a shadowed edge will not be found. If the corners differ in colour the detected border is their average. For a manually chosen rectangle, use the image cropper instead.