Crop PDF Page Margins

Trim white margins and printer bleed marks from documents.

100% Client-Side • 100% Free

Crop PDF Pages & Margins

Trim excess white borders, margins, and scanner bleed marks. Lossless vector cropping in your browser.

✂️

Select PDF to Crop

or drag and drop your document here

Change File
In-Depth Technical Guide•8 min read•2RUN Engineering Team
100% Client-Side • Zero Upload

Crop PDF Pages Online: Trim Margins, Adjust CropBox Geometry & Optimize Tablet Reading

⚡How to Crop PDF Pages in Your Browser

1

Upload Your PDF File

Drag and drop your PDF into the upload area or click to select from your device. The editor parses the document and displays an interactive cropping canvas.

2

Adjust the Interactive Crop Box

Drag the boundary handles on the preview canvas to frame your content, or enter exact margin trim values (top, bottom, left, right) in points or millimeters.

3

Select Application Scope (Current Page or All Pages)

Choose whether to apply the crop boundaries exclusively to the current page or uniformly across all pages in the document.

4

Crop and Download Your Optimized PDF

Click 'Crop PDF & Download'. The engine permanently applies the new CropBox geometry and delivers an instant download link in milliseconds.

Digital PDF documents are frequently burdened with excessive white margins, printer crop marks, color calibration bars, or distracting headers and footers that waste screen space and degrade reading comfort. When viewing scanned book chapters, legal transcripts, or academic research papers on mobile devices, e-readers (such as Amazon Kindle or Kobo), or tablet screens (iPad, Android tablets), wide outer margins force viewers to constantly pinch-to-zoom and pan horizontally across every single page. Furthermore, commercial prepress proofs often contain printer trim marks that must be cropped out before public distribution.

Our browser-native Crop PDF tool provides precision visual margin trimming directly inside your browser. Define custom rectangular crop boundaries visually or enter exact dimensional margins in points, millimeters, or inches. Powered by ISO 32000 `/CropBox` geometry adjustments and lossless stream preservation, our engine crops your document with zero quality loss and zero recompression. Operating 100% locally in your browser via WebAssembly and PDF-Lib, your confidential business proposals, academic manuscripts, and financial audits remain completely secure with zero server uploads.

Read the full technical guide

The ISO 32000 Box Hierarchy: MediaBox vs. CropBox

To master PDF cropping, one must understand how the ISO 32000 standard defines page boundaries. Unlike simple image formats that possess a single rectangular dimension, every PDF page can define up to five distinct boundary boxes:

1. `/MediaBox`: The physical medium boundaries. Defines the maximum physical dimensions of the paper sheet on which the page is intended to be printed (e.g. standard A4: $595 \times 842\text{ pt}$). 2. `/CropBox`: The visible display viewport. Defines the rectangular region to which the contents of the page are clipped when displayed or printed by PDF viewers. 3. `/BleedBox`: The clipping region for commercial printing presses when production bleed is required. 4. `/TrimBox`: The finished dimensions of the page after commercial trimming. 5. `/ArtBox`: The boundary of the meaningful content area (text and graphics) on the page. When a PDF is cropped, our engine sets or updates the `/CropBox` entry without altering the underlying content streams. PDF reader software automatically clips rendering to the new `/CropBox` coordinates, delivering an immediate, seamless crop.

Lossless Vector Cropping vs. Destructive Rasterization

Many basic online PDF tools crop files destructively: they render the PDF into a raster image, crop the pixels on a canvas, and re-encode the cropped image into a new PDF. This catastrophic process permanently destroys selectable text, purges embedded font subsets, eliminates clickable hyperlinks, and blurs vector graphics.

Our tool implements 100% lossless vector cropping. The engine defines a new rectangular coordinate tuple `[x_min, y_min, x_max, y_max]` in the page's `/CropBox` dictionary entry. The underlying text operators, TrueType font glyphs, and high-resolution images are preserved with complete mathematical fidelity. Text remains selectable and searchable (`Ctrl+F`), and file size remains exceptionally compact.

E-Reader & Tablet Optimization: Eliminating Margin Waste

Reading academic papers, legal transcripts, or digital textbooks on mobile e-readers (such as Amazon Kindle, Kobo, or reMarkable) is often an agonizing experience. Standard academic PDFs feature massive 1.5-inch margins flanking a 5-inch column of text. On a 6-inch or 10-inch e-ink screen, these dead margins occupy over 40% of the display area, shrinking body typography to an unreadable micro-size.

By cropping away outer white margins using our tool, the active text area expands to fill the entire physical screen. Typography becomes large, dark, and comfortably legible without requiring frustrating zoom-and-pan maneuvers, transforming e-readers into powerful research tools.

Trimming Prepress Proofs & Printer Registration Marks

Commercial graphic designers and print houses routinely prepare PDF artwork with printer registration targets, color calibration bars, and bleed margins flanking the page perimeter. These technical marks are vital for offset printing presses, but look unprofessional when the document is converted into an electronic download or shared with clients.

Our tool allows designers to crop directly to the `/TrimBox` or define custom margin insets. Technical prepress marks are hidden cleanly, leaving a pristine, polished document ready for digital distribution.

Single Page vs. Global Uniform Cropping

Different cropping tasks require different operational scopes: • Uniform Crop (All Pages): Applies the exact same margin crop coordinates across every page in the document. The ideal solution for scanned books, academic journals, or slide decks where margin waste is consistent across all pages. • Selective Individual Page Crop: Crops only a specific page (such as trimming an oversized table or isolating a specific architectural diagram) while leaving surrounding text pages untouched.

Preserving Interactive Hyperlinks & Form Fields

A common concern during document modification is whether interactive features survive cropping. In our engine, because cropping operates by setting viewport clipping coordinates rather than modifying the underlying page coordinate system, all internal page destinations, active web hyperlinks, bookmarks, and fillable form fields (`/AcroForm`) located within the cropped region remain 100% interactive and functional.

100% Client-Side In-Browser Security for Confidential Manuscripts

Cropping documents frequently involves sensitive materials: unannounced academic research papers, confidential legal briefs, proprietary patent schematics, and private business proposals. Transmitting these high-value documents to remote cloud PDF servers creates serious intellectual property and data leakage hazards.

Our Crop PDF tool executes 100% locally inside your web browser. Built on client-side WebAssembly and PDF-Lib, all binary parsing, coordinate calculations, and `/CropBox` updates occur strictly within your physical device's RAM. No files or text ever leave your computer, guaranteeing complete privacy and absolute compliance with corporate confidentiality standards.

💡Professional Best Practices for PDF Cropping

  • •Optimize for Kindle and tablets: Crop away wide margins on academic papers and textbooks to make text comfortably readable on e-readers without zooming.
  • •Lossless vector cropping: Our tool updates the `/CropBox` viewport without recompressing pixels, preserving 100% of native text and image sharpness.
  • •Trim printer registration marks: Crop off color calibration bars and bleed marks from prepress proofs before distributing final files to clients.
  • •Apply to all pages for books: Use the 'Apply to All Pages' toggle to quickly remove uniform scanning borders across an entire multi-page document.
  • •Searchable text remains intact: Selectable text, font subsets, and copy-paste capabilities are 100% preserved for Ctrl+F searching.
  • •Keep margins even: Maintain balanced left and right margins if you plan to print the cropped document on physical paper.
  • •Total client-side privacy: Rest easy knowing your confidential research manuscripts and legal documents are cropped 100% locally on your computer.

🛡️Technical Specifications & CropBox Geometry Pipeline

The browser-native PDF cropping engine implements an ISO 32000 viewport clipping pipeline: 1. Binary Parsing & Box Dimension Extraction: The input PDF is ingested as an `ArrayBuffer`. PDF-Lib parses the cross-reference table and resolves page dictionaries. The engine extracts the existing `/MediaBox` rectangle `[x1, y1, x2, y2]` (where coordinates are in points, $1\text{ pt} = 1/72\text{ in}$). 2. CropBox Coordinate Calculation: Based on user drag handles or margin insets $(M_{\text{left}}, M_{\text{right}}, M_{\text{top}}, M_{\text{bottom}})$, new crop coordinates are computed: $$x_{\min} = x_1 + M_{\text{left}}, \quad y_{\min} = y_1 + M_{\text{bottom}}$$ $$x_{\max} = x_2 - M_{\text{right}}, \quad y_{\max} = y_2 - M_{\text{top}}$$ Validation ensures $x_{\min} < x_{\max}$ and $y_{\min} < y_{\max}$. 3. Page Dictionary Update: The engine writes the new rectangle tuple to the page's `/CropBox` entry via `page.setCropBox(x_min, y_min, width, height)`. Underlying content streams and font dictionaries remain untouched. 4. Binary Serialization: The document is serialized into a binary Blob via `save()`. The engine writes updated object offsets to the cross-reference table, generating an instant local download URL in under 50 milliseconds.

Stack: WebAssembly • Multi-threaded Web Workers • HTML5 Canvas API

Privacy: Files never leave your device or touch a cloud buffer; analytics run only with your consent.

Why choose client-side browser tools?

When you compress an image or merge a PDF on 2run tools, the code executes inside your browser tab using WebAssembly and Web Workers. We never stream your bytes to a remote cloud server. Your private financial reports, personal photos, and legal agreements never leave your device.

Total PrivacyIn-Browser
Instant ProcessingFast RAM
Truly UnlimitedZero Limits

Frequently Asked Questions

What is the difference between MediaBox and CropBox in a PDF?▾

MediaBox defines the physical paper sheet boundaries. CropBox defines the visible viewport region displayed by PDF viewers and printed by desktop printers. Cropping updates the CropBox to hide unwanted margins without altering the underlying content.

Will cropping a PDF reduce its visual quality?▾

No! Our tool performs lossless vector cropping. It adjusts the viewport clipping boundaries without recompressing or modifying visual pixels, preserving 100% of original text, font, and image sharpness.

Can I crop all pages in a document at once?▾

Yes! You can choose to apply your crop margins uniformly to all pages across the entire document, or crop specific individual pages independently.

Why should I crop PDFs for e-readers like Kindle?▾

Academic papers and books often have huge white margins that waste over 40% of an e-reader's small screen. Cropping margins allows the text to expand and fill the screen, making reading comfortable without zooming.

Will my cropped PDF still have searchable text?▾

Yes! All selectable text, searchable keywords (Ctrl+F), embedded font subsets, and active hyperlinks remain completely intact.

Can I crop PDFs on mobile devices?▾

Yes! Our tool is fully responsive and executes locally inside mobile Safari and Chrome on iOS and Android devices.

Are my confidential files uploaded to any external server?▾

Never. All PDF parsing, coordinate calculations, and CropBox updates happen 100% locally in your web browser. Your private documents never leave your physical device.

Sites Loading Under 0.8s
100/100 Lighthouse web engineering
Audit
Dev Arm for Design Agencies
White-label • Bilateral NDA
Partner
Technical SEO by Code
Deep Schema • Zero waste
Scale SEO
Custom Web Apps & SaaS
100% code ownership • Edge scale
Build
Turn Traffic into Sales
+34% sales lift • Fix bottlenecks
Audit