Skip to content

Image Compressor

Shrink JPG, PNG and WebP images by saving them as JPEG or WebP with a quality you choose and an optional maximum width. See the size saved and download. Your files stay on your device.

Up to 25 MB and 12,000 px per side. Your image stays on your device; nothing is uploaded.

Read the guide How Image Compression Works

How to use the image compressor

  1. Choose a JPG, PNG or WebP image. It is compressed straight away with the current settings.
  2. Pick the output format: JPEG works everywhere, while WebP is usually smaller at the same visual quality.
  3. Move the Quality slider between 10 and 100. Lower numbers give smaller files but more visible artifacts. The image is compressed again when you release the slider.
  4. Optionally enter a Max width in pixels. Wider images are scaled down proportionally; narrower ones are left as they are.
  5. Check the original size, the compressed size and the percentage saved, look at the preview, then press Download.

Your files stay on your device

Compression runs entirely in your browser using its built-in image encoder. Your image is never uploaded, stored or seen by anyone else.

How the saving is calculated

Saved = Original size − Compressed size

Saved % = Saved ÷ Original size × 100, rounded to one decimal place.

When a max width is set, the new height keeps the original proportions:

New height = Original height × Max width ÷ Original width

Worked example

A 4,000 × 3,000 px photo of 2,400,000 bytes (2.29 MB) with a max width of 1,600 px is first scaled to 1,600 × 1,200 px. If the compressed file comes out at 600,000 bytes (585.9 KB), you have saved 1,800,000 bytes, which is 75%.

The actual size you get depends on the picture itself: busy, detailed scenes need more bytes than smooth skies or plain backgrounds.

When the result is larger

Sometimes the compressed file is bigger than the original. This happens when the original was already well optimized, or when a small graphic is turned from PNG into a photo format. The tool warns you and offers a Keep original button so you never end up with a worse file. Lowering the quality or setting a max width usually helps.

Good to know

  • For photos on websites, a quality of 70 to 85 is a good balance between size and appearance.
  • Reducing the width often saves more than lowering the quality. A 1,600 px wide image is plenty for most screens.
  • JPEG cannot store transparency. Transparent areas of a PNG or WebP become white when saved as JPEG; choose WebP to keep a smaller file without a white background.
  • If your browser cannot create WebP files, the tool tells you and saves a PNG instead.
  • Limits: files up to 25 MB and images up to 12,000 px per side.

Frequently asked questions

Is it safe to compress private photos here?

Yes. The image is processed by your own browser and is never uploaded. Nothing leaves your device, and nothing is kept after you close the page.

What quality setting should I use?

Start at 80. For web pages and email, 70 to 85 usually looks the same as the original at a fraction of the size. Go lower only if file size matters more than detail, and check the preview for blockiness or blurred edges.

Why did my image get bigger after compression?

The original was probably already compressed efficiently, or it is a simple graphic that suits PNG better than JPEG. When that happens the tool shows a warning and lets you keep the original file instead.

Should I choose JPEG or WebP?

WebP files are typically noticeably smaller than JPEG at similar quality and support transparency. JPEG is the safer choice when the image must open in older software or be uploaded to services that do not accept WebP.

Can I compress PNG files?

Yes. A PNG is re-saved as JPEG or WebP, which is usually much smaller for photos. Transparent areas turn white in JPEG, so pick WebP if you need to keep transparency.