Image compressor

Compress and resize JPG, PNG and WebP images right in your browser. Your photos are never uploaded — all processing happens on your device.

Drop images here or click to browse
JPG · PNG · WebP · multiple files supported · nothing is uploaded

How to compress an image

Set your target quality (70% is a good balance of size and clarity), optionally cap the max width to shrink large photos, choose an output format, then drag your images onto the box above. Each image is re-encoded and you can download the smaller version immediately. Add as many images as you like — they are all processed on your device.

JPG vs WebP

JPG is universally supported and best for photos where small file size matters most. WebP is a modern format that typically produces even smaller files at the same quality and is supported by all current browsers — a great choice for websites you control. Note that both are lossy, so transparency (as in PNGs) is replaced with a solid background.

Choosing a quality setting

Compression quality is not linear. Dropping from 100 to 85 removes most of the file size and almost none of the visible detail, because the first thing JPEG discards is information the eye is least sensitive to. Below about 70 the losses start to show as blocking and haloing around edges.
QualityTypical size reductionVisible result
95–10010–25%Indistinguishable from the original; wasteful for web use
85–9050–70%The sweet spot — no visible loss in normal viewing
75–8570–80%Very slight softening, acceptable for most web images
60–7580–88%Noticeable artefacts around sharp edges and text
under 6090%+Obvious blocking; use only for thumbnails
Start at 85 and only go lower if the file is still too large. If it is, resizing the image usually helps more than compressing it harder.

Resize before you compress

The most common reason a photo is oversized is not weak compression — it is that a 4000-pixel-wide image is being displayed in a 800-pixel-wide space. File size scales with total pixels, so halving the width and height cuts the pixel count to a quarter before compression even starts.
UseRecommended width
Full-width hero image1920px
Blog body image1200px
Thumbnail or card400–600px
Profile picture or avatar400px
Email attachment1200px

Why file size matters for a website

Images are typically the largest thing a page downloads, which makes them the main lever on load time. Google measures Largest Contentful Paint — how long the biggest visible element takes to appear — as a ranking signal, and on most pages that element is an image.

A practical target is under 200KB for a full-width image and under 100KB for anything smaller. Getting there is usually a matter of resizing to the display size, compressing at 85, and choosing WebP where support allows.

Frequently asked questions

Are my images uploaded to a server?

No. Compression uses the HTML canvas inside your browser. Your images never leave your device, making this safe for private or sensitive photos.

Why did my PNG get a background?

JPG and WebP output is lossy and JPG has no transparency, so transparent areas become a solid fill. Keep a PNG if you need transparency.

How much smaller will my images get?

It depends on the original, but 60–90% reduction is common for photos at 70% quality, especially when you also cap the maximum width.

Is there a file size or count limit?

There is no hard limit — you can compress many images at once. Very large files are limited only by your device's available memory.

Does compressing an image reduce its quality?

JPEG and WebP compression is lossy, so some data is always discarded. At quality 85 the loss is invisible in normal viewing while the file is typically 50 to 70 percent smaller.

Should I use JPG, PNG or WebP?

WebP for almost everything on the web — it is 25 to 35 percent smaller than JPEG at equal quality and supports transparency. Use JPEG for photographs where maximum compatibility matters, and PNG only for images needing sharp edges or transparency, such as logos and screenshots.

Why is my PNG so large?

PNG is lossless and poorly suited to photographs, where it can be many times larger than JPEG. Convert photos to JPEG or WebP and reserve PNG for graphics with flat colour and sharp edges.

What is a good file size for a web image?

Under 200KB for a full-width image and under 100KB for smaller ones. Resizing to the actual display width usually matters more than the compression setting.

Are my images uploaded anywhere?

No. Compression runs in your browser using the HTML canvas, so your photos never leave your device.

Can I compress the same image twice?

You can, but avoid it. Lossy compression compounds, so each pass discards more detail. Always compress from the original rather than from an already-compressed copy.

Related free tools

PDF toolsQR code generatorColor converterJSON to CSV