Free & unlimited

Image Compressor & Resizer

Shrink an image's file size or resize it, in your browser.

Click to choose an image, or drag and drop it here

What this tool does

Shrinks an image's file size by re-encoding it at a lower quality, resizing its dimensions, or both — useful before uploading to a site with a size limit, attaching to an email, or just speeding up a page that's loading a huge photo.

Runs entirely in your browser using the canvas API — your image is never uploaded, sent or stored anywhere.

How to use this tool

1Upload an image (JPEG, PNG, WebP, or most other common formats).
2Pick an output format and, for JPEG/WebP, a quality level.
3Optionally set a max width to resize it down.
4Click Compress, then download the result.

Choosing a format

  • JPEG — best for photos; smaller files at a quality trade-off
  • WebP — usually smaller than JPEG at similar visual quality. Almost every current browser can display WebP, but Safari cannot create WebP files from a canvas, so in Safari this tool saves a JPEG instead and tells you so
  • PNG — lossless, best for screenshots/graphics with sharp edges or transparency; quality doesn't reduce its size, only resizing does

FAQ

Will this reduce quality I can see?
At 80% quality (the default) most photos look very close to the original while the file shrinks a lot; the exact result depends on the image and your browser, because quality scales differ between encoders. Lower it further for smaller files at the cost of visible compression artifacts.
Why did converting my photo to PNG make it bigger, not smaller?
This is expected, not a bug — PNG is lossless, so it can't compress photographic detail the way JPEG or WebP can. Converting a photo to PNG often produces a larger file. PNG is the right choice for screenshots and flat-color graphics, not photos — for a photo, pick JPEG or WebP instead.
Why did I get a JPEG when I picked WebP?
Safari (on Mac and iPhone) can open WebP images but cannot create them from a canvas, and silently produces PNG data if asked. To avoid handing you a PNG with a .webp name, this tool detects that and saves a JPEG instead, with a note. Chrome, Edge and Firefox create real WebP files.
Why doesn't the PNG quality slider do anything?
PNG is lossless, so there is no quality setting to trade away. The only ways to shrink a PNG here are to lower the max width or to switch to JPEG or WebP.
Can I make an image smaller without changing its dimensions?
Yes. Leave the max width empty and lower the quality with JPEG or WebP; only the encoding changes, not the pixel size. Setting a max width also shrinks the file because there are fewer pixels to store.

Sources

These are the primary references for the standards and limits mentioned on this page.

  1. W3C PNG Working Group (2025). “Portable Network Graphics (PNG) Specification (Third Edition).” W3C Recommendation. w3.org/TR/png-3 — PNG is lossless, so a quality setting does not apply to it.
  2. Google “WebP Compression Study.” Google for Developers (WebP). developers.google.com/speed/webp/docs/webp_study — Reports lossy WebP files 25%-34% smaller than JPEG at equivalent quality in Google's test set.
  3. MDN Web Docs “Image file type and format guide.” Mozilla. developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types — Describes JPEG as lossy and suited to photographs, and PNG as lossless.
  4. MDN Web Docs “HTMLCanvasElement: toBlob() method.” Mozilla. developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob — Quality applies to lossy types, and an unsupported type falls back to PNG.
  5. caniuse “WebP image format.” caniuse.com. caniuse.com/webp — Browser support for displaying WebP images.
  6. caniuse “HTMLCanvasElement toBlob: type parameter supports image/webp.” caniuse.com. caniuse.com/mdn-api_htmlcanvaselement_toblob_type_parameter_webp — Browser support for creating WebP files from a canvas, which Safari lacks.
  7. WebKit “Bug 226950: Canvas (HTMLCanvasElement.toDataURL) can't export its data to image/webp.” WebKit Bugzilla. bugs.webkit.org/show_bug.cgi?id=226950 — WebKit bug report on exporting WebP from a canvas, the limitation behind Safari saving JPEG here.

Last reviewed: October 2026