Compress images

Make JPG, PNG, WebP and AVIF files smaller in seconds, one photo or a few hundred at a time. The compression runs inside your browser, so the images never leave your device.

Your files never leave your device

Compression
px

Drop images to compress

JPG, PNG, WebP or AVIF, as many as you like. They stay on your device.

You can also paste files with Ctrl+V.

In short

To compress an image, drop it here and keep the Balanced preset, or choose Smaller file for a lighter result. The tool re-encodes it with MozJPEG, WebP, AVIF or OxiPNG inside your browser and shows the old and new size; press Download to save it.

How to compress an image

  1. Drop your images onto the page or press Choose images. You can also paste a copied picture with Ctrl+V (⌘V on a Mac) and bring in more later with Add more files.
  2. Pick a Compression level: Balanced suits most photos, Smaller file squeezes harder, Best quality protects fine detail, and Custom unlocks the Quality slider.
  3. Optionally type a Maximum width or height such as 1920, or switch on Set a maximum file size and enter the limit in KB. Leave Output format on Same as input unless you want JPG, WebP, AVIF or PNG.
  4. Press Compress images. Every finished file lists its old size, its new size and the percentage saved; with one image, open Compare before and after to inspect it.
  5. Press Download for a single image or Download all as ZIP for a batch. To try other settings, choose Change settings and then Compress again.

Why a compressed image looks the same but weighs less

A photo straight from a phone camera is saved generously: a 12-megapixel JPG at very high quality often weighs 3 to 5 MB, and much of that data describes sensor noise and detail your eyes can't separate on a screen. Modern encoders such as MozJPEG, WebP and AVIF spend fewer bits on what is hard to see, so the file shrinks a lot while the picture looks practically unchanged.

Pixel count matters even more than quality. A 4000 × 3000 photo holds 12 million pixels; scaled to 1920 pixels on its long side it holds about 2.8 million, less than a quarter of the data. That is why the Maximum width or height field is often the single biggest saving for pictures that will only ever be seen on a screen.

PNG behaves differently. It is lossless, so OxiPNG can only repack the same pixels more tightly, which usually trims a modest share. Real PNG savings come from reducing the image to a 256-color palette (the Smaller file level) or, for photos stored as PNG, from switching the Output format to JPG or WebP.

Frequently asked questions

Does compressing an image reduce its quality?

With JPG, WebP and AVIF, slightly: these formats are lossy, so some detail is discarded whenever they are encoded. At the Balanced level the difference is very hard to spot at normal viewing size, and the Compare before and after slider lets you judge it yourself. PNG at Balanced or Best quality is lossless, so its pixels stay exactly the same.

How do I compress an image to a specific size in KB?

Switch on Set a maximum file size and type the limit into Maximum file size. The tool tries about eight quality levels to find the best one that fits, and with Reduce dimensions if needed switched on it also scales the picture down when quality alone isn't enough. Ready-made pages exist for 100 KB, 200 KB, 50 KB and 20 KB.

Which image formats can I compress?

JPG, PNG, WebP and AVIF. iPhone HEIC photos need converting first with HEIC to JPG, and GIF, BMP or SVG files can be turned into a supported format with the image converter. The type is recognized from the file's content, so a wrong extension doesn't stop it.

Are my images uploaded to a server?

No. The encoders run as WebAssembly inside this browser tab: each image is read from your disk into memory, compressed there and saved back to your device. Your browser's network panel stays quiet while it works, and once the page has loaded it even keeps working offline.

Why did a file come back marked Already optimized?

If compressing an image in its own format would save less than 2%, the tool keeps your original instead of handing you a re-encoded copy that is barely smaller and slightly worse. This is common with photos that a website or messaging app has already compressed. Choose Smaller file or a different Output format if you still need a lighter file.

Should I choose JPG, WebP or AVIF as the output format?

JPG opens everywhere, including old software and strict form portals. WebP is usually noticeably smaller for the same look and displays in every current browser. AVIF is smaller still but takes much longer to create, because the browser encodes it on a single thread.

Is there a limit on file size or the number of images?

There is no daily cap and no limit on how many images you add; your device's memory is the only practical boundary. Single images up to about 100 megapixels work on computers and about 40 megapixels on phones. Computers compress several files in parallel, phones one after another.

Does compression remove EXIF data and GPS location?

Yes, by default all metadata is stripped, including the GPS position, camera details and comments. If you need the capture date and camera model, turn on Keep date and camera info; it applies to JPG output only, and the location is removed regardless.

Which compression level to choose

The four levels map to fixed encoder settings, so the same image always gives the same result. For JPG and WebP, Smaller file uses quality 60, Balanced 75 and Best quality 88; AVIF uses its own scale, where the levels are 35, 50 and 65. Custom shows a Quality slider for anything in between.

  • Smaller file: thumbnails, previews, chat attachments and anything viewed small.
  • Balanced: the default, a good fit for blog photos, product shots and email.
  • Best quality: portfolios, detailed landscapes and images containing fine text.
  • PNG at Smaller file: a 256-color palette, ideal for screenshots and flat graphics.

Pixel sizes that work for common uses

Most pictures are displayed far smaller than a camera records them, so a sensible Maximum width or height gives the biggest and cleanest savings. Type the long-side size you need, or leave the box empty to keep the original dimensions; images that are already smaller are never enlarged.

  • Full-width website banner or hero image: 1920 pixels.
  • Pictures inside a blog post or article: 1200 to 1600 pixels.
  • Online shop product photo: 1000 to 1500 pixels.
  • Photo sent by email to be viewed on screen: around 1600 pixels.
  • Thumbnail or avatar: 300 to 600 pixels.

Compressing many images at once

Select dozens of files in one go, or keep adding them with Add more files; each one shows its own status while it waits, works and finishes. A computer handles several images in parallel, while a phone takes them one by one to stay within its memory. When the batch is done, Download all as ZIP saves everything together, and pressing Cancel during a run keeps the files that were already finished.

Good to know before you compress

A few behaviors are worth knowing so the results don't surprise you. For format-specific advice, see the pages on how to compress JPEG and compress PNG files.

  • Transparent PNG or WebP images saved as JPG get a white background, because JPG has no transparency.
  • Colors are converted to sRGB, the standard color space for screens and the web.
  • AVIF output is the slowest to create; for a large batch, WebP finishes much sooner.
  • Your original files are never changed; the compressed versions are saved as new downloads.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026