What this image resizer does
The resizer makes a smaller copy of a photo or graphic so it fits inside a maximum width and height. Use it before emailing photos, uploading to a form with a size limit, adding images to a website, or posting on a platform that recompresses large files. The work happens on your device: the browser decodes the image, scales it on a canvas and saves it again. Nothing is uploaded, which makes it safe for ID scans, documents and private photos.
How to resize an image
- Choose an image. JPG, PNG, WebP, GIF, BMP and AVIF files are accepted, up to 40 MB.
- Set the maximum width and height in pixels. Leave one empty to limit only the other side.
- Pick the output format. Keep original format saves JPG as JPG, PNG as PNG and WebP as WebP; other formats are saved as PNG.
- For JPEG and WebP, set the quality. 85 is a good default.
- Download the result. A preview, the new dimensions and the file size before and after are shown.
How the new size is worked out
The image is scaled by one factor for both sides, so it never looks stretched:
scale = min(1, max width ÷ width, max height ÷ height) new width = round(width × scale) new height = round(height × scale)
The 1 in the formula means the image is never enlarged. If it already fits, it is only re-encoded. For large reductions the image is halved in steps before the final resize, which keeps fine detail such as text and hair sharper than one big jump.
Choosing a format
| Format | Best for | Notes |
|---|---|---|
| JPEG | Photos | Lossy; no transparency, so transparent areas turn white |
| PNG | Screenshots, logos, line art | Lossless and supports transparency; large for photos |
| WebP | Photos and graphics on the web | Usually smaller than JPEG at similar quality; supports transparency |
The quality setting applies to JPEG and WebP only. Around 80 to 85, most people cannot see a difference from the original at normal viewing size. Below about 70, blocky artifacts appear around edges and in smooth areas such as skies.
Worked examples
A phone photo for email
A 12-megapixel photo of 4032 × 3024 pixels with a 1600 × 1600 limit is scaled by 1600 ÷ 4032 = 0.397 and becomes 1600 × 1200. That is about 16% of the original pixel count, and saved as JPEG at quality 85 the file is usually a fraction of the original's size.
A portrait for a profile
A 1080 × 1920 portrait with a maximum width of 1200 and no height limit stays 1080 × 1920, because it already fits. Set the height limit to 800 instead and it becomes 450 × 800.
A logo with a transparent background
A 2000 × 2000 PNG logo resized to 512 × 512 should stay PNG or WebP. Saved as JPEG, its transparent background would turn white.
Tips and common mistakes
- Resize, then compress. Pixel dimensions drive file size far more than quality settings do. A 1600-pixel JPEG at quality 90 is usually smaller than a 4000-pixel one at 60.
- Do not resize the same JPEG repeatedly. Each save loses a little detail. Keep the original and resize from it.
- Size for the screen. For a web page, twice the displayed width covers high-density screens: an image shown 800 px wide needs about 1600 px.
- Metadata is removed. The canvas does not carry EXIF data, so GPS location, camera details and capture date are dropped. That protects your privacy, but keep the original if you need the date.
Limits and privacy
Images larger than 100 megapixels are refused to keep the tab stable, and the maximum output size is 16,000 pixels per side. Animated GIFs keep only their first frame. HEIC photos open only in browsers that can decode them, mainly Safari. Some browsers cannot save WebP; the tool then saves PNG and tells you. The image is processed only in your browser and the page makes no network requests.