Skip to main content
LFKit

Compress Image Online

Compress images online in your browser: shrink JPG, PNG and WebP files, resize them and process a batch at once. Free, and nothing is uploaded.

Options

Processed right in your browser, your files never leave your device.

Compress images right in your browser

Photos from a modern phone often weigh several megabytes, yet many upload forms, job portals and email servers only accept small attachments. This tool shrinks JPG, PNG and WebP images in seconds. You choose the quality, the dimensions and the output format, and you can process a whole batch at once.

Everything runs on your own device. Your images are not uploaded to any server.

How to use it

  1. Add your images. Drag them into the drop area, or click it to pick files. You can add up to 50 images at a time.
  2. Pick your settings: output format (keep original, JPG, WebP or PNG), quality, and whether to resize.
  3. Click “Compress images”. Each file shows its size before and after, plus the percentage saved. A total line shows how much you saved overall.
  4. Download. Use “Download” on a single image, or “Download all (zip)” once you have two or more results.

If you change a setting after compressing, the images go back to the waiting state so they can be recompressed with the new values.

What the settings do

  • Quality (1–100): applies to JPG and WebP, which are lossy formats that discard some detail to save space. Lower quality means a smaller file, but also more blur or blocky artifacts. The default is 80.
  • PNG: a lossless format that keeps every pixel, so the quality slider is disabled for it. Resizing is the most effective way to shrink a PNG.
  • WebP: usually produces smaller files than JPG at a similar look, but some older software can’t open it. If your browser can’t encode WebP, the tool falls back to JPG.
  • Fit inside a box: enter a maximum width and height in pixels. The image is scaled down to fit and keeps its aspect ratio. Images already smaller than the box are never enlarged. Use 0 for no limit on that side.
  • By percentage: for example, 50% halves both width and height, which leaves roughly a quarter of the pixels.

Under the hood, your browser decodes the image, draws it onto a canvas at the new size, and encodes it again in the format and quality you chose. The image is rotated to match the camera’s orientation. Because the image is re-encoded, extra metadata such as the location or camera model is usually not carried over to the result.

Example

Say you have a phone photo to attach to an online application that limits file size. Keep the format on “Keep original”, set the quality to 80, choose “Fit inside a box” and enter 1920 for width and 1080 for height. The file will shrink considerably while staying sharp enough to view on a screen. If it is still too big, lower the quality to 70 or use a smaller box and compress again. Each attempt takes only a few seconds.

These numbers are only a starting point. The right values depend on the photo and on the limit you need to meet.

Privacy

Images are compressed in your browser. They never leave your device and are not stored anywhere else. Closing or reloading the page clears the images you selected.

Frequently asked questions

Are my images uploaded to a server?

No. Compression happens entirely in your browser, so your images never leave your device. The page only downloads the tool's code; the contents of your images are never sent anywhere.

What quality setting should I use?

For photos, 70–85 is usually a good balance between file size and sharpness. Try it, compare the before and after sizes, then open the result and judge it by eye. Images with small text or fine lines look better at a higher setting.

Why does compressing a PNG barely change its size?

PNG is a lossless format, so the quality slider has no effect on it. To make a PNG smaller, reduce its dimensions, or convert it to JPG or WebP if you don't need transparency.

Why is the compressed image larger than the original?

Images that are already well optimized can grow when they are re-encoded. If you keep the same format and size and the new file isn't smaller, the tool returns your original file and tells you so, so you don't download a bigger copy by mistake.

What happens to transparency when I convert a PNG to JPG?

JPG has no transparency, so transparent areas are filled with white. Choose PNG or WebP if you need to keep a transparent background.

Can I compress HEIC photos or animated GIFs?

This tool accepts JPG, PNG, WebP, BMP and AVIF. HEIC and animated GIF are not supported here. Convert HEIC photos to JPG first, then compress them.

Đọc bản tiếng Việt: Nén ảnh online