How to Resize and Compress Images for Websites, Email and Forms

Open the Image CompressorFree, no sign-up.

Most "file too large" errors need two separate fixes: resizing, which changes an image's pixel dimensions, and compressing, which changes how efficiently those pixels are stored. This guide explains the difference, gives sensible targets for websites, email and upload forms, and walks through getting a photo under a size limit.

Resizing and compressing are different jobs

Resizing changes the number of pixels. A 4,000 × 3,000 phone photo holds 12 million pixels; resized to 1,600 × 1,200, it holds 1.92 million, about 16% as many. The file shrinks a lot, and the picture still looks sharp at the size people actually view it. What you can't do is go back: enlarging a small image later doesn't restore the detail.

Compressing keeps the same pixels but stores them more efficiently. For JPG and WebP that means a lower quality setting, which discards detail you're unlikely to notice. The dimensions stay the same.

The order matters: resize first, then compress. Resizing removes most of the excess, and compression fine-tunes what's left. Compressing a huge photo very hard to hit a small limit gives you a blotchy image at full size, which looks worse than a clean, smaller one.

One common confusion: the DPI or PPI number stored in an image only tells a printer how large to print it. Changing it from 72 to 300 without changing the pixels doesn't alter how the image looks on screen. When a form asks for "300 dpi", it usually means enough pixels to print well at the stated size: about 300 pixels per inch, so a 10 × 15 cm print needs roughly 1,181 × 1,772 pixels. If a form checks the stored number itself, the Image DPI Converter changes it without touching the pixels, or resizes to an exact print size.

Sensible targets for websites

The rule in Google's web.dev image performance guide is simple: don't send more pixels than the page displays. An image shown in a 500-pixel-wide box needs to be about 500 pixels wide, or twice that to look sharp on high-density phone and laptop screens.

UseWidth to aim forFile size to aim for
Full-width banner1,920 pxUnder about 300 KB
Image inside an article1,200 to 1,600 pxUnder about 200 KB
Thumbnail or product grid400 to 600 pxUnder about 60 KB

These are starting points rather than rules. A detailed landscape photo needs more bytes than a plain product shot on white, and web.dev itself suggests trying a few compression levels. For photos on the web, WebP or JPG at quality 70 to 80 is a good first try; see JPG vs PNG vs WebP for help picking a format.

Sizing images for email

Email services limit the total size of attachments. Personal Gmail accounts can attach up to 25 MB, according to Google, and Outlook.com's limit is also 25 MB, according to Microsoft. Work and school limits are set by the organisation's IT team and are often lower. Limits change, so check with your provider if you're close.

A handful of photos straight off a modern phone can pass that. For someone viewing photos on a screen, 1,600 to 2,000 pixels on the long side is plenty, and at that size a JPG at quality 75 is usually well under 1 MB. Resize before attaching and a whole set of photos fits in one email.

Upload forms with strict limits

Government services, visa applications and job portals often set tight rules for photos and scanned documents. Limits vary between sites and countries and change over time, so always read the instructions on the upload page itself. They usually cover:

  • Maximum file size, often given in KB.
  • Allowed formats, commonly JPG, sometimes PNG or PDF.
  • Dimensions, either exact pixel sizes or a minimum, especially for passport-style photos. The Passport Photo Maker crops to common official sizes; see how to make a passport photo at home.

Some sites count 1 KB as 1,000 bytes and others as 1,024. Our tools use 1,024, so a file we show as 190 KB is about 194,560 bytes, under a 200 KB limit whichever way the site counts. Aim for about 5 to 10% under the limit to be safe. If the form needs exact dimensions and your photo is a different shape, crop it first; resizing to a different shape without cropping stretches faces and text.

Step by step: getting a photo under a size limit

Say a job portal asks for a square JPG profile photo under 200 KB, and your phone photo is 4,032 × 3,024 pixels and 3 MB.

  1. Check the format. iPhone photos saved as HEIC won't open in most browsers. Convert them with HEIC to JPG first.
  2. Crop in the Image Cropper: choose Square (1:1) under Shape, drag the box over your face and click Crop image.
  3. Resize and compress in one go. Open the Image Compressor, set Save as to JPG, Max width to 800 and Quality to 75, then click Compress Image.
  4. Check the numbers. The tool shows the original size, the compressed size and how much smaller it is.
  5. Adjust if needed. Still over? Lower the quality in steps of 10. If the photo starts to look blotchy below about 50, make it smaller instead: set the exact width you need in the Image Resizer, such as 600 pixels, and compress that.

If the form insists on PNG, use the Image Resizer, which keeps the original format. PNG has no quality slider, so smaller dimensions are the only way to cut its size, and the Image Compressor saves only as JPG or WebP.

All of this happens in your browser, so your photos and documents aren't uploaded anywhere. For scanned documents in PDF form, making a PDF smaller works differently.

Social media sizes

For social posts, exact dimensions matter more than file size, because the platforms recompress everything you upload. We have three resizers with presets:

  • Instagram Image Resizer: square post 1080 × 1080, portrait post 1080 × 1350, story or reel 1080 × 1920, landscape post 1080 × 566 and profile picture 320 × 320.
  • Social Media Image Resizer, WhatsApp sizes: profile picture 640 × 640, status 1080 × 1920, shared photo 1600 × 1200 and square 1080 × 1080.
  • Social Media Image Resizer, LinkedIn sizes: post image 1200 × 627, profile photo 400 × 400, personal cover banner 1584 × 396, company logo 300 × 300 and company cover 1128 × 191.

Each one asks how to Fit the photo. Fill - crop the edges to fit fills the frame edge to edge and trims what sticks out. Fit - whole photo, add a border keeps everything and fills the gaps with the Border colour you choose. The result downloads as a JPG, and the tool warns you if your photo had to be enlarged. Platforms change their recommended sizes from time to time, so check their help pages if something looks off.

Quick answers

Does resizing an image reduce its quality?

Making an image smaller removes detail, but at the size it's displayed it looks just as sharp. Making a small image bigger is what causes blur, because the missing detail has to be guessed.

Why is my compressed image bigger than the original?

It was already well compressed, often by the phone or website that created it. The Image Compressor tells you when the result isn't smaller. Keep the original, or try a lower quality or a smaller max width.

How many KB are in an MB?

Either 1,000 or 1,024, depending on the system. That difference is why a file that looks exactly on the limit can still be rejected, so leave a margin.

Are my photos uploaded when I use these tools?

No. The Image Resizer, Image Compressor, Image Cropper and social resizers all work inside your browser, and the result downloads straight to your device.

Sources

  1. web.dev (Google): Image performance
  2. Google Gmail Help: Attachment size limits
  3. Microsoft Support: Sending limits in Outlook.com

Spotted a mistake or something out of date? Tell us and we'll fix it.

More guides