Skip to content

Compress Images

Make JPG, PNG, WebP, GIF and TIFF images smaller: choose a quality level, or set a target size for the KB limit of a form.

Drag and drop your files here

or Choose Files

Maximum file size: 30 MB

Presets

A photo from a phone camera often runs to several megabytes, while an application portal may accept only a few hundred kilobytes, and large images slow down emails and web pages. This tool makes JPG, PNG, WebP, GIF and TIFF images smaller in your browser. JPG and WebP are saved at a lower quality; PNG mostly shrinks by using fewer colors, and keeps its transparency. You can work in two ways. Choose a level: High quality, Balanced (recommended) or Smallest size. Or tick Set a target file size and enter the most each image may weigh, such as 200 KB. The tool then looks for the highest quality that fits; only if even the lowest quality is too big does it reduce the pixel size as well, and it tells you the new dimensions. The format stays the same wherever the browser can write it, so a JPG stays a JPG and a PNG stays a PNG. An image that can't be made any smaller is handed back unchanged, so you never get a larger file than the one you put in. Compressed images lose their EXIF data, GPS location included.

How to Compress an Image — Step by Step

  1. 1

    Drag your JPG, PNG, WebP, GIF or TIFF images onto the upload area, or click Choose Files. Each image can be up to 30 MB.

  2. 2

    Choose a compression level, or tick Set a target file size and type the limit in KB next to Each image at most.

  3. 3

    Click Compress. The list shows each image's old and new size and the percentage saved; click Download, or Download All (ZIP) for several images.

Why Use Dokfo to Compress Images

Hit a KB limit

If a portal says 100 KB maximum, type 100. The quality is lowered only as far as needed, and the pixel size is reduced only when quality alone can't get there.

Clear, predictable levels

High quality saves JPG and WebP at 85%, Balanced at 72% and Smallest size at 55%. For PNG, High quality keeps every color, Balanced uses up to 256 and Smallest size up to 96.

Never larger than before

An image that is already well compressed, or already under your target, comes back as the original file with a note, not as a bigger copy.

Formats and transparency kept

JPG stays JPG, PNG stays PNG with its transparent areas, WebP stays WebP. Browsers can't write GIF or TIFF, so a still GIF becomes PNG and a TIFF becomes JPG.

When You Need to Compress an Image

  • Get a photo or a scanned ID under the size limit of a visa, job or university application portal.
  • Make vacation photos small enough to send several in one email.
  • Lighten the images on a website or online store so its pages load faster.
  • Free up space on your phone, laptop or cloud storage taken by large photos.
  • Strip GPS location and camera details from photos before you post or send them.

Your Images Stay on Your Device

Compression runs entirely in your browser: each image is opened in your device's memory, re-encoded there and offered for download. No image is uploaded to a server or stored anywhere. Compressed images don't carry EXIF data such as the GPS location, camera model and date taken. Only an image handed back unchanged, because it couldn't be made smaller or was already under the target, keeps its EXIF data.

Compress Image FAQ

How do I get a photo under 200 KB?

Tick Set a target file size, type 200 and click Compress. The tool finds the highest quality that fits; if even that is too big, it makes the image smaller in pixels and notes the new size in the list. If the target can't be reached, you are asked to try a higher one. Here 1 KB is 1,000 bytes, so the file is under the limit whether a portal counts 1,000 or 1,024 bytes to the kilobyte.

Will compression make my photo look worse?

JPG and WebP lose some detail as the quality goes down. At High quality and Balanced the difference is hard to see in most photos; at Smallest size it may show in fine detail and smooth skies. PNG images get fewer colors instead: screenshots and graphics usually look the same, while photos with soft gradients may show banding.

Is the transparency of PNG files kept?

Yes. PNG images stay PNG and their transparent areas are kept. At High quality every color is kept and the file is only re-compressed; Balanced and Smallest size reduce the number of colors, which is where most of the saving comes from.

Why did some images not get smaller?

An image that is already well compressed can't always be made smaller at the level you chose, so the tool keeps the original rather than give you a larger file, and says so in the list. Animated GIFs and TIFFs with several pages are left as they are too, because one compressed picture would lose the animation or the other pages. Try Smallest size, a target size, or Resize Image to reduce the pixel size.

Are my images uploaded to a server?

No. Compression happens entirely in your browser; your images never leave your device and nothing is stored.

Related Tools