Crop a PDF
Crop PDF sets the visible page area of every page to a rectangle you define by x, y, width and height in points. Content outside the box stays in the file, so cropping neither shrinks the file nor redacts.
Drag and drop a file here, or click to choose
Accepts PDF · up to 500.0 MB per file
You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.
Crop sets MediaBox and CropBox on every page to the rectangle `x,y,width,height`. Content streams are not clipped. Anything drawn outside the new box may still exist in the file and can reappear if a later tool resets the boxes.
Coordinates are in PDF space (origin typically lower-left, units in points). The same rectangle is applied to every page. There is no per-page crop and no visual picker.
Required fields: `x`, `y`, `width`, `height`. Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.
This is not a scanner deskew and not Extract Image Scans. If you need to throw away page objects, use Remove Pages.
The four numbers describe the part to keep. `x` and `y` are the lower-left corner of the kept rectangle, measured from the lower-left corner of the page, and `width` and `height` extend up and to the right from there. The tool writes the box as left `x`, bottom `y`, right `x + width`, top `y + height`. A point is 1/72 inch, so a letter page is 612 by 792 points and an A4 page is about 595 by 842.
Work out the rectangle before you run it. To cut a 36-point (half-inch) margin off all four sides of a letter page, keep `x=36`, `y=36`, `width=540` (612 minus 72) and `height=720` (792 minus 72). To keep only the top half of a letter page, use `x=0`, `y=396`, `width=612`, `height=396`. Defaults of 0, 0, 200, 200 are placeholders that keep a small square at the bottom-left, so always replace them.
Because the same rectangle goes onto every page, crop works best on documents where all pages share a size and layout, such as a uniform scan or an exported report. On a file that mixes sizes, a box that suits page 1 may cut off content on a larger page or leave a wide empty area on a smaller one. In that case split the file by size, crop each part, and merge them back.
Cropping is a viewing change. After it, viewers show only the new rectangle and the page size becomes the rectangle's size, but the text and images outside it are still stored in the file. Anyone who resets the page boxes, or extracts text with a tool that ignores them, can get that content back. Do not use crop to hide a name, a number or a signature; use a redaction tool, which removes the content.
If the result looks wrong, the usual causes are a swapped axis, using pixels or millimetres instead of points, or taking `y` from the top. A box larger than the page does not add content; it just creates blank space around the original. Correct the numbers and run it again on the original file, not on the already-cropped copy.
Features
- Writes MediaBox/CropBox on all pages
- Does not strip content outside the box
- Same rectangle on every page; units are points
- Anonymous API at /api/v1/general/crop
When to use this tool
- Trim a consistent margin on a uniform report
- Hide headers visually when you accept that they remain in the file
- Match a portal that inspects CropBox
- Remove scanner borders from a batch of equally sized scanned pages
- Cut a slide export down to the content area before including it in a handout
How do I crop a PDF?
- Upload the PDF you want to trim to a visible region.
- Set x, y, width, and height in points. Origin is lower-left on typical pages.
- Click Process and download the PDF.
- Check the visible area. Hidden marks may still be in the file.
Limits and edge cases
- Not a content clip or redaction
- No per-page rectangles
- No millimetre UI
- Defaults of 200 by 200 at the origin are not a sensible crop for a normal page
- A mixed-size file needs splitting by size before one rectangle fits all pages
- Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.
Examples
- Keeping x=36, y=36, width=540, height=720 on a 612 by 792 letter page leaves a half-inch trimmed from each edge, and the output pages are 540 by 720 points
- x=0, y=396, width=612, height=396 keeps the top half of every letter page, which suits a form whose bottom half is a stub you do not want to show
- x=0 y=0 width=200 height=200 shows a 200pt square from the lower-left
- Content drawn at x=500 can still be recovered after a later box reset
Privacy for this tool
Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.
Frequently asked questions
- Is content outside the crop deleted?
- No. Only the page boxes change. Redaction-grade removal needs a different pipeline.
- Can I crop page 1 differently from page 2?
- No. One rectangle applies to every page.
- Are x and y from the top-left?
- PDF page space is usually origin lower-left. Top-left guesses will look wrong.
- What units are width and height?
- PDF points (1/72 inch), not pixels and not millimetres.
- How do I crop a letter page by half an inch on every side?
- Use x=36, y=36, width=540 and height=720. Half an inch is 36 points, and each dimension loses 72 points in total (612 by 792 becomes 540 by 720).
- Why did my page come out blank or wrong?
- The rectangle probably does not overlap the content. Check that x and y are measured from the bottom-left, that the values are in points, and that x + width and y + height do not run past what you meant to keep.
- Can I crop the whole document to a different size per page?
- No. Every page gets the same rectangle. For different crops, split the file into groups, crop each group on its own and merge the results.
- Is Crop safe for removing confidential information?
- No. The cropped-away content stays in the file. Use Auto Redact to remove content, or Remove Pages to drop whole pages.
- Should I use Crop or Scale Pages?
- Crop changes which area is visible and the page size. Scale Pages resizes the content to fit a different page size. Use Crop to trim margins and Scale Pages to change paper size.
Last updated:
Call this from code
Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.
curl -X POST "https://pdf123.xyz/api/v1/general/crop" \
-F "[email protected]" \
-F "x=0" \
-F "y=0" \
-F "width=200" \
-F "height=200" \
-o output.pdfAlso available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference
Use it from an AI agent
SkillClaude Code, Codex, Cursor and other AI agents can run Crop PDF for you with this skill: /skills/pdf123-crop.md
Files are used only for this processing job and deleted automatically afterward.