Images

How to Resize and Compress an Image for the Web

July 25, 2026 · 4 min read

A photo straight from a phone or camera can be several megabytes — too big to email comfortably and heavy enough to slow down a website. Resizing and compressing it gives you a much smaller file with no visible drop in quality.

Here's how to do it for free, and how dimensions, quality and format each affect the final size.

Recommended tool

Compress Image

Shrink JPG, PNG and WebP images with adjustable quality and size — free, no upload, right in your browser.

Open Compress Image

Dimensions vs. quality — two different levers

There are two ways to make an image smaller. First, reduce its dimensions (pixels): a photo doesn't need to be 4000 pixels wide to look great on a website — 1600 or 1920 pixels is usually plenty. Second, lower the quality slightly: dropping to around 70–80% cuts the file size a lot while staying visually sharp. Using both together gives the biggest reduction.

JPEG, WebP or PNG?

For photos, JPEG gives small files and works everywhere. WebP is more modern and often smaller at the same quality, and it supports transparency. Use PNG only when you need crisp edges or transparency (like logos and screenshots) — for photos, PNG files are unnecessarily large.

Do it privately, in your browser

You don't need to upload your photos to compress them. A browser-based tool processes the image on your device, so your pictures never leave your computer.

FAQ

Is it free to resize and compress images?

Yes. It's completely free, with no sign-up and no watermark.

What quality setting should I use?

Around 70–80% is a good balance — noticeably smaller files with no obvious loss for most photos.

JPEG or WebP?

JPEG is universal and small; WebP is modern, supports transparency and is often smaller at the same quality.

Do you upload my photos?

No. Everything runs in your browser, so your images never leave your device.

Recommended tool

Compress Image

Shrink JPG, PNG and WebP images with adjustable quality and size — free, no upload, right in your browser.

Open Compress Image