IT Image Tools

Image Optimizer — MozJPEG & OxiPNG Compression in Your Browser

Optimize JPEG with MozJPEG and PNG losslessly with OxiPNG, in batches, right in your browser. See before/after sizes and savings, then download files or a ZIP.

🔒 Runs entirely in your browser — nothing is uploaded

Drop JPG or PNG images here or click to browse

JPEG → re-encoded with MozJPEG (lossy, quality you choose). PNG → recompressed with OxiPNG (lossless, pixels unchanged).

Advertisement

Smaller JPEG and PNG files with professional encoders

Images are usually the heaviest part of a web page, and cameras, phones and design tools rarely save them as efficiently as they could. This image optimizer uses two of the best open-source encoders, compiled to WebAssembly so they run inside your browser: MozJPEG for JPEG photos and OxiPNG for PNG graphics. Both come from the same projects that power Google's Squoosh app. Drop a single file or a whole folder's worth of images, press Optimize, and a table shows the size before and after, the percentage saved and a download link for every file. When there are several files, you can grab them all at once as a ZIP archive.

Lossy JPEG versus lossless PNG

JPEG files are decoded and re-encoded with MozJPEG, which uses trellis quantisation and optimised Huffman tables to produce noticeably smaller files than a browser's built-in encoder at the same visual quality. This is lossy: choose a quality between about 75 and 85 for web photos, or higher for print. Progressive encoding is enabled by default so images appear quickly at low resolution and sharpen as they load. PNG files are handled completely differently: OxiPNG tries different filters and compression strategies and keeps the smallest result, while every pixel stays exactly the same. Higher optimization levels search more combinations and take longer. The optional cleanup of fully transparent pixels is invisible but often shrinks icons and logos further.

Safe defaults and full privacy

Some files are already optimized, and re-encoding them would make them bigger. By default the tool detects this and keeps your original file, so you never end up with a worse result. Because everything happens locally, there are no upload limits, no waiting for a server and no risk of private images being stored elsewhere. JPEG output does not keep EXIF metadata such as GPS location, which also saves a few kilobytes. For modern formats, try the AVIF converter or the WebP converter on this site.

How to use

  1. Add imagesDrop one or many JPG and PNG files.
  2. Set the optionsChoose the JPEG quality and progressive mode, and the PNG optimization level.
  3. OptimizePress Optimize and compare the before and after sizes for each file.
  4. DownloadSave files one by one or all together as a ZIP.

Frequently asked questions

Are my images uploaded?
No. MozJPEG and OxiPNG run as WebAssembly inside your browser. The files are read, optimized and saved on your device only.
Is PNG optimization really lossless?
Yes. OxiPNG only changes how the PNG data is filtered and compressed; every pixel stays identical. The optional transparent-pixel cleanup changes only the hidden colour of fully transparent pixels.
What JPEG quality should I use?
75–85 is a good balance for photos on the web. Higher values keep more detail but save less. Re-encoding at 100 rarely makes a file smaller.
Why was the original kept for some files?
Files that were already well optimized can get slightly larger when re-encoded. With “Keep the original if the result is larger” enabled, the tool returns the original file instead.
Does it remove metadata?
Yes for JPEG: the image is re-encoded from pixels, so EXIF data such as camera details and GPS location is not kept. OxiPNG removes non-essential PNG metadata chunks while keeping colour information.
Advertisement