How to resize an image without uploading it

A recent phone photo is often 4000 pixels across. If you only need it 1920 pixels wide — the width of a typical full-screen photo on the web — more than half the pixels (and a lot of the file size) can go, without anyone else seeing the original.

Resize is not the same as “lower the quality”

Two different knobs make a file smaller:

For a large phone photo, resizing first usually saves more than chasing a lower quality number. The companion guide on compressing without uploading covers quality and format; this one is about dimensions.

How a page resizes a picture in your browser

The page reads the file, asks the browser for a bitmap (and, on recent browsers, applies the stored orientation so a sideways phone photo comes out the right way up), draws it onto an HTML <canvas> at the new size, and calls toBlob() to save a JPEG, WebP or PNG. The original bytes are never posted anywhere. You can try it after turning the browser offline once the page has loaded.

A careful tool keeps the aspect ratio: if you set a max width of 1920 and a max height of 1080, a tall portrait is limited by the height and a wide landscape by the width, so nothing is stretched or cropped. The compressor here works that way.

What size should I pick?

Longest sideGood for
1920 pxA full-width photo on a website or in a slide. Looks sharp on a laptop and on most phones.
1280 pxA photo sitting in an email or a narrower column. Still clear, noticeably smaller than 1920.
800 pxA thumbnail, an avatar, or a picture that will never be shown large.
Original, quality onlyYou truly need every pixel (print, archival). Then shrink the file with JPEG/WebP quality instead, or pick a target size.

Social posts are often displayed around 1080 px square; you do not gain anything visible by uploading a 4000 px original, and many sites recompress it anyway.

When resizing is not enough

A 1920 px JPEG at quality 80 is usually a few hundred kilobytes, which is fine for email. If a form says “under 200 KB” or “under 2 MB”, set that as a target: the tool will lower quality and, if needed, shrink the picture a little further until it fits. See photo too large to email for the limits email systems actually publish.

PNG screenshots stay large even after a resize, because PNG is lossless. Convert a photograph to JPEG or WebP; keep PNG for sharp text and diagrams, as explained in converting PNG to JPEG or WebP.

Redrawing the picture also drops hidden tags such as GPS. That is usually what you want before you send a photo; the details are in how to remove location data.

Related

Resize a photo for an online form · Resize many photos at once · Compress an image without uploading it · Convert PNG to JPEG or WebP · Photo too large to email · Remove GPS from a photo · Image compressor

Questions

Does resizing an image online upload it?

On most free sites, yes: the file is sent to their server, resized, and sent back. A local tool draws it onto a canvas in your browser, so the original never leaves the page.

Will the picture look stretched?

Not if the tool keeps the aspect ratio and only applies maximum width and height. The photo shrinks until it fits inside that box.

What size should I use for a website or an email?

1920 px on the longest side is plenty for a full-width photo; 1280 px is enough for a picture inside an email. Go smaller only if a form or thumbnail demands it.

Does resizing remove GPS and other hidden tags?

Yes, if the picture is redrawn onto a canvas and saved as a new file. The extra EXIF block is not copied across.

Why is my resized PNG still large?

PNG stores every pixel losslessly, so fewer pixels help, but a photograph is still a poor fit. Save photos as JPEG or WebP and keep PNG for screenshots and sharp graphics.

Published · updated .

Try it

Related guides

Newest guides