Image Resize, Crop & Compress
Crop a large AI-generated image to exact X/Y/width/height, resize it to 512×512, 256×256 or custom dimensions, and compress it under 1 MB. Crop, resize and compress work independently or together, entirely in your browser.
FreeOnline Tool
Loading…
Rate this tool
Your rating helps others decide whether this tool is worth using
How to Use
- Upload or drag in an image, or click "Load sample image" to try it quickly.
- Pick a mode: crop only, resize only, compress to 1 MB only, or crop + resize + compress. Each capability works independently or in combination.
- Crop: drag the crop box on the preview, or type X / Y / width / height directly. Click "Use full image" to reset.
- Resize: tick common sizes such as 512×512 and 256×256, or add a custom width/height. Multiple sizes can be generated at once. Fit modes: cover (fill and center-crop without stretching), contain (show the whole image with padding) and stretch (fill by stretching).
- Compress: tick "Limit file size" and enter a target such as 1 MB or 500 KB. The tool searches for the highest quality that stays within the limit; if even the minimum quality is too large, enable "Reduce resolution if needed" to keep shrinking until it fits.
- Click "Generate images", download each result, or click "Download ZIP" to get every size at once.
Features
- Crop, resize and compress are independent: crop-only outputs the selected crop at its original size; resize-only uses the full image by default; compress-only keeps the cropped dimensions and only adjusts quality or resolution.
- Crop with exact X / Y / width / height values, or drag the crop box to move it and drag outside it to select a new area. Values are automatically clamped to the image bounds.
- Five built-in square sizes (1024, 512, 256, 128, 64) with multi-select batch output, plus any custom width/height from 1 to 8192 px.
- Target file size in KB or MB, using a binary search across 5%–95% quality to find the highest quality under the limit.
- When the minimum quality is still too large, optionally reduce resolution step by step (down to 32 px) to get under the target size.
- WebP, JPEG and PNG output: WebP is smallest and supports transparency, JPEG has the widest compatibility, and PNG is lossless but cannot be size-controlled through quality.
- All decoding, Canvas drawing, encoding and ZIP packaging happen locally in the browser. Images are never uploaded to a server.
Use Cases
AI avatar and icon sizing
Crop an AI-generated image to the avatar area and produce both 512×512 and 256×256 platform-ready sizes.
Meet a 1 MB upload limit
Keep the original dimensions and automatically compress a large image under the platform limit.
Extract an exact region
Crop a product photo, cover or detail using precise X/Y/width/height values and download it without resizing.
Batch thumbnail sizes
Select 1024 / 512 / 256 / 128 / 64 or add custom sizes, generate them all, and download as a ZIP.
FAQ
Can a 4K image be compressed under 1 MB?
Yes. Choose compress-only or a combined mode. The tool first finds the highest usable quality; if the minimum quality still exceeds the target, it progressively reduces resolution until the file fits (or reaches the 32 px floor). The actual output dimensions are shown in the result.
Can I generate 512×512 and 256×256 at the same time?
Yes. Tick both sizes under Output sizes and click Generate, or use Download ZIP to get all sizes in one archive.
Do crop and resize interfere with each other?
The order is crop first, then resize. For crop-only, tick "Do not resize" and clear the other sizes. For resize-only, click the resize-only mode and the crop area is reset to the full image.
Why can PNG not reach the target size?
PNG is lossless, so the quality parameter has no effect. Use WebP or JPEG when you need strict file-size control, or reduce the output dimensions.
Are my images uploaded to a server?
No. Decoding, cropping, resizing, compression and ZIP packaging all run in your browser. Nothing is uploaded.