How to resize a photo to a set width and height
- Choose a JPEG, PNG or WebP file above, or drop one on the box.
- Type a new width or height. With Keep the aspect ratio ticked, the other number follows. Untick it only if you want to stretch the picture on purpose.
- Or type a percentage in Or scale to shrink or enlarge everything by the same amount.
- Choose the output format, press Resize the picture, and download the file.
The report under the button gives the pixel size and the file size before and after, so you can tell at a glance whether the result meets the limit you were handed.
What resizing does to sharpness
Making a picture smaller throws pixels away. When the reduction is large, the tool halves the picture in steps rather than in one jump, which keeps edges cleaner than a single big squeeze would. Making a picture larger runs the other way: the browser invents the in-between pixels by smoothing them, so the result is bigger but no sharper. Start from the largest original you have.
Saving as JPEG or WebP adds a second, separate loss, set by the quality slider. PNG has no such setting and keeps every pixel it's given, which is why a PNG of a photograph is usually so much larger.
Pixel dimensions versus file size in kilobytes
This tool sets dimensions. File size follows from the dimensions, the format and the quality, but you don't choose it directly here. If a form wants a picture under a certain number of kilobytes, resize first and then use the image compressor to set a ceiling. If a site wants a particular shape, crop the picture first so the resize doesn't squash it. The page on profile picture sizes works through that exact order.
DPI, color and metadata after a resize
DPI or PPI is a label for printing and doesn't change how many pixels a picture has. A browser canvas can't be told to write a particular DPI, and MDN notes that formats which store a resolution get 96 dpi. For screens and uploads, pixel dimensions are what count.
The picture is redrawn on a canvas and encoded again, so fields such as camera model, capture time and GPS location in the original aren't copied to the new file. Colors are drawn the way the browser shows them, and EXIF rotation is applied, so a phone photo that looked upright stays upright. To inspect what a file still carries, use the photo metadata viewer.
Choosing a size for the destination
Work backwards from where the picture is going. An email or a chat message rarely needs more than about 1600 pixels on the long side. A web page image only needs to be as wide as the space it fills, doubled for sharp high-density screens. A form with a stated pixel size wants exactly that size, and a printed photo needs far more pixels than a screen does. If you're not sure, keep the original and make a smaller copy for each use, so you can always go back.
Enlarging deserves a warning. The resizer can make a small picture bigger, but it can't add real detail, and an enlarged photo looks soft next to one taken at that size. If a site demands more pixels than your photo has, a better source image is the only real fix.
JPEG, PNG or WebP output: which to choose
| Format | Best for | Watch out for |
|---|---|---|
| JPEG | Photographs for email, forms and most websites | Each save adds compression loss; no transparency |
| PNG | Screenshots, logos, text and anything with transparency | Photographs become much larger files |
| WebP | Web pages that want smaller files at similar quality | Some older software and a few upload forms still reject it |
When a form names a format, match it. When it doesn't, JPEG is the safest choice for a photo and PNG for a screenshot. Resizing to WebP makes sense only if you control where the file ends up, because a destination that can't open it turns a smaller file into a failed upload.
Common sizes and where they come from
A few pixel sizes come up repeatedly. 1920 by 1080 is the Full HD frame, a sensible cap for a picture meant to fill a laptop screen. 1080 by 1080 is a square, handy for a profile image or a square post. 3840 by 2160 is the 4K UHD frame and is far more than a web page needs. For a document or a form, use the numbers in the instructions and not a general rule, since each site picks its own limits. Profile picture sizes walks through typical square and round crops.
To work out a size by hand, divide the target by the original. A 4000 by 3000 photo scaled to 25 percent comes out at 1000 by 750, and the percentage box does that arithmetic for you while keeping the shape.
Fixing a result that looks wrong
- Stretched or squashed: the aspect ratio was unticked. Tick it, or crop to the right shape first.
- Soft or blurry: you enlarged the picture, or resized it more than once. Go back to the original and resize in a single pass.
- Sideways: the source relies on an orientation flag your viewer ignores. The tool applies the rotation, so compare with the original in the same viewer.
- Too large in kilobytes: lower the pixel size further, switch to JPEG, or run the result through the image compressor.
- The picture won't open: iPhone HEIC files need exporting as JPEG first, as noted in the limits.
Limits
- One picture at a time.
- Output up to 16,384 pixels on a side and 120 megapixels in total; very large sizes can fail on phones with little memory.
- Animated files come out as a single still frame.
- HEIC files from an iPhone can't be opened by most browsers. Export a JPEG from the Photos app first.
- Some browsers can't write WebP from a canvas. If yours can't, the tool says so instead of handing you a mislabelled file.
The script reads the file in this tab and never sends your picture anywhere, so the picture is not uploaded. The rest of the page loads the way any web page does.
Questions people ask
How do I set an exact width and height?
Type both numbers and untick Keep the aspect ratio. With it ticked, typing a width sets the height for you, which prevents stretching but may miss the pair you were given. In that case crop to the right shape first, then resize.
Can I make a photo smaller without losing quality?
Not entirely. Shrinking removes pixels, and JPEG or WebP output adds compression loss on top. Keep it hard to see by shrinking in one pass from the original, saving at 90 or higher, or choosing PNG when size doesn't matter.
Does resizing change the DPI?
Resizing changes the pixel count and nothing else. The DPI label only matters for print, and this tool doesn't let you set it, so judge a file by its pixel dimensions.
Does the tool upload my photo?
The script reads the file in this tab and never sends your picture anywhere, so the picture is not uploaded. You can confirm by watching the network panel in your browser's developer tools while you work.
Does it remove EXIF and location data?
The new file is built from canvas pixels only, so camera and GPS fields from the original aren't carried across. Check the finished file in a metadata viewer if the result matters.
How do I resize an image to exact pixel dimensions?
Untick Keep the aspect ratio, type the width and the height, and press Resize the picture. If the shape differs from the original, crop the picture first so nothing is squashed.
How do I resize an image to a KB size such as 50 KB or 100 KB?
Set the pixel dimensions here, then use the image compressor to aim for a byte ceiling. File size follows from dimensions, format and quality, so the two steps work together.
Can I make a small picture larger?
Yes, but the browser only smooths in-between pixels, so the result is bigger and not sharper. Start from the largest original you have.
Which format should I choose for the resized image?
Choose JPEG for photographs, PNG for screenshots, logos and transparency, and WebP when the destination accepts it and you want a smaller file. If a form names a format, use that one.
Why does my resized photo look blurry?
Most often because the picture was enlarged, since the browser smooths in-between pixels and can't add detail. Repeated resizing also softens a picture. Start from the largest original and resize once.
Can I resize several images at once?
This tool handles one picture at a time. Resize each file in turn, and keep the originals so you can make another size for a different destination later.
Is the original file changed?
No. The tool reads the file in your tab and builds a new one for download, so the original stays as it was.
Sources