About the Image Resizer
This image resizer changes the pixel dimensions of a photo or graphic right in your browser. Upload a JPG, PNG, WebP or GIF, then scale it by a percentage, set a new width or height and let the other side follow the aspect ratio, fit it inside a box such as 1920 × 1080, or force exact dimensions. Preview the result, choose JPG, PNG or WebP output and download the resized file.
It is ideal for shrinking camera photos for email, websites and online forms, making images meet upload limits such as “at least 1080 px wide”, preparing product shots or social-media posts, and creating thumbnails. Because everything happens locally with the HTML canvas, your images never leave your device, and there is no watermark or sign-up.
Downscaling uses high-quality smoothing in several halving steps for sharp results. Upscaling is possible but cannot add real detail, so enlarged images look softer. Output is limited to 8192 pixels on the longest side, a safe canvas limit for most browsers, and metadata such as EXIF location data is not copied to the new file.
How to use the image resizer
- 1Click Upload or drop a JPG, PNG, WebP or GIF image onto the tool.
- 2Choose how to resize: percentage, width, height, fit inside a box or exact size.
- 3Enter the percentage or the target pixel dimensions.
- 4Pick the output format and, for JPG or WebP, the quality.
- 5Check the preview and new dimensions, then click Download.
Formula and method
To keep the image from stretching, the side you do not set is derived from the original aspect ratio and rounded to the nearest whole pixel. Percentage scaling multiplies both sides by the same factor, and “fit inside a box” uses the smaller of the two scale factors so the whole image fits within the box without cropping. Exact mode uses both numbers as given and may distort the picture.
Because pixel count scales with the square of the linear size, halving the width and height keeps only 25% of the pixels. In the browser, the image is drawn onto a canvas at the new size with high-quality smoothing (in halving steps for large reductions) and re-encoded as JPG, PNG or WebP at the chosen quality.
- W, H
- Original width and height in pixels
- p
- Scale percentage
- s
- Uniform scale factor for fit-in-box mode
Worked examples
12 MP photo scaled to 25%
Scaling 4000 × 3000 by 25% gives 1000 × 750 pixels. Because both sides shrink, only 6.25% of the pixels remain (0.75 MP of 12 MP), which is ideal for email or the web.
Set the width to 1080 px for social media
Setting the width to 1080 px keeps the 4:3 shape, so the height becomes 1080 × 3000 ÷ 4000 = 810 px — 27% of the original width.
Fit a portrait photo inside 1920 × 1080
The height limit is the tighter one: 1080 ÷ 4032 = 0.268 versus 1920 ÷ 3024 = 0.635. Scaling by 0.268 gives 810 × 1080 px, so the whole portrait fits in a Full HD frame.
Exact 1200 × 1200 square from a 3:2 image
Exact mode forces 1200 × 1200 px, squeezing the 3:2 picture horizontally. Crop to a square first if you do not want any distortion.
Frequently asked questions
How do I resize an image without losing quality?+
Downscaling always discards pixels, but keeping the aspect ratio and using high-quality smoothing keeps it sharp. Save as PNG, or JPG/WebP at 85–95% quality, and avoid resizing the same file repeatedly.
Are my photos uploaded to a server?+
No. The image is decoded, resized and re-encoded entirely in your browser using the canvas API, so it never leaves your device.
What size should images be for websites?+
Most full-width web images look sharp at 1600–2400 px wide, and content images at 800–1200 px. For high-density screens, export at about twice the size you display them.
Can I make an image bigger?+
Yes, up to 8192 px on the longest side, but enlarging cannot create detail that was not captured, so the result will look softer. Dedicated AI upscalers can do better for large enlargements.
Does resizing remove EXIF data?+
Yes. The new file is created from pixels only, so camera details and GPS location in the original EXIF metadata are not copied — handy for privacy when sharing photos online.