Media
Image Resizer
Resize and compress images online, free, instant, and private. Upload any image, set your target dimensions or percentage, adjust quality, and download. Everything runs in your browser.
Drop an image here or click to browse
Supports JPEG, PNG, WebP, GIF, BMP
JPEG vs. PNG, Which Format to Choose?
JPEG, Best for photos
- Lossy compression, smaller file size
- 85% quality: 3–5× smaller, no visible loss
- Does not support transparency
- Ideal for: photographs, social media, web banners
PNG, Best for graphics
- Lossless compression, no quality loss
- Larger file size than JPEG
- Supports transparency (alpha channel)
- Ideal for: logos, screenshots, UI graphics
Tips for Reducing Image File Size
- Use JPEG for photos at 80–90% quality. The human eye cannot detect compression artefacts above 80%. Files are typically 3–5× smaller.
- Resize to the display size. If an image is shown at 800px wide on your site, there is no benefit to uploading a 3000px original.
- Avoid upscaling. Enlarging an image beyond its original size adds file size without adding detail, it only blurs.
- PNG for transparency, JPEG for everything else. Choosing PNG for a photograph can result in a file 5–10× larger than JPEG with no visible benefit.
- Standard web widths. 1920px for full-width hero images, 1280px for content images, 800px for thumbnails and article photos.
How the Image Resizer Works
When you upload a file, the browser loads it into a hidden Image object to read its natural width and height. Your target dimensions, format, and quality never leave that browser tab: nothing is uploaded to a server at any point, so processing is instant and works even on a slow connection.
Resizing itself uses the HTML5 Canvas API. The tool draws the source image onto an off-screen canvas set to your target width and height with drawImage(), which applies the browser's built-in smoothing to blend pixels as it scales. The canvas is then exported with toBlob() at your chosen format and quality, producing the downloadable file.
With Lock aspect ratio enabled (the default), changing the width field automatically recalculates the height as width × (originalHeight / originalWidth), and the height field works the same way in reverse, so a photo can never end up stretched or squashed. The percentage slider scales both dimensions from the original at once (10% up to 200%), which is faster than typing exact pixel values when you just want "half size" or "double size." The preset buttons jump straight to common web widths (1920px, 1280px, 800px) or to 50/75/100% of the original.