What is image compression?
Compressing an image means storing the same picture in fewer bytes. There are two levers. The first is quality: formats such as JPG and WebP throw away detail the eye barely notices, and the quality setting decides how much. The second is size in pixels: a 12-megapixel phone photo is 4032 × 3024, far more than a website, an email or a chat needs, and halving each side leaves a quarter of the pixels to store. Most of the time, combining a sensible maximum width with a quality around 70–80 gives a file that looks the same on screen and loads much faster.
You need this when a form refuses files above a few hundred KB, when a page is slow because of heavy pictures, or when an email bounces for being too big. This tool shows the size before and after for the picture you select, updates the preview as you move the sliders, and never hands back a file larger than the one you gave, unless you changed the format or the size on purpose.
Everything happens in your browser with its own image encoders: the pictures are not uploaded, there is no limit on the number of files, no account and no watermark.
How to compress a photo online
- Drop your images on the page, click Add images or paste one with Ctrl+V. JPG, PNG, WebP, HEIC/HEIF, AVIF, GIF and BMP are accepted, and you can add many at once. An example picture is loaded first so you can try the settings.
- Pick the Output format. Keep the original format keeps JPG as JPG, PNG as PNG and WebP as WebP; formats a browser cannot write (HEIC, AVIF, GIF, BMP) become JPG. You can also force JPG or, in browsers that support it, WebP.
- Pick the Largest side: keep the size, or limit the longer side to 3840, 2560, 1920, 1280, 1024 or 800 px. The other side follows the proportion.
- Move the Quality slider (10 to 100; 75 is the default). It does not apply to PNG kept as PNG, which is lossless: the tool tells you to resize it or choose JPG or WebP instead.
- Click a picture in the list to see its Before and After size in KB, the percentage saved and the final dimensions. The preview updates as you change settings.
- Click Compress image (or Compress N images) and download each result, or all of them as a ZIP.
Examples
Phone photo for a website
IMG_2041.jpg, 4032 × 3024. Settings: Keep the original format, Largest side 1920 px, Quality 75.
| Input | Output |
|---|---|
IMG_2041.jpg, 4032 × 3024 | IMG_2041-compressed.jpg, 1920 × 1440 |
The width went from 4032 to 1920 and the height followed the 4:3 proportion.
Vertical photo for a chat or a form
selfie.jpg, 3024 × 4032 (portrait). Settings: Largest side 1024 px, Quality 70.
| Input | Output |
|---|---|
selfie.jpg, 3024 × 4032 | selfie-compressed.jpg, 768 × 1024 |
The limit applies to the longer side, whatever the orientation.
iPhone HEIC photo that a website does not accept
IMG_0815.heic, 4032 × 3024. Settings: Keep the original format, Largest side 1920 px.
| Input | Output |
|---|---|
IMG_0815.heic, 4032 × 3024 | IMG_0815-compressed.jpg, 1920 × 1440 |
Browsers cannot write HEIC, so the result is a JPG that any site accepts.
Screenshot in PNG
dashboard.png, 2880 × 1800 (a Retina screenshot). Settings: Keep the original format, Largest side 1280 px.
| Input | Output |
|---|---|
dashboard.png, 2880 × 1800 | dashboard-compressed.png, 1280 × 800 |
PNG stays lossless, so text remains sharp; the saving comes from the smaller size. Choosing WebP would make it smaller still.
A picture that is already small
logo.jpg, 1200 × 800, saved at low quality. Settings: Keep the original format, Largest side 1920 px. Nothing is resized (1200 is below 1920) and, if the re-encoded file would be larger, the tool keeps the original and says so.
Common errors and how to fix them
- "This image is already as small as it gets here": re-encoding would have made it bigger, so the original was kept. Lower the quality, pick a smaller largest side, or switch to WebP.
- The PNG barely shrinks: PNG is lossless, quality does not apply. Resize it, or convert it to JPG (photos) or WebP (screenshots, graphics with transparency).
- The result has a white background where it was transparent: JPG has no transparency. Keep PNG or choose WebP when the picture has transparent areas.
- WebP does not appear in the format list: your browser cannot create WebP files (some older Safari versions). Use JPG, or another browser.
- A file is marked as unreadable: the file is damaged or not really an image of a supported type. Open it in a viewer and export it as JPG or PNG; for HEIC you do not need to.
- The page gets slow with dozens of huge photos: everything happens in the memory of your device. Compress in smaller batches.
Frequently asked questions
How do I reduce the size of a photo in KB without losing quality?
Reduce the pixels first: a photo shown 1200 px wide does not need 4032 px. Then use a quality between 70 and 85, where the difference is hard to see. The before and after preview lets you check with your own eyes before you download.
What quality should I use for JPG?
75 is a good default for photos on the web. Go to 80–90 for pictures with fine detail you want to print or zoom into, and 50–60 when only the file size matters, such as thumbnails.
Is WebP better than JPG?
For the same visual quality WebP usually produces a smaller file, and it supports transparency. Almost every current browser and website reads it; some older programs and forms still ask for JPG.
Can I compress many images at once?
Yes. Add as many as you want; the settings apply to all of them and you download a ZIP.
Are my pictures uploaded?
No. Decoding, resizing and encoding happen in your browser. Nothing is sent to a server, which also means there is no limit on file size other than your device's memory.
What if I only want to change the dimensions?
Use Resize image for exact sizes, Crop image to cut a part, or Convert images to change the format. To remove the camera data inside a photo before sharing it, there is View and remove photo metadata.