Image Resizer
Resize an image to exact dimensions, with or without the aspect ratio locked.
In-depth guide
Image resizer: aspect lock and fitting inside a box
Resize into a pixel box with or without aspect lock, then check actual dimensions and output quality.
Key figures at a glance
- Aspect lock on a fresh page
- On
- With the lock enabled, both dimensions define a bounding box.
- Default output
- PNG
- The fresh page offers PNG, JPEG and WebP.
- Default quality
- 92
- Used by JPEG/WebP encoding; PNG ignores this quality setting.
- Canvas area cap
- 16,777,216 pixels
- Large sources are reduced before processing; large resampling targets are capped too.
What this tool changes
Resize changes pixel dimensions, not just a display-size tag. On loading, width and height are filled from the oriented source. The aspect lock keeps the source proportions by fitting inside the requested width-and-height box; the fields do not automatically become the exact output dimensions.
With the lock off, the image is stretched to both requested dimensions, which can distort it. Fractional results are rounded to whole pixels. Each option change starts from the loaded source, so it does not repeatedly resample the previous preview.
Worked examples
These examples start with a 1600 × 1200 working image and use the real resize function.
| Input or setting | Result |
|---|---|
| 800 × 800 box; lock on | 800 × 600 |
| 800 × 800; lock off | 800 × 800 — stretched |
| 800 × 200 box; lock on | 267 × 200 |
Use the controls
- Choose the image and check whether preserving its proportions matters.
- Enter positive whole-pixel width and height; leave the lock on to fit inside that box.
- Compare the actual output dimensions with your receiving app's requirements.
- Select a format, download and inspect the image at its intended size.
Output and limits
The tool decodes and processes one image locally in your browser without uploading it for conversion. Original camera, date, GPS and source colour-profile metadata are not copied. Animated input becomes a still image. Unsupported input depends on the browser's decoder.
PNG stores the resulting canvas pixels losslessly and keeps alpha. JPEG adds lossy encoding and composites transparent areas onto white. WebP normally keeps alpha with lossy colour encoding at the default quality. If WebP encoding is unsupported, the tool reports a PNG fallback and names the download .png. The preview is made before JPEG/WebP compression: inspect the downloaded file for compression artefacts.
Check the result dimensions, especially for large images. The source can be reduced to the 16,777,216-pixel area cap before the operation; a larger resampled result is capped again. The actual sizing function maps 8000 × 6000 to 4729 × 3547. A larger file or pixel count does not restore detail already lost.
For other changes, download the result and load it into the next tool; these pages do not maintain a combined edit history. Use the image converter for a different output format.
Frequently asked questions
Is my image uploaded anywhere?
No. The image is decoded and re-encoded entirely in your browser using a canvas. It never leaves your device, is never sent to a server, and nothing is stored.
Will the quality drop?
PNG keeps every pixel. BMP also keeps every pixel but flattens transparency onto white. WebP and JPEG are lossy at the default quality of 92, so the quality setting trades file size against fidelity. Decoding an already-lossy JPEG or WebP never brings back lost detail.
Why did my photo come out the right way up?
Photographs from phones store an EXIF orientation tag rather than rotating the pixels. This tool reads that tag and applies the rotation, so the result matches what you saw in your gallery.
Is there a size limit?
Very large images are scaled down to stay within 16,777,216 pixels (about 16.7 million), because some browsers, notably iOS Safari, produce a blank image beyond that. The tool applies the cap in every browser and does not warn you. The aspect ratio is kept.
Sources
- WHATWG — HTML canvas transformations, drawing and serialization
- W3C — PNG specification, third edition
- Google — WebP compression and alpha
This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.