keptlocal
Files never leave your browser

Crop PDF — Remove Margins, No Upload

Crop a PDF without uploading — no signup, no account, no watermark. Set margins in mm, apply to all pages, and download the cropped PDF instantly. Uniform or individual side control. Files never leave your device.

Drop a PDF here, or

Removes margins from every page. Files never leave your browser.

Upload a PDF to set crop margins.

How to crop a PDF

  1. Upload your PDF. Drop the file onto the upload area or click to browse. Any standard PDF is supported.
  2. Set crop margins. Choose Uniform to crop the same amount from all sides, or switch to Individual sides to set different top, right, bottom, and left margins. Enter values in millimetres.
  3. Click Crop & download PDF. The cropped PDF downloads immediately with "-cropped" added to the filename.

The tool runs entirely in your browser using pdf-lib. Your PDF is never uploaded or sent to a server.

When to crop a PDF

  • Removing excess white margins. Many PDFs generated from Word documents, LaTeX, or presentation software have generous margins that waste space on screen and on paper. Cropping reduces the visible margin area, making the content fill more of the viewport or printed page.
  • Fitting documents to screen readers and tablets. On e-readers and tablets with limited screen real estate, a PDF with large margins can make text uncomfortably small. Cropping the margins makes the content larger without changing the actual font size.
  • Preparing documents for projection. When displaying a PDF on a projector or presentation screen, removing blank margins lets the content fill more of the projected area.
  • Removing headers and footers. Set top or bottom margins large enough to exclude repeating header or footer content — page numbers, running titles, or branding — from the visible area.
  • Focusing on specific content zones. Academic papers, legal documents, and scanned books often have annotations, stamps, or binder margins outside the main content area. Cropping removes these from the visible page without deleting any content.
  • Standardising margin sizes before printing. When printing a PDF on paper, consistent margins produce better results. Cropping reduces the source margins before the printer adds its own margins.

Crop box vs. actual trimming: what this tool does

PDF documents support several box types that control how the page is displayed and printed. The MediaBox is the full extent of the page — everything the PDF contains. The CropBox is the region the viewer shows by default.

This tool sets the CropBox on every page to exclude the margins you specify. When you open the resulting PDF in a viewer, you see only the content within the CropBox. The content outside it is hidden but remains in the file — the file size does not change significantly, because the original page data is preserved.

This is distinct from true trimming, where content outside the margins is permanently deleted. True trimming reduces file size and is not reversible. CropBox-based cropping is reversible — a PDF editor can remove the CropBox to restore the full page view. For documents where you want to truly eliminate the outside content (scanned pages with visible scan borders, for example), a desktop PDF editor with a "flatten and trim" operation is the right tool.

For most use cases — reducing visible margins, improving screen display, preparing for projection — CropBox cropping is exactly what you need.

Understanding PDF page dimensions

PDF pages are measured in points, where 72 points equal one inch. Common page sizes:

  • A4: 595 × 842 points (210 × 297 mm, approximately 8.27 × 11.69 inches)
  • US Letter: 612 × 792 points (216 × 279 mm, 8.5 × 11 inches)
  • A5: 420 × 595 points (148 × 210 mm)
  • Legal: 612 × 1008 points (216 × 356 mm, 8.5 × 14 inches)

This tool accepts margin values in millimetres because most people think in mm rather than PDF points. The conversion is straightforward: 1 mm equals approximately 2.83 points. A 10 mm margin on an A4 page leaves 190 mm of visible width and 277 mm of visible height — removing about 4.8% from each side.

As a practical guide: 5 mm is a very light trim (removes scan borders and minor excess whitespace), 10–15 mm removes standard margins to fill screen space, and 25+ mm crops deep into the content area (useful for targeting a specific zone of the page).

How PDF cropping works technically

This tool uses pdf-lib's page.setCropBox(x, y, width, height) method on each page. The parameters define the bottom-left corner of the visible area (in PDF coordinates, where the origin is at the bottom-left of the full page) and the width and height of the visible region.

PDF coordinates place the origin at the bottom-left of the MediaBox. The Y axis increases upward. This means that to crop the top margin, the CropBox height is reduced. To crop the bottom margin, the CropBox's Y origin is moved upward. The tool handles this coordinate mapping automatically — you enter intuitive top/right/bottom/left values and the tool converts them to the correct PDF coordinate offsets.

The tool uses page.getMediaBox() as the basis for the new CropBox, so it crops relative to the full page extent regardless of any pre-existing CropBox setting. The modified PDF is saved with pdfDoc.save() and offered as a download.

Limits and what to expect

  • Content is hidden, not deleted. File size will not decrease significantly. The original page content remains in the PDF. Open the file in a full PDF editor to see and restore the full page if needed.
  • Margins too large. If the crop values exceed the page dimensions (the resulting CropBox would have zero or negative dimensions), those pages are skipped and a warning is shown. Reduce the margin values for those pages.
  • Encrypted PDFs. Password-protected PDFs cannot be modified. Use the Unlock PDF tool first.
  • Mixed page sizes. For PDFs with pages of different dimensions (for example, a portrait report with a landscape appendix), the uniform margin value is applied to all pages. The same 10 mm margin crops less proportionally from a large page than a small one. Use the same values intentionally or crop each section separately.
  • Scanned PDFs with irregular borders. Scanned documents often have slightly uneven borders from the scanner. A 5–8 mm uniform crop removes most scanner border artefacts without cutting into the content.

Privacy: what happens to your PDF

Your PDF is loaded into browser memory and processed by pdf-lib running locally on your device. The cropped output is created in memory and downloaded directly to you. The file content is never transmitted to any server.

Frequently asked questions

Are my files uploaded to a server?
No. Cropping runs entirely in your browser using pdf-lib. Your PDF never leaves your device — open DevTools → Network while processing to confirm zero upload requests.
Does cropping reduce the file size?
Not significantly. The crop tool sets a CropBox — the visible region PDF viewers display. The content outside the CropBox is hidden but remains in the file. True file size reduction requires permanently deleting the cropped content, which requires a full PDF editor.
Can I crop different amounts from each side?
Yes. Switch from Uniform to Individual sides to set separate top, right, bottom, and left margins in millimetres.
What margin values should I use to remove standard document margins?
For typical A4 or Letter documents with 20–25 mm margins, cropping 15–20 mm on all sides removes most of the blank margin. For scanner border removal, 5–8 mm is usually enough.
Can I undo the crop?
The original file on your device is untouched. The output PDF has a CropBox applied, which any full PDF editor (Adobe Acrobat, PDF-XChange) can remove to restore the full page view. The content is not deleted.
Does this work on all pages, or can I crop specific pages?
Currently the tool applies the same crop to all pages. For selective page cropping, use Split PDF to extract the pages you want to crop, crop them, then use Merge PDF to recombine.