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.
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
How do I crop a PDF?
- Upload a PDF.
- 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
- 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
- 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.
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.