๐Ÿ–ผ๏ธ Crop PDF Margins

Last updated: December 11, 2025
๐Ÿ–ผ๏ธ
Crop PDF Margins
Trim white borders & unwanted edges โ€” 100% local, no upload
๐Ÿ“„
Drop your PDF here or click to browse
Your file never leaves this device
Units:
Quick Presets
Leave blank to crop every page. Note: page ranges require a single MediaBox per page in the PDF dictionary.

Processing...
โ„น๏ธ This tool sets a CropBox on each PDF page โ€” the standard PDF way to trim visible area. The underlying content is preserved (non-destructive). Works on scanned docs, e-books, and exported PDFs.

Why Cropping PDF Margins Actually Matters โ€” and How It Works

Open any scanned textbook, a court filing, an academic paper, or a PDF exported from a desktop publishing tool, and you will almost certainly encounter the same problem: white space eating into your screen. On a 13-inch laptop the effect is brutal. A scanned A4 page might devote thirty or forty millimetres on each side to blank grey border, leaving the actual text column pinched into a fraction of the display. Add the PDF viewer's own chrome, and readable line width collapses. Margin cropping fixes this โ€” and understanding how it works demystifies a surprisingly misunderstood PDF feature.

The PDF Page Box Model

PDF is not a raster image format; it is a structured document format with a layered system of page boxes. Every PDF page can carry several overlapping rectangles that define how the page is rendered, printed, and trimmed:

  • MediaBox โ€” the full sheet size, including any bleed area. This is the master bounding box; it must be present on every page.
  • CropBox โ€” the region visible to the viewer. If present, the PDF viewer clips display to this rectangle. Most readers (Adobe Acrobat, Apple Preview, Evince, Chrome PDF viewer) honour it.
  • BleedBox, TrimBox, ArtBox โ€” used by professional print workflows and typically absent from scanned or exported documents.

When you "crop" a PDF in a tool, you are almost always setting or adjusting the CropBox. You are not removing content โ€” the underlying glyphs, images, and vector graphics remain physically stored in the file, referenced by the MediaBox. This matters: the crop is non-destructive. You can remove the CropBox or expand it back to the MediaBox dimensions and nothing is lost. Some tools do perform a destructive crop by re-encoding the content stream and clipping image data; this saves more bytes but cannot be reversed.

When Margins Accumulate and Why They Are Excessive

Scanner manufacturers program conservative defaults. A typical flatbed scanner adds a physical margin inside the glass frame, and the driver software adds a further safety border to avoid cutting off page content. The result is often 10โ€“20 mm of dead border around a 210 mm wide A4 page โ€” more than 10% of the horizontal width on each side. On an e-reader or tablet held in portrait mode, this pushes effective zoom down and forces you to pinch-and-scroll just to read a normal paragraph.

PDF exports from word processors fare differently but badly in their own way. Microsoft Word's PDF export faithfully reproduces document margins because the assumption is printing, where white space around text is deliberate. When you read that document on screen you are fighting the same white-space tax, just for a different reason.

Textbooks scanned by students or libraries compound the problem with slightly skewed pages, varying margins between left and right spreads (inner binding margin versus outer margin), and page numbers landing in the gutter. A single symmetric crop value won't work perfectly for every page โ€” but it still dramatically improves the worst offenders.

Points, Millimetres, Inches โ€” the PDF Coordinate System

PDF coordinates are measured in points, where one point equals 1/72 of an inch. This comes from PostScript's typographic heritage. A standard US Letter page is 612 ร— 792 points (8.5 ร— 11 inches). A4 is 595 ร— 842 points (approximately 210 ร— 297 mm). The MediaBox origin (0, 0) is at the bottom-left corner, with y increasing upward โ€” the opposite of screen coordinates, which start at the top-left and increase downward.

This has a practical consequence: when you specify a top margin crop, you are subtracting from the y2 coordinate (the top edge). When you specify a bottom crop, you are adding to y1 (the bottom edge). A tool that does not account for this coordinate inversion will swap top and bottom crops silently, producing a result that looks wrong and can be genuinely confusing to diagnose.

Choosing the Right Crop Amount

There is no universal correct value. A light trim of 5 mm removes scanner-border artefacts and grey shadow at the edges without touching document content. A standard 10 mm trim works well for most scanned books and eliminates the inner binding shadow on single-page scans. Aggressive values of 15โ€“20 mm are appropriate when you want to strip the outer margin of a printed textbook entirely to maximise reading area on a small screen โ€” use these only when you are certain the content does not extend into the area being cropped.

For documents with different inner and outer margins (two-page spreads scanned as single pages, or thesis documents with a wider left margin for binding), use asymmetric values: crop the wider margin more aggressively than the tighter one. The tool supports independent top, bottom, left, and right values precisely for this use case.

What Happens to File Size

Adding a CropBox slightly increases file size โ€” typically by a few hundred bytes per page โ€” because the CropBox entry is additional data in the page dictionary. You will not see size savings from margin cropping alone unless you then pass the file through a separate PDF compressor. The primary benefit of margin cropping is readability and usability, not file size. If size is the goal, compress image streams or downsample embedded fonts; if readability is the goal, crop the margins.

Limitations and Edge Cases

Encrypted PDFs present a hard barrier: the content is encoded and the page dictionaries cannot be safely modified without the decryption key. If your PDF opens in a reader with a password prompt, decrypt it before cropping.

Some PDFs define the MediaBox at the Pages dictionary level (the parent node) rather than on each individual page โ€” a valid shortcut allowed by the PDF specification. In this structure, the child page dictionaries inherit the MediaBox from the parent and add their own CropBox. Tools that only scan individual page objects will miss the inherited MediaBox. A robust implementation must walk the PDF object graph to resolve inherited values, though for most real-world PDFs the per-page declaration is standard.

PDFs with rotated pages (Rotate: 90 key in the page dictionary) apply the rotation after the CropBox is computed, meaning a "top" crop in the coordinate system may visually appear as a left or right crop after rotation. If you notice crops appearing on the wrong side, check whether your PDF uses page rotation.

The Right Approach for Scanned Documents

For a scanned book or document intended for screen reading, a good workflow is: crop first to remove scanner borders (this tool), then deskew if pages are tilted (requires a specialised tool), then optionally run through an image compressor to reduce JPEG quality in embedded scans. In that order, each step builds on the last without redundant work. Cropping after compression is fine too, but compressing after cropping is slightly more efficient since the compressor does not have to encode pixels you are going to hide anyway.

The CropBox approach taken here is non-destructive and reversible. For archival documents you never want to permanently delete content; for a disposable study copy you might prefer a deeper crop operation that actually rewrites the content streams. Knowing which you need is half the battle.

FAQ

Does cropping PDF margins delete the content under the margins?
No. This tool sets a CropBox, which tells PDF viewers which portion of the page to display. The underlying content โ€” text, images, and vector graphics โ€” remains physically stored in the file. The crop is non-destructive and reversible. If you open the cropped PDF and expand or remove the CropBox, all the original content reappears.
Why does my file get slightly larger after cropping?
Adding a CropBox entry to each page dictionary adds a small amount of extra data โ€” typically a few hundred bytes per page. The visible area shrinks but the stored content does not. If your goal is a smaller file, run the cropped PDF through a separate PDF compressor afterwards; image stream compression, not margin removal, is what reduces PDF file size substantially.
What margin value should I use for a scanned book?
For most scanner artefacts and grey borders, 5โ€“10 mm removes the dead border without touching content. For a printed textbook scanned with wide outer margins, 15โ€“20 mm trims the outer white space and maximises reading area on a small screen. Use the symmetric mode for uniform documents; switch to per-side control for documents with different inner and outer margins.
Will the crop work in all PDF viewers?
Adobe Acrobat, Apple Preview, Google Chrome's built-in PDF viewer, Firefox's PDF.js, Evince, Foxit Reader, and most e-reader PDF engines all respect the CropBox standard. A small number of lightweight viewers render the full MediaBox regardless. If a viewer appears to ignore the crop, try opening the file in Adobe Acrobat or Chrome.
Can I crop only certain pages, not the whole document?
Yes. Enter a page range in the 'Pages to crop' field โ€” for example '1-3, 5, 8-12'. Pages outside the range keep their original settings. This is useful for documents where the first or last pages have different margin widths, or for two-page spreads where odd and even pages have different outer margins.
Is my PDF uploaded to a server when I use this tool?
No. The entire crop operation runs inside your browser using JavaScript. Your file is read from your local disk, processed in memory, and the result is offered as a download โ€” all without any data leaving your device. This makes the tool safe to use with confidential legal documents, financial statements, and medical records.