inyourbrowser.com

Crop PDF to a Specific Size

Crop a PDF to a custom rectangle drawn on the first page preview, or lock to a chosen aspect ratio (square, A4, Letter). Apply to every page or just the first, and download a clean copy. All processing runs in your browser.

Drop a PDF here or click to browse

How it works

Drop a PDF and pdfjs-dist renders its first page to a canvas. Select a fixed aspect ratio (or leave it free) and drag the rectangle to the area you want to keep. On apply, the rectangle is converted from canvas pixels to PDF user-space coordinates and applied to each page as both the MediaBox and CropBox via pdf-lib.

Processing runs in your browser

All cropping happens inside your browser tab. The preview is rendered with pdfjs-dist and the cropped PDF is written by pdf-lib in memory; our servers are not involved at any point. You can verify this yourselfin your browser's DevTools Network tab.

Related operations

To reduce file size after cropping, try compress PDF. To rotate pages before cropping, use rotate PDF. For per-page cropping, split first with split PDF.

Frequently asked questions

Which aspect ratios are available?
Free (no aspect lock), 1:1 square, A4 portrait, A4 landscape, US Letter portrait, and US Letter landscape. Choose Free to crop to any rectangle you like.
Can I crop to a precise pixel size?
The preview is shown in pixels but the PDF stores coordinates in points (1/72 inch). The tool snaps to PDF coordinates internally so the result is exact at print scale. For pixel-precise output, convert the cropped PDF to an image afterwards.
Will all pages be cropped to the same rectangle?
Yes when Apply to all pages is on (the default). If you only want the first page cropped, toggle the option off before clicking the action button.
Does the original content get deleted?
No. Cropping resizes the page boxes but leaves the original content streams in the file, so they can be recovered by another tool, unless you re-export the cropped PDF as images.
Is my PDF uploaded?
Everything runs in your browser using pdfjs-dist and pdf-lib. Our servers are not involved at any point.

Related tools

Compress PDF
Reduce PDF file size in your browser. Lossless optimisation or image re-rendering.
Rotate PDF
Rotate or flip PDF pages 90°, 180°, or 270°. Adjust individual pages or all at once.
Split PDF
Extract specific pages or page ranges from any PDF. Download the result instantly.
PDF to Image
Convert PDF pages to JPEG or PNG images. Download individually or all at once.