How to compress an image
- Choose a JPEG, PNG or WebP image.
- Pick an output format. The tool starts with the same format as your file.
- For JPEG or WebP, choose Quality and set the slider, or choose Target size and enter a size in KB.
- Optionally set a maximum width or height. Resizing a 4000-pixel photo to 1600 pixels often saves more than any quality setting.
- Press Compress, compare the before and after, then download.
Quality versus file size
JPEG and WebP are “lossy”: they throw away detail the eye is less likely to notice. At high settings (85–95%) the difference is very hard to see. Around 60–75%, files get much smaller and most photos still look fine on a phone screen, but you may notice blockiness in skies, gradients or around text. Below about 50%, artefacts become obvious. Graphics with sharp edges and text suffer first; photos of natural scenes hide compression best.
Always zoom into the “After” preview before using an image somewhere important. If text looks fuzzy, raise the quality or use PNG for that image.
Which format gives the smallest file?
- WebP is usually the smallest at similar visual quality, and keeps transparency. Use it for websites. Some upload forms still don’t accept it.
- JPEG is the most widely accepted format for photos.
- PNG is best for screenshots and graphics with large flat areas, and is the only choice here for perfect, lossless quality.
Common situations
- A form requires a file under a limit (for example 200 KB or 2 MB): use Target size, and set a maximum dimension if needed.
- Website images: set a maximum width close to how wide the image is displayed (often 1200–2000 px) and use WebP at 75–85%.
- Email attachments: a maximum dimension of 1600–2000 px and JPEG at 80% keeps photos clear and small.
Supported files and limits
JPEG, PNG and WebP (GIF uses the first frame). Up to 25 MB. WebP output depends on your browser; if it is unavailable the option is disabled. The image is decoded and re-encoded by your browser, so results can differ slightly between Chrome, Safari and Firefox.
How it works
Your image is drawn onto a canvas in your browser and encoded with the browser’s own JPEG, WebP or PNG encoder. Nothing is uploaded. Because the file is re-created, transparent areas are filled with a colour when saving as JPEG, and camera metadata is not carried over.