Image Cropper
Crop an image to an exact region.
About this tool
Upload an image, then either type the exact crop width, height and starting point in pixels, or choose an aspect ratio and get the largest centered crop of that shape. JPEG stays JPEG; everything else saves as PNG.
How to use
How it works
The crop box is clamped inside the image, so a box that would hang over an edge slides back until it fits. With an aspect ratio and no size, the tool takes the biggest rectangle of that ratio that fits. With a ratio and one side filled in, the other side follows.
Worked example
Square crop of a landscape photo
- Input
- 1000 x 800 px photo, aspect 1:1
- Output
- 800 x 800 px, starting 100 px from the left
- Walkthrough
- The largest square that fits is 800 px. It is centered, so the left edge sits at (1000 - 800) / 2 = 100 px.
Limitations
- You enter numbers; there is no drag-on-image crop box.
- Transparency is flattened to white when the source is a JPEG.
- Very large images depend on your device memory.
Questions
How do I crop to an exact size?
Can I crop to 16:9 or 1:1?
What happens if my box is bigger than the image?
Is my image uploaded?
Features
- Pixel-exact crop
- Aspect ratio presets
- Centered by default
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Reduce image size with srcset
Chrome for Developers
Serving the right resolution—the goal of resize/compress tools.
Watch on YouTubeResponsive images and art direction
Chrome for Developers
Crop and art direction before exporting optimized assets.
Watch on YouTube
- Use WebP images
web.dev
When next-gen formats beat shipping oversized PNGs.
- Use image CDNs to optimize images
web.dev
Production optimization context after local browser edits.