Drop an image or click to upload
What does an image resizer do?
Resizing scales an image to new pixel dimensions by drawing it onto a canvas at the target width and height, using the browser's built-in interpolation to fill in or discard pixels as needed. Unlike cropping, nothing is cut off — the entire original image is retained, just stretched, shrunk, or squashed to fit the new dimensions.
The Lock ratio option constrains width and height to the source image's original aspect ratio, so typing a new width automatically recalculates a proportional height (and vice versa). Turning it off lets you set width and height independently, which is useful when you need an exact size but accept some distortion — though for most use cases you'll want the ratio locked to avoid stretched-looking output.
When to use it
Use it to shrink oversized photos before uploading them somewhere with a file-size limit, generate a specific pixel size required by a spec (app store icons, ad banners, social media dimensions), or scale down a screenshot so it fits inline in documentation without needing CSS to constrain it. Downscaling large images is also a straightforward way to cut file size significantly, since fewer pixels means less data to encode regardless of format.
If you need to both resize and change the file format (say, PNG to WebP), resize first — the format converter re-encodes whatever pixels you feed it, so getting the dimensions right beforehand avoids doing a second lossy pass.
Example
Upload a 4000×3000 camera photo — the tool detects its dimensions and pre-fills them. Set width to 1200 with Lock ratio on, and height auto-updates to 900, preserving the 4:3 aspect. Click Resize and the output renders at exactly 1200×900, downloaded as resized-1200x900.png — a fraction of the original file size with no visible quality loss at typical web display sizes.
How to use the Image Resizer with Locked Aspect Ratio tool
- 1
Upload or drop an image
The tool reads its natural width and height and pre-fills the size fields.
- 2
Set target dimensions
Type a new width or height — with Lock ratio on, the other dimension updates automatically to match the original aspect ratio.
- 3
Click Resize
Draws the image onto a canvas at the new size using the browser's built-in scaling.
- 4
Download the result
Saves the resized image as a PNG named with its exact new dimensions.
Frequently asked questions
Is my image uploaded to a server?
No. Resizing happens entirely on an in-browser canvas — the file is read locally with FileReader and never transmitted anywhere.
Will resizing distort my image?
Only if Lock ratio is off and you set a width/height combination that doesn't match the original aspect ratio. Keep it on to scale proportionally.
Does upscaling a small image improve its quality?
No — enlarging an image just stretches existing pixels and interpolates between them, it can't recover detail that wasn't captured in the original. Upscaling small images tends to look soft or blurry.
What format is the output?
Always PNG, regardless of the source format. Run the result through Image Format Converter afterward if you need JPEG or WebP for smaller file size.
Related on TechLogHub
Related Image Tools
Image to Base64
Convert images to Base64-encoded data URIs
Base64 to Image
Convert Base64 strings back to downloadable images
Image Cropper
Crop images with a visual selection tool
Image Format Converter
Convert images between PNG, WebP, and JPEG formats
Image Color Palette Extractor
Extract dominant colors from any image
Favicon Generator
Generate favicons in multiple sizes from an image
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

