# Crop a scanned PDF and remove black borders

> Crop black scanner borders from a scanned PDF in your browser, automatically or with a manual box. Pages are not re-encoded. Nothing is uploaded.

URL: https://tools.cuelark.com/crop-scanned-pdf
Publisher: Cuelark Team (https://cuelark.com)
Updated: 2026-11-15
Price: free, no sign-up
Privacy: runs in the browser; files are not uploaded

Drop a scanned PDF and download the same pages with the black scanner bed cropped off. The box is found automatically from the edges of each page, and you can drag it or type margins in millimetres. Cropping writes a new page of that size and does not re-encode the original scan. The file is prepared in this tab; nothing is uploaded.

## How to use it

1. Drop a PDF, or try the sample scanned page. Each page is read in this tab and a crop box is placed inside the black border, with 2 mm of padding by default.
2. Check the preview. Drag the box, use the corner handles, or type left, right, top and bottom margins in millimetres. Turn on “Also trim white margins” if you also want leftover paper around the ink removed.
3. Crop and download. Re-check the file before you send it; a tight box can cut punch holes, handwritten notes in the margin, or a faint rule.

## Details

- **Auto-crop:** Black scanner borders are trimmed from the edges of a raster preview of each page. Only edges are trimmed, so dark ink inside the page is kept. Default threshold: luminance 40 or darker counts as black.
- **White margins:** Off by default. When on, a second pass trims leftover white paper after the black bed is gone, down to the ink.
- **Manual box:** Drag the rectangle, resize it from a corner, or type margins in millimetres. Optional: use the same millimetre insets on every page.
- **Padding:** Default 2 mm around the detected content, so a tight detect does not shave the last millimetre of ink. You can set 0–30 mm and re-run auto-crop.
- **How the file is written:** A new page is created at the box size and the original page is drawn into it. The scan is not re-encoded as a new JPEG, so sharpness is kept. Links, comments and form fields are not kept.
- **Locked files:** A PDF with a password or edit restrictions has to be saved as a new unlocked copy first, the same as the other PDF tools here.
- **Output:** A PDF, one cropped page for each input page. Nothing is uploaded.

## Questions

### Are my files uploaded?

No. The page loads its code once, then reads and processes your files inside the browser tab. Nothing is sent to a server; you can confirm it in your browser's network panel while a file converts.

### Will this make my scans smaller in kilobytes?

Not always, and not by much. Cropping changes the page size so the black bed is gone, but it does not re-compress the embedded scan. To shrink the file, use Compress PDF after you crop. That is a separate step because quality and file size are a different job.

### Does auto-crop look at each page?

Yes. Borders often differ from page to page, so each page gets its own box. If you want the same margins everywhere, turn on “Same margins on every page” after you are happy with one page.

### Can a tight crop cut something I need?

Yes. Punch holes, faint stamps, handwritten notes in the margin, or a dark scanner shadow next to the paper can sit inside or just outside the detected box. Check the preview, add padding, or drag the box out before you download.

### Is the original scan re-saved as a new image?

No. The original page is drawn into a new page of the cropped size, so the embedded image is not re-encoded. That keeps the scan as sharp as it was. Links, comments and form fields are not copied.

### Can I use this on a digital passport photo?

Not as a substitute for the official photo rules. Some authorities, including GOV.UK for a UK digital passport photo, say not to crop the photograph yourself. This page is for scanned document pages with a black scanner bed, not for preparing an identity photograph.

## Related tools

- [Compress PDF to 100 KB](https://tools.cuelark.com/compress-pdf-to-100kb)
- [Will this PDF attach to Gmail or Outlook?](https://tools.cuelark.com/will-pdf-attach-gmail-outlook)
- [PDF to JPG](https://tools.cuelark.com/pdf-to-jpg)
- [Image to PDF under a size limit](https://tools.cuelark.com/image-to-pdf-under-size)
