Resize Image
Resize an image to exact dimensions or a percentage.
🔒 Runs entirely in your browser — your image is never uploaded.
Drag & drop an image here, or click to browse
Original:
How Resize Image works
How does the resize actually happen?
The tool reads the source image's natural width and height, sets a canvas to your target dimensions, and calls ctx.drawImage(img, 0, 0, width, height) — the browser's own image scaling does the resampling as it draws. The result is then exported with canvas.toBlob() using the original file's MIME type, so a JPG stays a JPG and a PNG stays a PNG.
When is this the right tool to reach for?
It's for the everyday case of shrinking a photo to fit a specific pixel size — a profile picture, a product thumbnail, an image with a maximum-dimension requirement for an upload form. The 50%/25%/100% shortcut buttons make quick scaling one click instead of doing the arithmetic yourself.
Does locking the aspect ratio actually prevent distortion?
Yes — with "Lock aspect ratio" checked, typing a new width recalculates the height (and vice versa) from the original ratio before the canvas ever redraws, so the output can't come out stretched. Unchecking it lets you set width and height independently, which will stretch or squash the image if the new ratio doesn't match the original.