How to Crop an Image Online in 3 Easy Steps
Trim unwanted edges, isolate subjects, or frame exact pixel regions—100% locally in your browser:
Select Your Image
Choose a .jpg, .jpeg, .png, .webp, .avif, or .bmp image from your device, or drag and drop it directly into the workspace.
Frame Visually, by Aspect Ratio, or by X/Y Pixels
Drag the visible crop handles or enter Width, Height, X, and Y in source-image pixels. Choose Freeform, Original, Custom, or a preset such as 1:1, 3:2, Instagram Story (9:16), 16:9, or A4.
Choose Output Format and Download
Select PNG, JPG, or WebP (PNG and WebP preserve transparency; JPG fills transparent areas with white), check the cropped pixel dimensions, and click “Download Image.”
How Does the CompressFly Image Cropper Work?
The CompressFly image cropper keeps the rectangular region you define by dragging the selection box or entering Width, Height, X (horizontal offset), and Y (vertical offset) values in source-image pixels. Pixels outside the selection are removed, and the result uses the crop width and height shown in the workspace.
The crop is saved as a static PNG, WebP, or JPG image. PNG uses lossless encoding for the rendered image. JPG and WebP encoding may affect image quality. PNG and WebP can retain transparency, while JPG fills transparent areas with white. All cropping and format encoding happen 100% locally inside your web browser with zero server uploads. Animation is not preserved.
What "in your browser" means
- No image file is uploaded to an external server
- Crop positioning and image export run locally on your device
- Cropped images download directly from your browser
4 Ways to Frame & Crop Your Image
Combine visual drag handles with pixel-exact coordinate inputs and aspect-ratio locks:
Freeform Visual Cropping
Drag any corner or edge of the crop box freely without aspect-ratio constraints—ideal for trimming away empty margins around handwritten signatures, receipts, and UI screenshots.
Original & Custom Aspect Ratios
Select "Original" to keep your photo's proportions, or "Custom" to set a ratio using the Width and Height fields. A 4:5 crop could use 800 × 1000 px when that region fits within the source image.
Preset Photo, Social, Screen & Paper Ratios
Choose photo ratios such as 1:1, 4:3, and 3:2; Instagram Story (9:16) or X Header (3:1); or screen ratios such as 16:9 and 16:10. Paper presets include A4, A5, A6, and US Letter proportions.
Exact Width, Height & X/Y Coordinates
Type the exact pixel Width and Height of your crop box along with its X (left offset) and Y (top offset) coordinates for repeatable, pixel-perfect sprite and UI extraction.
Which Aspect Ratio & Cropping Workflow Should You Use?
Aspect-ratio presets control the shape of the crop box in source-image pixels. For a fixed output size, physical dimensions, DPI, or a file-size target, use the companion tools below:
| Ratio / Mode | Typical Proportions | Common Use Cases | Companion Tool for Exact Output Specs |
|---|---|---|---|
| Freeform & Original | Unconstrained or native photo ratio | Trimming blank margins from signatures, certificates, and screenshots. | Set a target of 20 KB or 50 KB for cropped signatures. |
Square (1:1) | Equal width and height | Profile avatars, e-commerce product cards, and square Instagram posts. | Use IG Profile Picture Resizer (1080×1080 + Circle Preview) or Resize Image. |
| Social Media & Custom Ratios | Instagram Story (9:16), square profiles (1:1), and X Header (3:1); use Custom for 4:5. | Instagram feeds and Stories, Facebook covers, LinkedIn, and X posts. Use companion tools for fixed output sizes. | Use Social Media Resizer, Instagram, FB Cover, LinkedIn, or X. |
Photo & Screen (3:2, 4:3, 16:9) | DSLR (3:2), classic (4:3), widescreen (16:9) | Website hero banners, presentation slides, and video thumbnails. | Add titles and overlays in 4K YouTube Thumbnail Maker (3840×2160). |
Paper Ratios (A4, A5, A6 & Letter) | ISO A-series and US Letter proportions in source-image pixels | Document framing and print layouts. | For 35×45 mm or 2×2 inch ID photos with 300/600 DPI, use Passport Photo Maker. Use Compress ID Photo for a file-size target, then check the final dimensions and DPI. |
| Multi-Tile Slicing, GIFs & PDFs | Grid slicing or multi-frame/page cropping | Slicing panoramas/carousels, cropping animated GIFs, or trimming PDF margins. | Use Split Image, Crop GIF, or Crop PDF. |
Precision Controls in the Image Cropper Workspace
Frame pixel-exact selections and export as PNG, JPG, or WebP without desktop software:
Visual Drag Box + X/Y Pixel Inputs
Position the crop frame interactively with your mouse or touch screen, then fine-tune the exact Width, Height, X, and Y values down to a single pixel.
Crop at the Displayed Pixel Dimensions
Export the selected region at the crop width and height shown in the workspace. JPG and WebP encoding may affect image quality; PNG uses lossless encoding for the rendered image.
PNG, WebP & JPG Format Switching
Open JPG/JPEG, PNG, WebP, AVIF, and BMP images supported by your browser. Export a static PNG or WebP image with transparency, or choose JPG for a white background behind transparent areas.
100% Local Browser Privacy
Confidential documents, personal signatures, and private photos never leave your device. All cropping and format encoding execute locally in your browser.
Related Image Cropping, Resizing & Social Media Tools
- Resize Image (By Exact Pixels or Percentage)
- Passport Photo Maker (Crop 2×2", 35×45mm & 300 DPI)
- Split Image (Grid & Pixel Block Slicer)
- Social Media Image Resizer (All Platforms)
- Resize Image for Instagram (1:1, 4:5, 9:16)
- Instagram Profile Picture Resizer (1080×1080 Circle)
- Facebook Cover Photo Resizer (851×315)
- Resize Image for LinkedIn
- Resize Image for X (Twitter)
- Add Border to Image (Outside & Inside Frames)
- Rotate Image (−180° to 180°)
- Flip Image (Horizontal & Vertical Mirror)
- Crop Animated GIF
- Crop PDF Pages
Free Image Cropper FAQ
How do I crop an image online?
Select or drag and drop a JPG/JPEG, PNG, WebP, AVIF, or BMP image into the browser workspace. Drag the visible crop handles, enter exact Width, Height, X, and Y pixel values, or pick an aspect-ratio preset. Choose PNG, JPG, or WebP as your output format and click "Download Image" to save the cropped result.
Can I crop an image using exact pixel dimensions and X/Y coordinates?
Yes. Enter Width and Height in source-image pixels, and use X (offset from the left edge) and Y (offset from the top edge) to position the crop box. The exported image uses the crop dimensions shown in the workspace; the selected output format can affect image quality.
What aspect ratio presets are available in the cropper?
The preset list includes 1:1, 4:3, 3:2, 5:4, Instagram Story (9:16), X Header (3:1), 16:9, 16:10, and A4, A5, A6, and US Letter proportions. Freeform and Original are also available. For 4:5 or another ratio, select Custom and enter Width and Height values in that ratio within the source image's bounds.
What is the difference between cropping an image and resizing an image?
Cropping removes content outside a selected region and exports it at the displayed crop dimensions. Resizing changes the pixel width and height by scaling the image. If you want to crop a photo and export it at a fixed platform resolution (like 1080×1080 px or 851×315 px), use our Resize Image tool or Social Media Image Resizer.
Does the image cropper preserve transparent backgrounds?
Yes, when you select PNG or WebP as the output format, any transparent or semi-transparent pixels inside your cropped area are preserved. Standard JPG does not support alpha transparency, so transparent areas are filled with solid white when exporting as JPG.
Which input and output image formats are supported?
The cropper accepts JPG/JPEG, PNG, WebP, AVIF, and BMP images that your browser can open. It exports a static PNG, JPG, or WebP image, so animation is not preserved. For animated GIFs or PDF documents, use our dedicated Crop GIF or Crop PDF tools.
How do I crop a passport or ID photo to exact millimeters or inches (like 35×45 mm or 2×2 inches)?
For ID, visa, and passport portraits that require physical millimeter or inch sizing, head-framing guides, and 300/600 DPI metadata, use our Passport Photo Maker. For a file-size target such as 20 KB or 50 KB, follow up with Compress ID Photo. Check the final file's actual size, pixel dimensions, and DPI after all processing, since later compression or conversion can change these properties.
Are my images uploaded to a server, and is this image cropper free?
No files are ever uploaded—all visual framing, coordinate cropping, and format encoding happen 100% locally inside your web browser on your own computer or phone. The tool is completely free with no watermarks, no daily limits, and no account registration required.