Shrink photos for e-mail and the web without visible quality loss

There are three levers for file size: pixel dimensions, compression quality and file format. Usually you reduce the pixel dimensions first, then let "Keep high quality" search for the quality automatically; the file shrinks a lot while differences stay hard to spot. If there is a hard limit, type the KB value into "Target size".

A modern phone photo is several megabytes and more than 4,000 pixels wide. Yet when it is attached to an e-mail or placed in a blog post or forum, it is displayed at roughly 800 to 1,600 pixels wide. Sending pixels the viewer's screen will shrink anyway only inflates the file, trips attachment limits and slows pages down.

This tool puts all three levers on one screen. The Size setting reduces pixels, the reduce mode decides quality, and Format switches the encoder. The "Keep high quality" mode in particular compares each result with the original and automatically finds the lowest quality whose structural similarity (SSIM) is at least 0.985, so there is no need to guess with a slider.

How to use

  1. Add the photos. Several at once is fine (up to 50); the settings apply to all of them.
  2. Under Size choose "Max width/height" and enter 1600 for blogs and general web use, or 1200 to 1280 for e-mail attachments and forums. Entering only one value keeps the aspect ratio and fits the long side. Images are never enlarged beyond the original.
  3. Choose a format. If you do not know what viewer the recipient uses, pick JPG; for a site you run, WebP or "Auto" is usually better. Auto encodes both JPG and WebP and keeps the smaller one.
  4. Leave the reduce mode on "Keep high quality" and check the result. A "✓ Nearly identical quality" badge in the result card means the SSIM threshold was met.
  5. If there is a fixed limit (for example 10 MB total attachments or 2 MB per photo), switch to "Target size" and enter the KB value. The tool counts 1 KB as 1000 bytes, so 2 MB is 2000 KB; leave a little room and enter something like 1900.
  6. Compare the original and result with the slider, then download. On photos with text, zoom in on letter edges; on portraits, look at the boundary between skin and hair; those are where compression artefacts show first.

Start with these settings →

Keep high quality versus Target size

"Keep high quality" stops on a quality criterion. For JPG, WebP and AVIF it runs a binary search over quality 0 to 100, up to 7 attempts, and keeps the lowest quality whose SSIM against the original is at least 0.985, measured on a comparison image reduced to 512 pixels on the long side. The resulting file size differs from photo to photo, but visible damage is avoided. If the threshold cannot be met, the note "Did not meet the quality threshold (SSIM 0.985)" appears.

"Target size" stops on a size criterion. It searches quality up to 7 times at the current dimensions; if the file is still too large it multiplies width and height by 0.85 and searches again. There are at most 6 extra reductions, so the final dimensions can go down to about 38% of the original. If the target is still missed, the smallest result is shown with the note "Larger than the target size", and downloading is not blocked.

In short: quality first means Keep high quality, a hard number means Target size. To combine them, start with Keep high quality, look at the resulting size, and switch to Target size only if it exceeds your limit.

Recommended settings by situation

  • Work e-mail attachment (unknown recipient setup): JPG, max width 1600, Keep high quality. For several photos, check that the total size above the list is under the attachment limit.
  • Application or government portal with a per-file KB limit: JPG, Target size at about 90% of the limit. If there is also a pixel limit, set Max width/height as well.
  • Photos in your own blog or website: WebP or Auto, max width 1600, Keep high quality. The "Web / blog" quick-start preset gives the same starting point with WebP, quality 80 and max width 1600.
  • Screenshots and UI captures (lots of text and lines): keep PNG originals on "Keep original" or PNG so the lossless OxiPNG optimisation applies. If they must shrink further, WebP preserves letter edges better than JPG.
  • Galleries and thumbnails: max width 800 to 1200 with Auto format. For thumbnails, reducing pixels is far more effective than lowering quality.

Common mistakes and fixes

  • Re-compressing an already compressed JPG: artefacts accumulate. If you dislike the result, add the original again (not the result) and change the settings. The original can be reloaded from the recent images list.
  • Keeping all pixels and only lowering quality: a 4,000-pixel photo at quality 50 is usually larger and uglier than the same photo at 1,600 pixels and quality 85. Reduce dimensions first.
  • Looking for a quality slider with PNG: PNG is lossless and has no quality value. In Target size mode it only tries smaller dimensions and may show "Hard to reach the target size as PNG". For photographs, switch to JPG or WebP.
  • Mistaking the "Original kept" status for failure: if you changed no dimensions or refinements and the re-encoded result is not smaller, the original file is returned unchanged. It means the file was already small enough; in this case the original EXIF is also kept.
  • The result grew: converting an efficiently compressed original to another format can make it bigger. If changing format is not the goal, leave "Keep original" selected.

Privacy and metadata

Re-encoded results contain no EXIF. Capture location (GPS), camera model and capture time are all dropped, so you need not worry about exposing your location when e-mailing or posting. The result card says "Metadata such as location is not saved." The only exception is the "Original kept" status mentioned above, where the original file is returned unchanged together with its metadata.

All processing happens inside a Web Worker in your browser, and photos are not sent to a server. The only network requests during use fetch the encoder (WASM) code.

Frequently asked questions

How good is SSIM 0.985?

SSIM approaches 1 as the structure matches the original more closely; this tool requires at least 0.985 on a comparison image reduced to 512 pixels on the long side. At normal viewing sizes the difference is hard to find, but it does not mean every pixel is identical, so inspect important photos with the slider.

Can I target a total size for several photos?

The target applies per photo. Check the total above the result list (only photos with results are summed) and adjust the per-photo target. For example, to send 10 photos under 10 MB in total, aim for about 950 KB each.

I heard AVIF is smaller. Why is it not in Auto?

AVIF encoding is slow. Auto compares only JPG and WebP (PNG and WebP for transparent images). You can choose AVIF explicitly under Format or press "Reduce further as AVIF" in the result card. Check first that the recipient can open AVIF.