Illustration of document pages being combined, with a padlock and a file tab.

How to Compress Images for Email, Websites, and Forms

The same photo can fail in three different ways. An email service rejects it for size, a web page loads slowly because the image is far larger than its slot, or a form refuses it because the dimensions or file format are wrong. Compression helps with all three, but each destination needs a different first step.

The Image Compressor reduces the file and shows the saving before you download. The decisions around it matter as much as the setting: what dimensions the image needs, which format the destination accepts, and whether the file will be judged on appearance or on a strict limit.

Quick answer

Start from the original, resize to the dimensions the destination will use, choose JPEG for photographs or PNG for screenshots and text, then compress at a moderate quality. For a form, read its pixel and file-size rules before you begin, because a file that looks fine can still be rejected.

Email: size for the screen, not the camera

Email is often read on a phone or a laptop, where a photo around 1,600 pixels on its long edge is already generous. A camera file several times that size travels in full and is then scaled down by the recipient’s software. Resize first, save as JPEG, and compare the result at 100% before attaching it.

If several photos must go in one message, compress each one rather than relying on the mail service to do it. For a large set, a shared folder is usually kinder than a chain of attachments, and it avoids the limits that vary between providers.

Websites: match the space in the layout

A web page should not send a 4000-pixel image to fill a 600-pixel column. Set the image to the width it will occupy, then decide whether to export a second, larger copy for high-density screens. That second copy doubles the dimensions and roughly quadruples the pixels, so use it only where sharpness matters.

JPEG remains a safe choice for photographs, while PNG suits logos, diagrams, and screenshots. WebP can be smaller still, but check that the site and its upload workflow accept it. Compression should come after resizing, not instead of it.

Forms and portals: follow the stated rules

Application forms often specify exact pixel dimensions, an accepted format, and a maximum file size. Those rules differ between institutions and are updated from time to time, so read the current instructions on the form rather than copying settings from an old application. Check the requirements before you edit anything.

If a file is rejected, find out which rule failed. A 900 by 900 image will not pass a 600 by 600 requirement, and renaming a PNG to .jpg does not change its format. Fix the dimensions or the format first, then compress only if the size limit is still a problem.

A short workflow that avoids repeats

  1. Keep the original untouched and work on a copy.
  2. Crop or resize to the target shape and dimensions.
  3. Choose the format the destination accepts.
  4. Compress at a moderate quality and check the preview.
  5. Confirm the dimensions and file size in the file properties.

When the destination is clear, open the Image Compressor, set the quality, and judge the preview at full size rather than in a thumbnail. The compression runs in your browser; remove private details from the photo before sending the result on. For the underlying trade-off, read How to Compress an Image Without Making It Look Bad. If you want to know why the original was so large in the first place, see Why Image File Sizes Get So Large.

Common questions

What size should I use for a photo in an email?

Around 1,600 pixels on the long edge is generous for viewing on a phone or laptop, and it keeps the attachment manageable. If the recipient needs to print it, keep more pixels and send a link to the full file instead.

Should I compress before or after resizing?

Resize first. Compression works on the pixels that remain, so removing unneeded dimensions makes the file smaller before the quality setting is applied. Compressing a full-size file and then shrinking it wastes the first pass.

Why does a form reject my image when it looks fine?

The form may be checking exact pixel dimensions, the file format, or a size limit rather than appearance. Read the current instructions and check the file properties; renaming a PNG to .jpg will not satisfy a format check.