Image Compressor
Make images smaller before you add them to a website. Resize them, convert them to WebP and download the result. Your files stay on your device.
- Nothing is uploaded or stored
- No sign-up
JPEG, PNG, WebP or GIF (first frame). Up to 20 at a time.
How to compress an image
Choose one or more images, or drop them on the box.
Pick a format. WebP is a good default for photos and most graphics.
Leave quality at 80 to start. Lower it if the file is still large, and raise it if you can see blur or blocks.
Choose a maximum width. Images narrower than that are not enlarged.
Look at the preview, then download.
If the result is larger than the original, the tool tells you. Keep the original in that case. It usually means the file was already well compressed.
Which format should you choose?
| Format | Good for | Keep in mind |
|---|---|---|
| WebP | Photos and most website graphics | Supported by all current browsers. Keeps transparency |
| JPEG | Photos you need to email or use in older software | No transparency. Clear areas become white |
| PNG | Sharp screenshots, logos and line art | Files can be large, and the quality slider has no effect |
For logos and icons, an SVG file is often smaller and sharper than any of these. This tool does not create SVG files.
How wide should website images be?
- Full-width banners: around 1920 pixels.
- Images inside an article: around 1200 pixels, which still looks sharp on most high-resolution phones and laptops.
- Cards and thumbnails: 600 to 800 pixels.
Uploading a 4000-pixel photo to fill a 600-pixel space is one of the most common reasons pages feel slow. Read our image optimisation guide for the full method, including lazy loading and srcset.
What the tool does not do
Saving an image again removes details such as the camera model and location from the file, which is usually good for privacy. It also removes copyright notes stored in the file, so keep your originals. Animated GIFs become a single still image, and some camera formats such as HEIC only open in certain browsers.
Image Compressor questions, answered
Short, honest answers to the questions people ask most about this topic.
Are my images uploaded?
No. Your browser does all the work. The files are not sent to our server or anyone else’s.
What quality setting should I use?
Start at 80 and compare the preview with the original. Photos often still look fine at 70 to 80. Use a higher setting for images with text or fine detail.
Why did I get a PNG when I chose WebP?
Some browsers cannot create WebP files, so they hand back PNG instead. The tool tells you when this happens. Try a current version of Chrome, Edge or Firefox.
Can I compress an image to an exact file size?
Not directly. Lower the quality or the maximum width a little at a time until the file is small enough.
More free tools
Find tools for images, text, code, search and speed, or plan your budget with the cost calculator.