Image Cropper
Our Image Cropper extracts a rectangular region from a JPG, PNG, WEBP, GIF, or BMP image. Specify the X/Y origin and the crop width and height in pixels, or pick a preset (full image, center square, or center same size). The result is exactly the rectangle you asked for — or the largest portion that fits inside the source image if the requested region extends past an edge.
How to Use the Image Cropper
1. Upload Your Image
- Drag and drop a JPG, PNG, WEBP, GIF, or BMP file onto the drop zone
- Or click to browse and select a file from your device
- Files up to 10MB are supported
2. Set the Crop Region
- X and Y are the top-left corner of the crop rectangle, measured in pixels from the top-left of the source image
- Width and Height are the size of the crop rectangle
- All four values are in pixels and must be non-negative (X/Y) or positive (W/H)
- Or click a preset:
- Use full image — region = entire source (X=0, Y=0, W=source width, H=source height)
- Center square — square crop the size of the source's shorter side, centered
- Center same size — keep the current W/H but recenter the region
3. Preview and Download
- The cropped image keeps the same file format as the original
- The filename is suffixed with the actual crop dimensions (for example,
photo-crop-600x400.jpg) - Download with one click
Key Features
Pixel-Exact Crops
- Specify any X/Y origin and any W/H size
- The result is exactly the rectangle you requested (clamped to the image bounds if the region extends past an edge)
Smart Clamping
- When the requested crop extends past an image edge, the output is automatically clamped to the source bounds
- The response filename and result subtitle both report the actual (post-clamp) crop size so you can tell what was asked vs. what was returned
Three Quick Presets
- Use full image — no crop, the entire image comes through unchanged
- Center square — the most common social-media aspect (1:1 from a rectangular source)
- Center same size — keep your W/H values but center the region
Server-Side Performance
- Crops run on the server with PHP's GD extension — fast and accurate
- The crop itself is a single
imagecrop()call; no resampling, no quality loss
Format Preservation
- The cropped file uses the same format as the original (JPG → JPG, PNG → PNG, etc.)
- PNG, WEBP, and GIF keep their transparency
- JPG and BMP have transparent pixels filled with white (those formats don't support transparency)
Use Cases
1. Social Media
- Crop a portrait photo to a square for Instagram, X (Twitter), or Facebook
- Use Center square to quickly produce a 1:1 aspect from any source
2. Profile Photos and Avatars
- Crop the face area of a larger photo to a square avatar size (256×256, 512×512)
- Use Center same size to keep the aspect while centering on the subject
3. Image Cleanup
- Remove watermarks, timestamps, or unwanted borders from a screenshot
- Trim the edges of a scanned document to the actual page area
4. Design and Layout
- Extract a specific tile or section of a larger image
- Crop a hero photo to the exact dimensions your template requires
5. Web Publishing
- Crop a full-width banner to a specific featured-image size
- Trim stock photos to focus on the subject matter
Technical Features
- Server-Side Processing: Crop runs on the server with PHP's GD extension — accurate and reliable
- Same-Format Output: No format conversion happens — what you upload is what you download
- Automatic Cleanup: Uploaded files are processed and discarded, not retained
Understanding Crop Coordinates
The X/Y Origin
X and Y are the top-left corner of the crop region, measured in pixels from the top-left corner of the source image. So X=0, Y=0 starts at the very top-left; X=100, Y=50 starts 100 pixels from the left and 50 pixels from the top.
Width and Height
Width and height are the size of the crop rectangle. The crop extends from (X, Y) to (X + width, Y + height).
Clamping
If the requested region extends past the image edge, the API clamps the crop to the source bounds. For example, cropping a 1000×500 image with X=900, width=200 results in a 100×500 region (the right edge is clamped to the source's right edge).
Limitations
- This tool accepts JPG, PNG, WEBP, GIF, and BMP. HEIC, TIFF, and SVG are not accepted directly — to crop one of those, first run it through the Image Converter to flatten it to a raster format, then upload the result here.
- Maximum crop dimensions are 8000×8000 pixels.
- Cropping is a destructive operation — the cropped image does not include any pixels from outside the requested region. Use the Image Resizer if you need to change dimensions without removing content.
Remember: cropping removes pixels from the edges of the image. If you want to change the pixel size without removing content, use the Image Resizer instead.