Skip to main content
PDF toolsLocal in browser — nothing is uploaded

Crop PDF page margins

Trim excess whitespace around PDF pages by updating MediaBox and CropBox coordinates in millimeters, points, or inches locally without rasterizing text.

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Vector CropBox trimming

Preserves text selectability: Adjusts each page bounding box via pdf-lib so vector fonts, lines, and hyperlinks remain crisp.

Safe floor: Clamps trimming to keep at least 36 pt (0.5 in) of visible page dimension.

Frequently asked questions

Does cropping shrink the physical page size?
Yes. Both CropBox and MediaBox update so PDF viewers and printers reflect the trimmed page dimensions.