Make image files smaller so they load faster, upload more easily, and fit into email or forms. Choose your image, set the quality, and compare the result side by side before you download it. Compression runs in your browser, so your image stays on your device and is not uploaded to our servers.

Compressing images is useful for website uploads, online forms, email attachments, and sharing photos when you have a file size limit.

How to compress an image

  • Add your image: click the preview box to choose a file, or drag it in. The size and dimensions appear once it loads.
  • Set the quality: drag the slider. Higher keeps more detail, and lower makes a smaller file.
  • Choose a format and size: keep the original format, or convert to another format. You can also set a maximum width or height.
  • Check the preview: drag the divider to compare the original with the compressed version, then read the size and format line under the image.
  • Compress and download: press Compress image, check how much space you saved, then download the file.

Which format to choose

FormatBest forNotes
Browser JPEGPhotos and scenes with many colorsFast and works everywhere. Transparency is not supported, so it turns white.
MozJPEGPhotos when you want the smallest JPEGSmaller than Browser JPEG at the same quality. Slower to save.
WebPWebsites and general useUsually smaller than JPEG at the same quality. Keeps transparency.
AVIFThe smallest files for most imagesKeeps transparency. Slower to save, and some apps cannot open it.
JPEG XL (beta)Small files with transparencyExperimental. Most browsers and apps cannot display it yet.
Browser PNGScreenshots, logos, and graphics with textLossless, so quality does not apply. Files are often larger.
OxiPNGMaking an existing PNG smallerLossless. Slower on large images.
QOISimple lossless storageFiles are often larger than PNG, and few apps open it.

What this tool does and does not do

The tool re-encodes the image at the quality and size you choose, and the preview shows the same result you will download. Lower quality and smaller dimensions reduce file size, but they also remove detail. Photos compress well with JPEG, WebP, or AVIF, while PNG stays sharp because it does not lose detail. This tool does not edit, crop, or add watermarks. Animated GIFs keep only their first frame.

Tips for better results

  • Start at 80: most photos look fine at this setting. Lower it only if you need a smaller file.
  • Resize first for large photos: a 1920 px maximum is enough for most websites and screens.
  • Use WebP or AVIF for websites: they are usually smaller than JPEG at similar quality.
  • Check faces and text: drag the divider over them in the preview before you download.
  • Keep the original: compression creates a new file and does not change your source image.
Smaller images load faster and fit upload limits. Compress your images in seconds, and keep them on your own device.

Common image compression problems

  • File did not get smaller: the image may already be compressed, or it is small. Try a lower quality or a smaller maximum size.
  • Image looks blurry or blocky: the quality is too low. Raise the slider, or choose WebP, AVIF, or a PNG format.
  • File got larger: PNG and QOI files can grow when converted from photos. Choose a JPEG, WebP, or AVIF format instead.
  • Transparent background turned white: JPEG formats do not support transparency. Choose WebP, AVIF, or a PNG format to keep it.
  • Preview is missing: your browser cannot show JPEG XL or QOI. Download the file to check it, or choose WebP, AVIF, or PNG for a preview.

Frequently asked questions

Are my images uploaded?

No. Compression runs in your browser, and the image stays on your device.

Does the preview match the downloaded file?

Yes. The preview uses the same format, quality, and size settings as the download. The only exception is formats your browser cannot display, such as JPEG XL and QOI. For those, the preview is replaced by a note, and the size is still shown.

What does the quality slider do?

It controls how much detail is discarded when the image is saved in a lossy format such as JPEG, WebP, or AVIF. Lower values make smaller files with more visible softening. PNG, OxiPNG, and QOI are lossless, so the slider does not apply to them.

Will the compressed image keep its transparency?

Yes, if you choose WebP, AVIF, JPEG XL, or a PNG format, or keep an original PNG or WebP file. JPEG formats do not support transparency, so transparent areas become white.

Why does the first use of some formats take longer?

MozJPEG, AVIF, JPEG XL, OxiPNG, and QOI use encoders that load the first time you choose them. Later compressions in the same visit are faster. If an encoder cannot load, the image is saved as a JPEG instead and the result tells you so.

Does resizing reduce quality?

It reduces the number of pixels, so fine detail is lost. Images are never enlarged. A smaller maximum size only applies when the image is bigger than the limit you choose.

Which image types are supported?

JPEG, PNG, WebP, GIF, and BMP images can be compressed. Animated GIFs keep only their first frame. SVG files are vector graphics and are not supported.

Share this article