Image Resizer
Resize any image to exact pixels or a percentage, lock the aspect ratio, and export as JPEG, PNG, or WebP — right in your browser. Your photo is never uploaded; it never leaves your device.
Drop an image here, or click to choose
How resizing works in the browser
The image is drawn onto an HTML <canvas> at your chosen dimensions using drawImage(), then read back out as a compressed file with canvas.toBlob(). Because the canvas and the file both live in memory, the picture never touches a server — the whole thing is client‑side JavaScript.
Aspect ratio
With Lock aspect ratio on, changing the width recomputes the height (and vice‑versa) from the original ratio, so nothing stretches. Turn it off to squash or stretch deliberately.
Downscaling quality & format
The browser smooths as it scales (bilinear/bicubic sampling). Big reductions look best done in one step, which is what this does. JPEG and WebP are lossy — the quality slider trades file size against fidelity; WebP is typically 25–35% smaller than JPEG at similar quality. PNG is lossless (no quality slider) and keeps transparency; use it for logos and screenshots, JPEG/WebP for photos.
Privacy
Files are read with the local FileReader/object‑URL APIs and processed in memory. Nothing is uploaded, stored, or logged.