Image Compressor
Image Compressor online, free and private. Process images instantly on your device.
Make a thumbnail that fits within a maximum size while keeping the aspect ratio — and it never enlarges a small image. Downloads as a PNG.
Your browser is preparing the tool. It runs 100% locally.
Set a maximum size in pixels and the tool shrinks your image so its longer side fits within that box, keeping the aspect ratio. It only ever scales down — a small image is left at its original size, never blown up. The default max is 300 pixels and the result downloads as a lossless PNG, all in your browser.
This makes a thumbnail — a smaller version of your image that fits within a maximum size you set. The aspect ratio is kept, so nothing is stretched, and the longer side ends up at or below your chosen limit.
Crucially, it only shrinks. If your image is already smaller than the maximum, it is left untouched rather than enlarged, because upscaling would only add blur.
Drop or pick an image and set the maximum size in pixels.
The tool works out a single scale factor — the smaller of the max divided by the width and the max divided by the height — capped at 1 so it never enlarges. The image is redrawn at that scale.
Download the thumbnail as a PNG. Nothing is uploaded.
scale = min( maxSize ÷ width , maxSize ÷ height , 1 )
output = (width × scale) by (height × scale)A 1200 × 800 image with max 300: scale = min(0.25, 0.375, 1) = 0.25, so the thumbnail is 300 × 200.The min with 1 is what stops it ever enlarging — a small image keeps its original size.
Your image is resized entirely in your browser and never uploaded — there is no server.
No account and no stored copy; the thumbnail exists only on your device.
The canvas re-encode means the thumbnail carries no EXIF or GPS metadata from the original.
| Fit | Longer side at or below the max |
|---|---|
| Default max | 300 pixels |
| Aspect ratio | Preserved |
| Scaling | Down only, never enlarges |
| Output format | PNG (lossless) |
| Metadata | EXIF/GPS stripped |
| Processing | 100% in-browser |
It fits the image within a square box of the maximum size, so the longer side ends up at or below the maximum and the shorter side is smaller still. It is not an exact width-by-height resize.
It never upscales. An image already smaller than the maximum comes out unchanged, because enlarging it would only soften the result without adding detail.
The aspect ratio is preserved, so the thumbnail is never stretched or squashed.
The output is a lossless PNG. For the smallest possible file at thumbnail size, run it through a converter or compressor afterwards.
Shrink images to a consistent maximum size for a grid or list.
Make small preview images so a page is not loading full-size photos.
Produce a lightweight version to share quickly.
Cap a set of mixed-size images to the same maximum.
For exact pixel dimensions use the image resizer; to crop to a specific shape use the image cropper.
Scales the image down to fit inside your chosen maximum box, keeping the aspect ratio, and never upscales (the scale is capped at 1) — a lossless PNG made entirely in your browser.
Image Compressor online, free and private. Process images instantly on your device.
Edit and convert Image Resizer right in your browser — no upload, no quality loss.
Edit and convert Image Cropper right in your browser — no upload, no quality loss.
Favicon Generator online, free and private. Process images instantly on your device.
Use Image to PDF to transform images locally — fast, secure and watermark-free.
Edit and convert PNG to WebP Converter right in your browser — no upload, no quality loss.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.