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
| Format | Best for | Transparency | Animation | Typical saving vs JPEG |
|---|---|---|---|---|
| JPG | Photos, sharing | No | No | Baseline |
| PNG | Logos, screenshots, text | Yes | No | Larger for photos |
| WebP | Photos on modern sites | Yes | Yes | 25–35% smaller |
| AVIF | Smallest files, modern browsers | Yes | Yes | 30–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
- Website hero images. Keep the longest edge at 1920 px or below and aim for under 200 KB per image — a 4000 px phone photo is wasted weight on a 1200 px screen.
- Blog photos. Resize to about twice the display width (usually 800–1200 px) and compress to under 200 KB; a page full of 2 MB photos is the most common reason a blog feels slow.
- Social posts. Most feeds display at 1080 px wide, so a 1080 px image at quality 75 is plenty — and a smaller file uploads faster on mobile data.
- Email and messaging. A 50 KB photo at quality 60 still looks fine on a phone screen and slips under attachment limits that a 4 MB original would break.
- Upload forms. Visa, exam and job portals that cap uploads at 100 KB or 200 KB are exactly what the target-size mode is for.
- Product catalogues. Batch-compress a whole set of product photos at once and download them as one ZIP, all with the same quality and naming.
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
- Expecting a 90% reduction. A 4 MB phone photo does not become a crisp 300 KB file at normal quality — typical JPEG savings are 40–60%, WebP 50–80%. A 90% cut needs very low quality, downscaling, or both, and the result will not look crisp.
- Compressing an already-compressed file. Every JPEG save discards more detail. Always start from the original, and keep one untouched master copy.
- Low-quality artefacts. Below about quality 50–60, smooth skies and gradients start to show visible blocks. If you can see banding, go back up to 70–75.
- PNG photos. A photo saved as PNG is lossless, not small. If the file is a photo, JPEG or WebP will beat PNG on size every time.
- Forgetting the original. Compression is one-way. Compress a copy, keep the original safe, and never let the compressed file become your only version.
- Animated GIFs and HEIC. GIFs lose their animation (first frame only) and HEIC photos from iPhones cannot be opened in most browsers — convert HEIC first with our heic-to-jpg tool.
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:
| Photo | Original | JPEG, quality 75 | WebP, quality 75 |
|---|---|---|---|
| 1280 × 1920 photo | 302.3 KB | 267.1 KB (−11.6%) | 116.2 KB (−61.6%) |
| 1200 × 514 banner | 46.1 KB | 49.2 KB (larger!) | 27.2 KB (−41.1%) |
| 1200 × 630 cover | 47.9 KB | 38.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?
Will compressing twice make it worse?
Why is the output not always a JPG?
How much smaller will my images get?
How do I compress an image to exactly 100 KB?
Which format gives the smallest files?
Will compression change my image dimensions?
Why did one image barely get smaller?
Can I compress many images at once?
Are my images uploaded to a server?
Does compression remove EXIF and GPS location data?
What happens to animated GIFs and iPhone HEIC photos?
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.