Home › Image Tools › Image Compressor
🖼️

Image Compressor

Free image compressor: shrink JPG, PNG and WebP photos with a quality slider, presets, batch ZIP and target-size mode. In your browser — private, fast, no signup.

About this tool

Huge photos slow down websites, clog inboxes and eat phone storage. An image compressor shrinks your pictures to a fraction of their size while keeping them looking great — by re-encoding them at a quality level you choose, in a format that suits the picture.

This free tool does all the work in your browser: your photos are never uploaded to any server, so your files never leave your device. Drop in up to 20 images at once, pick a quality or a target size such as 100 KB, and download the results one by one or as a single ZIP file.

By Azhar Hussain · Last updated: 19 November 2026

How to use

Choose your images — drag them in, pick them from your device, or paste a screenshot. Set the quality with the slider: 70 to 80 is the sweet spot for web use, looking nearly identical to the original at a much smaller size. The preset buttons jump straight to Low (50), Recommended (75) or High (90).

Pick an output format: JPEG for photos, WebP for the smallest files, PNG when you need transparency or razor-sharp text. If you need an exact size, choose a target such as 100 KB and the tool lowers the quality first, then the dimensions, until the file fits. The max-dimension box shrinks oversized photos while keeping their shape.

Click Compress Images and check the before and after sizes for each file. If a file barely shrinks, the tool says so and keeps your original instead of handing you a larger 'compressed' file.

The math behind it

JPEG and WebP compression work by throwing away fine visual detail the human eye barely notices, especially in smooth areas and subtle colour shifts. The quality setting controls how aggressive this is: at 90 almost nothing is discarded, at 10 most detail is gone. WebP does the same job about 25–35% smaller than JPEG at the same quality, which is why it is the better default when every kilobyte counts.

JPEG is the most widely compatible format for photos — it opens everywhere — but it is not the most efficient, and it has no transparency: a transparent PNG flattened to JPEG takes the background colour you pick, white by default. PNG is lossless, so it never loses quality, but a photo saved as PNG is usually several times larger than the same photo as JPEG. Because the tool redraws your image onto a canvas and re-encodes it, any EXIF or GPS location data is stripped in the process. Photos typically shrink 40–60% as JPEG and 50–80% as WebP with no visible quality loss.

Format comparison — JPG vs PNG vs WebP vs AVIF

FormatBest forTransparencyAnimationTypical saving vs JPEG
JPGPhotos, sharingNoNoBaseline
PNGLogos, screenshots, textYesNoLarger for photos
WebPPhotos on modern sitesYesYes25–35% smaller
AVIFSmallest files, modern browsersYesYes30–50% smaller

JPEG XL compresses even better than AVIF in lossless mode, but only about 15% of browsers support it today, so it is not a safe primary format. For anything you share widely, JPEG or WebP is the practical choice.

Lossy vs lossless, in plain words

Lossy formats (JPEG, WebP, AVIF) throw away detail permanently to make a smaller file. Once saved, that detail is gone — which is why you should always keep the original and never compress the same file twice. Lossless formats (PNG) keep every pixel exactly, so the file can be opened and re-saved forever without damage — but a photo saved as PNG is usually several times larger than the same photo as JPEG, because photos have too much random detail for lossless methods to squeeze.

The practical rule: use lossy formats for photos and lossless formats for graphics. A screenshot with flat colours and sharp text compresses poorly as JPEG (the edges smudge) and beautifully as PNG; a camera photo does the opposite. WebP sits in the middle — it can be lossy like JPEG or lossless like PNG, which is why it wins on size for both kinds of image.

Compress to a size limit

Upload forms, exam portals and email attachments often set a hard size limit — 20 KB for a signature, 50 KB for an ID photo, 100 KB for an application, 1 MB for a phone photo. Guessing a quality number to hit one of these is trial and error, so this tool does it for you: pick the target and it lowers the quality step by step, then shrinks the dimensions only if it has to.

A kilobyte here is counted as 1,000 bytes, not 1,024, so a file that fits the target also passes forms that count a kilobyte the stricter way. If even the smallest quality and a smaller image cannot reach the target, the tool hands you the smallest version it could make and tells you the size — try WebP output or a lower max dimension next.

Use cases with real numbers

Why compress: page speed and Core Web Vitals

Images are usually the heaviest part of a web page, and the heaviest image on the page is what decides the Largest Contentful Paint (LCP) — the Core Web Vital that measures how fast the main content appears. Google's good-LCP target is 2.5 seconds, and a common per-image budget is roughly 300–500 KB. A single 4 MB hero photo can blow that budget on its own.

Compressing images does not guarantee a better search ranking — speed is one of many ranking signals, and content still matters most. What it does guarantee is a page that opens faster, uses less mobile data, and feels less sluggish to the person waiting for it. Resize first, then compress: halving the width and height leaves a quarter of the pixels, which is often a bigger win than any quality setting.

Limitations and common mistakes

Privacy and metadata

Everything runs in your browser: your photos are never uploaded, stored or sent anywhere, and there is no account, no watermark and no retention window. Server-based compressors typically keep uploads for up to 48 hours; here that step does not exist.

Re-encoding also strips the EXIF block — camera settings, dates and GPS coordinates — which is a privacy win for photos you share online. Keep one untouched original as your master copy, because the location and camera data cannot be recovered once stripped. The tool never asks for your name, email or anything else.

Worked example with real numbers

We measured three test photos with a standard JPEG/WebP encoder at quality 75 — the same encoder family browsers use for canvas exports, so your results will be very close:

PhotoOriginalJPEG, quality 75WebP, quality 75
1280 × 1920 photo302.3 KB267.1 KB (−11.6%)116.2 KB (−61.6%)
1200 × 514 banner46.1 KB49.2 KB (larger!)27.2 KB (−41.1%)
1200 × 630 cover47.9 KB38.1 KB (−20.5%)17.1 KB (−64.4%)

The banner shows why the already-optimised guard exists: re-saving it as JPEG at quality 75 made it bigger, so the tool would have kept the original. The same file as WebP still shrank by 41% — changing format often beats lowering quality. And the tall photo shows the other side: at 11.6% saved, JPEG had little left to remove, while WebP cut it by more than half.

Frequently asked questions

What quality setting should I use?
For websites and sharing, 70 to 80 gives the best balance: files shrink dramatically with no visible difference — the Recommended preset is 75. For email attachments where size matters most, 50 to 60 still looks fine on screens. Use 85 to 90, or 95 to 100, only when you need near-original quality, such as images you plan to edit further. If a file must hit an exact size, use the target-size mode instead of guessing a quality number.
Will compressing twice make it worse?
Yes, avoid it. Every JPEG save discards a little more detail, so compressing an already-compressed image degrades quality faster. Always compress from the original photo when possible, and keep the original safe in case you need a different size later.
Why is the output not always a JPG?
It used to be — this tool now lets you choose. JPEG is the most widely compatible format for photos and the smallest safe choice for sharing, but WebP is typically 25–35% smaller at the same quality, and PNG is the right call for logos and screenshots because it keeps transparency and sharp text. JPEG has no transparency: a transparent PNG saved as JPEG is flattened onto the background colour you pick, white by default. If your file is a photo, JPEG or WebP is right; if it is a logo or a screenshot with text, choose PNG or WebP.
How much smaller will my images get?
Photos typically shrink 40–60% as JPEG and 50–80% as WebP with no visible quality loss. Screenshots and graphics with flat colours shrink less, and files that are already well optimised may barely shrink at all — in that case this tool keeps your original and tells you so. The exact saving depends on the picture: a noisy phone photo compresses less than a clean studio shot, and a lower quality setting always shrinks further at the cost of visible detail.
How do I compress an image to exactly 100 KB?
Choose 100 KB in the target-size menu before you compress. The tool first lowers the quality step by step, and if that is not enough it shrinks the dimensions until the file fits. A kilobyte here is counted as 1,000 bytes, so a file that fits here also passes upload forms that count 1,024 bytes per kilobyte. Common targets: 20 KB for signatures, 50 KB for exam and ID photos, 100 KB for application uploads, 1 MB for phone photos and email.
Which format gives the smallest files?
AVIF is usually the smallest of all, roughly 30–50% smaller than JPEG, but it encodes slowly and some older tools cannot open it. Of the formats this tool offers, WebP is the smallest practical choice — about 25–35% smaller than JPEG at the same quality — and it works in all current browsers. PNG is the largest for photos but the right choice for logos, screenshots and anything with transparency.
Will compression change my image dimensions?
No — not unless you ask it to. Quality alone never changes the pixel dimensions; a 4000 × 3000 photo stays 4000 × 3000, just with a smaller file. Only the optional max-dimension setting changes the size, and then the aspect ratio is always kept, so nothing gets stretched.
Why did one image barely get smaller?
It was probably already optimised. A photo that was already saved at low quality, or a small graphic with few colours, has little left to remove. This tool checks for that: if the compressed result would be larger than the original, it keeps your original and marks it "already optimised" instead of handing you a bigger file. Try WebP output or a smaller max dimension if you still need it smaller.
Can I compress many images at once?
Yes — up to 20 images per run, 20 MB each. Every file is shown with its original size, new size and percentage saved, and you can download them one by one or all together as a single ZIP file. The file names get a _compressed suffix, so your originals are never overwritten.
Are my images uploaded to a server?
No. Everything runs in your browser with no upload, no account and no watermark. Your files never leave your device, so there is nothing stored and nothing to delete afterwards. Server-based compressors typically keep uploads for up to 48 hours; here that step does not exist.
Does compression remove EXIF and GPS location data?
Yes. Re-encoding an image drops the EXIF block, including camera settings, dates and GPS coordinates. That is a privacy win for photos you share online — but keep one untouched original as your master copy, because the location and camera data cannot be recovered once stripped.
What happens to animated GIFs and iPhone HEIC photos?
An animated GIF is saved as a still image — only the first frame survives, because a JPEG or WebP photo cannot hold animation. Choose PNG output if you want that frame with its transparency kept. HEIC photos from iPhones cannot be opened in most desktop browsers, so convert them first with our heic-to-jpg tool and then compress the result.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.