Friday, November 6, 2026 · Asia/KarachiFree tools · No signup · Runs in your browser

Image Compressor

Shrink a photo or graphic in your browser by resizing it to a maximum width and height and re-encoding it as JPEG, WebP or PNG at the quality you choose. The result shows the original and new dimensions and file size with the percentage saved, and the file never leaves your device.

New

How to use

  1. Choose an image file.
  2. Pick the output format, the quality and the maximum width and height.
  3. Press Compress, check the preview and the size, then download.

Formula / how it works

Two ways to make an image smaller. Most of the saving usually comes from resizing. A 2400×1600 photo has 3.84 million pixels; at 1600×1067 it has 1.71 million, 55% fewer, before any compression. Then lossy formats such as JPEG and WebP discard detail the eye barely notices. The tool keeps the aspect ratio and only shrinks, never enlarges, so an image already within the limits keeps its size.

Choosing a format.

  • JPEG: best for photos, supported everywhere. It has no transparency, so transparent areas are filled with white.
  • WebP: typically 25–35% smaller than JPEG at similar visual quality, supports transparency, and works in all current browsers. Some older desktop software and email clients still handle it poorly.
  • PNG: lossless and good for screenshots, logos and text, but large for photos. Choosing PNG here only resizes; it does not reduce quality.

Quality settings. For JPEG and WebP, quality runs from 10 to 100. Around 70–80 is a good balance for photos on the web; above 90 files grow quickly for little visible gain, and below 50 you see blocky artefacts, banding in skies and smeared edges. Text and sharp graphics suffer first, so prefer PNG or WebP at high quality for those. Compress once from the original where possible; each re-compression of a JPEG loses a little more detail.

Sizes to aim for.

  • Website hero images: 1600–2000 px wide, often 150–400 KB.
  • Blog and product photos: 800–1200 px wide, under 200 KB.
  • Email attachments and forms with upload limits: check the limit, often 1–5 MB.
  • Social media platforms recompress uploads anyway, so a clean, correctly sized file usually looks better than a huge one.

Google's Core Web Vitals reward fast-loading pages, and large images are the most common cause of a slow Largest Contentful Paint.

When the file gets bigger. Re-encoding an already well-compressed JPEG at high quality, or turning a small graphic into a JPEG, can produce a larger file. If the output is not smaller and the image was not resized, the download is your original file, and the result says so.

Metadata and privacy. Photos from phones often carry EXIF metadata: camera model, date and sometimes GPS coordinates of where the photo was taken. Drawing the image onto a canvas and re-encoding it does not copy that metadata, so the output has none. That is good for privacy, but it also removes the orientation tag; browsers apply the orientation when decoding, so the output is already the right way up.

Formats you can open. Anything your browser can decode works, including JPEG, PNG, WebP, GIF (first frame only) and BMP. HEIC photos from iPhones and AVIF files depend on the browser: Safari opens HEIC, most others do not. Animated GIFs become a single still image.

How it runs. The image is decoded, resized with high-quality smoothing and encoded by your browser's built-in canvas encoder. Nothing is uploaded, so it works for private documents too, and very large images are limited only by your device's memory.

Worked examples

A large PNG photo to JPEG

Inputs: Image: photo-2400x1600.png; Output format: JPEG; Quality %: 75; Max width: 1600; Max height: 1600

Choose photo-2400x1600.png, a 9 MB lossless export, with JPEG at quality 75 and a 1600 × 1600 limit. It is resized to 1600×1067 and comes out 97.4% smaller; the download was checked as a 1600×1067 JPEG.

Result: Original: 2400×1600 PNG, 9.01 MB Output: 1600×1067 JPEG at quality 75, 241.5 KB (−97.4%) Resized to fit 1600×1600 Metadata (EXIF, including GPS) is not copied to the output.

A transparent logo to WebP

Inputs: Image: logo-800-transparent.png; Output format: WebP; Quality %: 80; Max width: 400; Max height: 400

Choose logo-800-transparent.png, an 800 px logo with a transparent background, and convert it to WebP at quality 80 with a 400 × 400 limit. WebP keeps the transparency, which the downloaded file confirmed, and the size falls by 70.6%.

Result: Original: 800×800 PNG, 10.7 KB Output: 400×400 WEBP at quality 80, 3.1 KB (−70.6%) Resized to fit 400×400 Metadata (EXIF, including GPS) is not copied to the output.

Use cases

  • Shrinking photos for a website.
  • Meeting upload size limits.
  • Removing location data from photos.
  • Converting PNGs to WebP.

Tips & limitations

  • Resize first; it saves the most.
  • Use quality 70–80 for photos.
  • Use PNG or WebP for logos and text.
  • Keep the original file.

FAQ

Does compressing reduce quality?

JPEG and WebP are lossy; at 70–80 the difference is hard to see.

Is WebP better than JPEG?

Usually 25–35% smaller at similar quality, with transparency.

Are my images uploaded?

No. They are processed in your browser.

Does it remove EXIF and GPS data?

Yes, metadata is not copied to the output.

Can it open HEIC photos?

Only in browsers that decode HEIC, such as Safari.

Why is my file bigger?

Re-encoding a well-compressed image can grow it; then the original is kept.

Runs entirely in your browser. Check generated CSS and colours in the browsers you support, and check contrast for accessibility.