Skip to content
DevToolKit

PDF Crop — Trim Margins and Resize Pages

Crop PDF pages by adjusting the CropBox to trim margins and resize visible area. Set insets in points per edge, choose page ranges, and download instantly — all in your browser.

pdf

Drop your PDF here, or click to browse

Files are processed entirely in your browser

Processed locally
Processed locally
Was this tool helpful?

How to Use

Crop any PDF document in three straightforward steps:

  1. Upload your PDF — Drag and drop the file onto the upload area or click to browse your device. The tool reads the file locally in your browser using pdf-lib and never transmits any data over the network.
  2. Set crop margins — Enter the number of points to trim from each edge: Top, Right, Bottom, and Left. One point equals exactly 1/72 of an inch (approximately 0.353 mm). For quick results, use the presets: Trim 0.5 inch applies 36 points to all four sides, and Trim 1 inch applies 72 points. You can fine-tune individual edges after selecting a preset.
  3. Choose page range and crop — Select which pages to crop: All Pages, Odd Pages, Even Pages, or enter a Custom Range such as 1-5 or 2,4,6. Click Crop PDF to apply the CropBox to the selected pages. The progress bar shows page-by-page status for large documents. When complete, click Download to save the cropped file.

For documents with inconsistent page sizes, use PDF Page Dimensions to check the MediaBox of each page before setting your crop values. If you need to standardize all pages to a single size first, try PDF Fix Page Size.

About This Tool

PDF documents define their visible area through a system of rectangular boundaries called page boxes. The PDF specification (ISO 32000-2:2020) defines five such boxes, and understanding how they interact explains what cropping actually does and, just as importantly, what it does not do.

The CropBox and how it differs from the MediaBox

Every PDF page has a MediaBox that sets the absolute physical extent of the page — the maximum possible boundary. The CropBox defines the region that PDF viewers display on screen and that printers reproduce on paper. When no CropBox is present, viewers default to the MediaBox. This tool sets the CropBox to a rectangle smaller than the MediaBox, effectively hiding content outside that rectangle without deleting it. An A4 page measures 595 x 842 points, US Letter is 612 x 792 points, and Legal is 612 x 1008 points.

Crucially, modifying the CropBox does not remove content from the file. The underlying page stream retains all original graphics, text, and embedded images. A PDF editor that resets or ignores the CropBox would reveal everything that was hidden. This non-destructive behavior is intentional — it preserves the option of undoing or adjusting the crop later. For permanent content removal, you would need to rasterize the page at the CropBox boundary using Rasterize PDF.

The five PDF page boxes

The PDF specification defines five page boundary rectangles, each serving a distinct purpose. The MediaBox is the only required box and sets the absolute page size. The CropBox clips the visible content area and defaults to the MediaBox when absent. The BleedBox extends 3-5 mm beyond the TrimBox to provide a bleed allowance for commercial printing. The TrimBox defines the intended final cut line — the finished page after trimming. The ArtBox marks the meaningful content area, excluding margins and running headers. This tool operates exclusively on the CropBox, leaving the other four boxes unchanged.

PDF coordinate system and units

PDF dimensions use a coordinate system with the origin at the bottom-left corner of the MediaBox. The X axis increases to the right and the Y axis increases upward — the inverse of the screen coordinate system used by HTML Canvas and most web rendering. All measurements are in points, where one point equals exactly 1/72 of an inch (0.352778 mm). The margin values you enter represent points to trim inward from each edge. For example, setting Left to 72 removes the leftmost inch of the page from the visible area.

Page range syntax

The Custom Range input accepts comma-separated page numbers and hyphenated ranges. For example, 1-5,8,10-12 crops pages 1 through 5, page 8, and pages 10 through 12. Page numbers are 1-based (the first page is page 1). The Odd and Even options use the human-readable numbering: Odd selects pages 1, 3, 5, and so on.

All processing runs in your browser using pdf-lib, a pure JavaScript library for creating and modifying PDF documents. Your file is never uploaded to any server. To reduce file size after cropping, use PDF Compress. To inspect all five page boxes in detail, try PDF Page Dimensions.

Why Use This Tool

Cropping PDFs addresses real needs across academic, professional, and creative workflows:

  • Research papers and ebooks — Academic PDFs frequently have oversized margins designed for print binding and annotation. Cropping them produces a tighter layout that is far easier to read on tablets, e-readers, and mobile devices where screen real estate is limited. A 72-point crop on all sides typically reclaims 20-30% of visible area on standard A4 journal pages.
  • Scanned documents — Flatbed and feeder scanners often capture more area than the actual page, leaving dark edges, scanner lid artifacts, or inconsistent borders. Uniform cropping removes these artifacts and produces clean, professional-looking pages.
  • Presentation slides — Slides exported from PowerPoint, Keynote, or Google Slides sometimes include letter-boxing when the slide aspect ratio does not match the target page size. Cropping removes the black bars and maximizes the content area for on-screen viewing.
  • Print prepress preparation — Designers use the CropBox to align visible content with the TrimBox before sending files to commercial printers. This ensures that proof viewers show the finished trim area rather than the full bleed and slug zones, reducing miscommunication with print shops.
  • Legal and regulatory filings — Court filings and compliance submissions have strict margin requirements. Cropping standardizes margins across documents merged from different sources, ensuring consistent presentation. After cropping, run the result through PDF Compress to meet electronic filing size limits.
  • Booklet and portfolio assembly — When assembling multi-page booklets with PDF Booklet Creator, uniform page cropping ensures clean imposition and consistent margins across every page of the finished saddle-stitched output.

Processing locally in your browser eliminates the privacy concerns of cloud-based PDF tools. Confidential contracts, unpublished manuscripts, medical records, and proprietary design files remain on your device throughout the entire operation. No data is transmitted, stored, or logged by any external server. For additional page manipulation, explore PDF Split to divide documents or PDF Delete Pages to remove unwanted pages entirely.

FAQ

How does PDF cropping work?
The tool sets the CropBox on each selected page, which tells PDF viewers to display only the area inside that rectangle. Content outside the CropBox is hidden but not deleted, so the crop is fully reversible by resetting the CropBox.
What units are the margin values in?
Margin values are specified in PDF points, where 1 point equals 1/72 of an inch (approximately 0.353 mm). The quick presets convert common inch values: 0.5 inch equals 36 points and 1 inch equals 72 points.
Does cropping reduce file size?
No. Adjusting the CropBox hides content visually but does not remove underlying page data, so the file size stays roughly the same. To reduce size after cropping, run the file through PDF Compress.
Can I crop only specific pages?
Yes. Choose from All Pages, Odd Pages, Even Pages, or enter a Custom Range like 1-5 or 2,4,6. Only the selected pages receive the new CropBox; other pages remain unchanged.
Is my PDF uploaded to a server?
No. All processing runs entirely in your browser using the pdf-lib library. Your file never leaves your device and no data is transmitted to any external server.