Local processing · no uploads
Resize Image to Exact Dimensions
Enter a width and height in pixels and resize any JPG, PNG or WEBP image on your own device. Fit keeps the full frame, fill crops to cover — and you can still cap the final file size in KB.
Drag & drop images here
JPG, PNG, WEBP, HEIC, GIF, BMP or AVIF · up to 30 files at once
Files are processed on your device and never uploaded
How image resizing works here
The image is decoded into an offscreen canvas, scaled with the browser's high-quality smoothing, and re-encoded. Because everything happens locally, a 20-megapixel photo is resized in well under a second and no copy of it is ever transmitted.
- Leave one field empty to scale proportionally by the other dimension.
- Use fill when a form demands an exact square, such as a 600×600 passport photo.
- Combine with a target size when the form specifies both dimensions and a KB limit.
Related tools
Why this compressor actually reaches your limit
Exact target file size
Say “200KB” instead of guessing a quality percentage. A binary search finds the highest quality that still fits your limit.
Batch compression
Add up to 30 images, optimize them in one run, and download everything as a single ZIP archive.
100% private
Images are decoded and re-encoded on your own device with the Canvas API. Nothing is uploaded to any server.
Automatic resizing
When quality reduction alone cannot reach the target, pixel dimensions are reduced step by step until it fits.
Your images never leave your device
Compression runs in a Web Worker inside your browser using the HTML5 Canvas API. There is no upload step, no temporary storage and no server-side copy — which is exactly why passport photos, ID scans and exam documents are safe to process here. Read the privacy policy.
Frequently asked questions
What is the difference between fit and fill?
Fit scales the whole image so it sits inside the box you entered, so nothing is cropped and the final size may be smaller than requested. Fill covers the entire box and trims whatever hangs over the edges.
Can I resize and compress at the same time?
Yes. Enter your dimensions, keep the target file size switch on, and the image is resized first and then compressed to that limit.
Does resizing reduce quality?
Scaling down is high quality because the browser averages neighbouring pixels. Scaling up cannot invent detail, so avoid entering dimensions larger than the original.
Can I resize many images to the same size?
Yes. Add the whole batch, set one width and height, and every file is processed with the same rules.
More image tools
Browse all toolsCompress to a target size
Resize images
- Resize image (custom size)
- Passport photo (600×600)
- Full HD (1920×1080)
- Instagram square (1080×1080)
