SiteBox

Compress Image

Free Online Image Compressor

Reduce JPG, PNG, and WebP file size with adjustable quality and dimensions — entirely in your browser. Your images never leave your device.

Click to upload or drag & drop an image here

JPG, PNG, or WebP — up to 25 MB

How to Compress an Image

1. Upload Your Image

Click the upload area or drag and drop a JPG, PNG, or WebP file.

2. Adjust Quality & Size

Lower the quality for a smaller file, and set a max width to shrink large photos.

3. Download

Preview the result and download the compressed image.

Why Compress in Your Browser?

  • 100% private — images never leave your device
  • Faster websites — smaller images load quicker and rank better
  • Save storage — shrink files before emailing or uploading
  • No registration or email required

The Two Settings That Shrink a File

File size depends on two things you control here: how many pixels the image has, and how hard the encoder is allowed to throw detail away. Most people only touch the quality slider, but for phone photos the width box usually saves far more.

A modern phone camera produces images around 4000 pixels wide. A blog column, an email body or a product page rarely displays more than 1200–1600 pixels. Setting Max Width to 1600 cuts the pixel count of a 4032 × 3024 photo from about 12.2 million to about 1.9 million, roughly one sixth, before quality is even considered. The height is scaled in proportion, so nothing is stretched, and images already narrower than your number are left at their size.

The Quality slider (10–95) controls lossy compression for JPEG and WebP. Between 75 and 85 the difference is hard to see on a photo at normal viewing size; below about 60, smooth areas such as sky and skin start to show blocky patches and halos around edges.

Example: Getting Under an Upload Limit

A rental application portal accepts photos up to 1 MB. Your photo of a payslip is IMG_2231.jpg, 4032 × 3024 pixels and 3.8 MB.

  1. Upload the photo. The preview shows original and compressed sizes side by side.
  2. Leave the format on JPEG and type 2000 in Max Width. Text on a document photographed at 2000 pixels is still sharp enough to read.
  3. Watch the compressed size update. If it is still above 1 MB, lower quality to 70 and check the preview: zoom in on the smallest text to make sure it hasn't smudged.
  4. Download. The file is saved as IMG_2231-compressed.jpg so the original stays untouched.

The exact result depends on the content: a photo of a plain white page compresses much more than a photo of a busy street, because there is less detail for the encoder to describe.

Choosing the Output Format

FormatGood forWatch out for
JPEGPhotos, scans, anything that must open everywhereTransparency becomes white
WebPWebsite images; usually smaller than JPEG at similar qualitySome older desktop software and email clients can't open it
PNGScreenshots, logos, diagrams with flat colourLossless, so the quality slider has no effect; resizing is the only way to shrink it

If you only need to change a transparent PNG into a JPEG and choose the fill colour yourself, PNG to JPG gives you that control. To bundle several compressed photos into one document, use Image to PDF afterwards.

Why the Compression Happens on Your Device

The image is decoded by your browser, drawn onto an HTML canvas at the target size, and re-encoded with the browser's own encoder (canvas.toBlob) at the quality you chose. No server is involved, which is why the preview updates as you move the slider, and why it is safe to compress photos of ID cards or medical documents here.

A side effect worth knowing: re-encoding through a canvas drops EXIF metadata such as GPS location, camera model and capture time. That is usually a privacy bonus, but if you need the original date for a photo archive, keep the original file.

When the Result Looks Wrong

  • The "compressed" file is bigger. This happens when the original was already heavily compressed, or when you export a photo as PNG. Choose JPEG or WebP, or lower the quality.
  • A transparent logo got a white box. JPEG has no transparency. Pick PNG or WebP to keep it.
  • Text in a screenshot looks fuzzy. Lossy formats blur sharp edges. Use PNG and reduce the width instead.
  • HEIC photos from an iPhone won't load. Only JPG, PNG and WebP are accepted. Set the camera to "Most Compatible" or export as JPEG first.

More tools for pictures are listed under Image tools.

Frequently Asked Questions

What quality setting should I use for website photos?

Start at 80 with a max width that matches how wide the image is displayed, often 1200 to 1600 pixels. Lower the quality only if the file is still too large.

Why doesn't the quality slider change my PNG?

PNG is a lossless format, so the browser ignores the quality value. Reduce the max width, or switch to WebP or JPEG for a smaller file.

Does compressing remove location data from photos?

Yes. Re-encoding through the browser canvas does not copy EXIF metadata, so GPS coordinates and camera details are not in the downloaded file.

Can I compress several images at once?

This tool handles one image at a time so you can check the preview for each. Repeat the upload for each file.

Are my images uploaded?

No. Decoding, resizing and encoding all run in your browser, and the image never leaves your device.