PDF Tools

Crop PDF margins by page range, with a preview.

Trim the top, right, bottom and left of a PDF in millimetres, inches or points, with different rules for odd, even or chosen pages. The preview shades what will be cut. Nothing is uploaded.

Crop PDF margins, page by page if you need to

Set how much to trim from the top, right, bottom and left, choose which pages the rule applies to, and watch the trimmed area shaded on a preview. Add more rules when different pages need different margins, for example a wider inside margin on a scanned book. Press Crop and save to get the new PDF.

How the margins are measured

Page rules

Type all, odd, even, a page, or a range such as 3-9 or 12-. If two rules cover the same page, the one lower in the list wins. A page not covered by any rule is left alone.

The file is read and written in your browser. The isolated tool frame loads no advertising or analytics scripts and cannot open network connections.

Good to know

Document properties, metadata and scripts stay in the file, and cropped-away content stays inside the page. This tool opens your PDF with a different reader than the one that drew the preview, and it keeps your pages whole rather than removing content. A PDF built to look different in different readers (for example with an extra hidden version of a page added after its end) can come out different from the preview, so look at the saved file. Fonts and images stay with their pages, and a font used on several pages can reveal which characters appear in the file. To take something out of a document for good, use the redact tool, which turns every page into a picture.

What cropping a PDF really changes

A PDF page has several rectangles. The MediaBox is the full sheet the page is defined on. The CropBox is the region a viewer shows and a printer prints; the specification says its content is clipped to that rectangle when displayed or printed. If no CropBox is present it defaults to the MediaBox. This tool writes a new CropBox for each page you select, computed from your margins. The page content is not moved or redrawn, so text stays text and the quality is unchanged.

There is an option to change the MediaBox as well. Without it, the area outside the CropBox is still stored in the file and some programs, including editors and some print workflows, can show it. With it, the page itself becomes the smaller size, which is what most people mean by a permanent crop. Even then, the drawing instructions that fall outside the new box remain in the file and are only hidden from view.

Important: cropping hides, it does not delete

Do not use cropping to remove sensitive information. Whatever lies outside the new box is still inside the PDF, and anyone with a PDF editor can bring it back by resetting the page boxes. To remove content for good use the redact tool, which rebuilds pages as pictures with the marked areas painted over.

Using the preview

Choose any page number in the preview box. The tool draws that page at screen size with Mozilla’s pdf.js and shades the margins that the matching rule would remove. The preview uses the page as a viewer would show it, including any crop already in the file and any page rotation. Change a margin and the shading moves at once. Nothing is saved until you press Crop and save.

Worked example

A 40-page scanned book has a blank strip about 12 mm wide along each outer edge, a staple shadow about 18 mm wide along each inside edge, and a full-bleed cover that must stay as it is. Because the book was scanned on both sides, the inside edge is on the left of odd pages and on the right of even pages. Add a rule for odd with top 10, right 12, bottom 10, left 18 (millimetres), a rule for even with top 10, right 18, bottom 10, left 12, and a last rule for 1 with every margin 0. Page 1 is covered by both the odd rule and the last rule; the last one wins, so the cover is not trimmed. Look at the preview for page 2, then page 3, to confirm that the shading sits on the blank strips, then save.

Common mistakes

  • Using crop to hide secrets. It does not remove anything. See above.
  • Cropping a rotated page and getting the wrong edge. The tool follows the displayed orientation, so top is the visual top. If a page looks sideways in the preview, rotate it first with the rotate tool.
  • Setting margins in the wrong unit. 10 millimetres is a tidy trim; 10 points is only 3.5 mm. The unit box applies to every rule.
  • Cropping so far that nothing is left. The tool refuses margins that leave less than 0.25 inch on a side and names the page.
  • Expecting automatic trimming. The tool does not detect whitespace. You choose the margins, using the preview.

What this tool does not do

  • It does not auto-detect and remove white space.
  • It does not delete content outside the crop area.
  • It does not resize or re-scale pages. To fit pages onto A4 or Letter, use change PDF page size.
  • It does not open password-protected PDFs. Remove the password first with the remove password tool.
  • It will invalidate a digital signature, because saving rewrites the file.

Limits

Up to 40 MB and 500 pages. The preview only draws one page at a time. Rule page lists accept up to 200 characters.

Related tools

Turn pages with rotate PDF pages, then scale them with change PDF page size, pull out part of a file with split PDF, or reorder with the page organizer. To inspect an existing file’s page boxes, use the PDF box checker.

Frequently asked questions

How do I crop the margins of a PDF without uploading it?

Open the file here, type the top, right, bottom and left margins, check the shaded preview and press Crop and save. The PDF is processed on your device in a sealed frame that cannot make network requests.

Does cropping permanently delete the cut-off part?

No. The area outside the crop is hidden, not erased, and can be recovered by anyone who resets the page boxes. Use the redact tool to remove content.

What is the difference between CropBox and MediaBox?

The MediaBox is the full page. The CropBox is the part a viewer shows and a printer prints. By default this tool sets the CropBox; tick the extra option to set the MediaBox as well.

Can I crop different pages by different amounts?

Yes. Add a rule for each group of pages, such as odd, even or 3-9. When two rules cover the same page, the later one wins.

Why does “top” match the top I see even on a sideways page?

Margins are mapped through the page’s rotation setting, so top, right, bottom and left refer to the page as displayed.

Does it crop automatically to the text?

No. There is no automatic white-space detection. You choose the margins with the help of the preview.

Will cropping reduce the file size?

Usually not. The content outside the crop stays in the file. Use the PDF compressor if you also need a smaller file.

Can I undo a crop?

Not from the new file alone, because the old CropBox is overwritten. Keep your original and crop a copy.

Sources

Checked

Runs entirely in your browser. Nothing you choose is sent or stored.

Common mix-ups

  1. ISO 32000-1 (PDF 1.7) specification, Adobe-hosted copy

Checked against these sources on .

Advertisement
Advertisement