All Tools View Categories Blog About Contact Privacy
✦ CompressPrivate
Compress Anything.
Images · PDF · Video · Audio · Docs
🔒 100% Private ⚡ Free Forever ☁️ No Uploads
Compress Free →

Compress Images Online

Shrink JPEG, PNG, WebP, GIF & SVG files up to 90% — batch, resize, strip metadata, convert to WebP — 100% local, zero upload, instant ZIP download.

100% private — images processed locally in your browser, never uploaded. Loading...
Drop images here
JPEG · PNG · WebP · GIF · SVG · BMP · ICO — unlimited files
No images yet
Drop files above to get started
Global Settings
Balanced
Low (high quality)High (small file)
Good balance — recommended for photos
Max Width (px)
Max Height (px)
Aspect ratio always preserved. 0 = keep original dimension.
Complete Image Compression Guide

Everything You Need to Know About Compressing Images

Images are the heaviest thing on almost every web page, and most of that weight is avoidable. This guide covers how compression actually works, which format to pick for which image, what the quality slider really trades away, and how to cut page weight without anyone noticing.

~50%
Of page weight is images
25–34%
WebP saves vs JPEG
2.5s
Good LCP target
0
Bytes uploaded here

Lossy, Lossless, and What Gets Thrown Away

Every image compressor does one of two things: find repetition and store it once (lossless), or discard information the eye is bad at noticing and store the rest (lossy). Knowing which one you are using explains every result you will get from this tool.

💎

Lossless

PNG, lossless WebP and SVG rebuild the original exactly. They win on flat color, repeated patterns and sharp edges, where prediction and pattern matching pay off. On photographs they save very little.

🎨

Lossy

JPEG and lossy WebP convert blocks of pixels into frequency components, then round the ones your eye weights least. Ten to twenty times smaller on photos, with no visible change until you push too far.

📈

Quantization

The shared lossy mechanism: divide a value by a step size and round. Bigger steps mean more values collapse to zero, more zeros mean better entropy coding, and the file shrinks. Quality settings just scale that step size.

🎭

Perceptual Modelling

Human vision resolves brightness far better than color and fine detail far worse than broad shapes. Codecs exploit both — storing color at half resolution and discarding high frequencies first.

📏

Resolution Beats Everything

File size scales with pixel count. Halving both dimensions removes 75% of the pixels before any codec runs — usually a bigger win than any quality setting, and with no artifacts.

🔒

All Local, No Upload

This tool decodes and re-encodes through the browser's Canvas API. Nothing is sent to a server, which makes it safe for medical scans, contracts, ID documents and unreleased work.

Generation loss is real. Re-compressing an already-lossy image quantizes an approximation of an approximation. Two passes are usually invisible, ten are not. Always keep the original and export derivatives from it, never from a previously compressed copy.

Which Format for Which Image

Format choice usually saves more than any slider. Match the codec to the content: continuous tone goes lossy, flat color goes lossless, and anything web-facing should probably be WebP.

PropertyJPEGPNGWebPGIFSVG
CompressionLossyLosslessBothLossless LZWText / vector
Colors16.7M16.7M16.7M256Unlimited
TransparencyNo8-bit8-bit1-bitYes
AnimationNoAPNGYesYesYes (SMIL/CSS)
Photo (3MP)~0.6–1.2 MB~4–6 MB~0.4–0.8 MB~2 MBNot suitable
Sharp text/edgesRingingPerfectPerfectPerfectPerfect
Best forPhotosScreenshots, logosAlmost everything webLegacy loopsIcons, charts
📷

Photograph, no transparency → WebP first, JPEG as the compatible fallback. Expect 85–95% off the original camera file once resized.

🎨

Logo, icon, UI screenshot, diagram → PNG or lossless WebP. Never JPEG — sharp edges are exactly what DCT handles worst.

🌑

Anything needing transparency → PNG or WebP. JPEG has no alpha channel and will flatten transparent regions onto a solid background.

📐

Flat vector artwork → keep it as SVG if you have the source. A vector icon is often a few hundred bytes and stays sharp at every zoom level.

What the Compress Level and Resize Fields Do

The compress level scales the encoder's quantization step; resizing removes pixels outright. Used together they routinely take a 5 MB camera file under 300 KB with nothing visible lost at display size.

Compress levelResult on photosTypical size vs originalUse for
1–10Indistinguishable60–85%Archival, print masters
11–25Visually lossless25–50%Client delivery, portfolios
26–45Slight softening12–25%Web pages, blogs, catalogs
46–65Visible on flat areas7–14%Thumbnails, list previews
66–100Obvious artifacts2–8%Placeholders only
📏

Resize to Real Display Size

Set a max width equal to the widest the image is ever rendered, doubled at most for high-DPI screens. Aspect ratio is preserved automatically, so setting width alone is usually enough.

🚫

No Upscale

Enable this for mixed batches. Without it, a small image given a large max dimension is scaled up — adding pixels without adding detail, and growing the file for nothing.

🔍

Judge at 100%, Not Fit-to-Screen

Use the before/after split view on a detailed region — hair, foliage, fabric weave, skin. Artifacts that only appear at 400% zoom do not exist for your visitors.

🌄

Content Changes the Answer

Noisy, highly detailed photos need a lower level to stay clean. Smooth studio shots and open skies survive much higher levels because there is little fine detail to lose.

A reliable default: resize to 1920px on the long edge, output WebP at compress level 25, strip metadata. That single recipe handles the large majority of web images and typically removes 90% or more of the original bytes.

The Data Hiding Inside Your Images

Photos from phones and cameras carry an EXIF block that most people never look at. It adds kilobytes to every file and frequently records exactly where and when the shot was taken.

EXIF
GPS
Latitude, longitude, altitude
exact capture location
EXIF
Device
Make, model, lens, serial number
links photos to one camera
EXIF
Time
Original capture timestamp
survives copying and emailing
XMP
Edits
Editing history, author, copyright
software and account names
ICC
3–500KB
Embedded color profile
often larger than a thumbnail
🔒

Nothing Leaves Your Device

Files are read with the FileReader API and processed on a canvas in your own browser. There is no upload step, no server copy, and no account — the tool works with your network disconnected.

🧹

Metadata Is Dropped on Re-encode

Because output is re-encoded from raw pixels, EXIF, GPS, XMP and ICC data simply are not carried across. Strip Metadata makes that explicit and typically saves 10–40 KB per photo.

⚠️

Keep an Archive Copy

If you need shooting data for cataloguing or licensing, archive the originals first. Stripped metadata cannot be recovered from the compressed output.

🌐

Browsers Assume sRGB

Dropping a wide-gamut ICC profile is safe for web delivery and saves real bytes. For print or color-critical work, keep the profile and compress less aggressively instead.

Cutting Page Weight Without Anyone Noticing

Images dominate transfer size on most sites, and the largest one is usually the element that decides your Largest Contentful Paint score. Eight habits that move the needle.

1

Resize before compressing, every time. Pixel count is the dominant term. A 4000×3000 image at a gentle level is still larger than a 1600×1200 at an aggressive one — and the resized copy looks better on screen.

2

Convert to WebP for web delivery. Typically 25–34% smaller than JPEG for photos and around 26% smaller than PNG for graphics, with support in every current browser.

3

Optimise the hero image hardest. The above-the-fold image is almost always the LCP element. Getting it under a few hundred kilobytes does more for perceived speed than optimising twenty images below the fold.

4

Serve responsive sizes. A phone does not need the desktop hero. Export two or three widths and let srcset pick — mobile visitors often download a quarter of the bytes.

5

Lazy-load everything below the fold. loading="lazy" is one attribute and defers most of a long page's image weight until it is actually needed.

6

Always set width and height. Explicit dimensions reserve the space before the image arrives, which prevents layout shift — a Core Web Vitals metric that image optimisation alone will not fix.

7

Batch, then fix the outliers. Drop the whole folder, apply one global setting, then re-run only the few images that look soft. Far faster than tuning each file individually.

8

Never compress a compressed file twice. Keep originals in a separate folder and always export from those. Generation loss is permanent and compounds silently.

What good looks like: a hero image under 200 KB, content images under 100 KB, thumbnails under 20 KB, and a total page weight under 1 MB. Most sites hit all four simply by resizing to display size and switching to WebP — no redesign required.

About Compress Images Online

Compress Images Online is a free, privacy-first bulk image compressor that handles JPEG, PNG, WebP, GIF, SVG, BMP, and ICO files — all processed locally in your browser with zero uploads. Reduce file sizes by up to 90%, convert between formats, resize, strip EXIF metadata, and download everything as a ZIP in one click.

Features

Supports JPEG, PNG, WebP, GIF, SVG, BMP, ICO and AVIF,Real lossy PNG compression via UPNG.js color quantization,Batch processing — unlimited files, sequential compression,Output format selector: JPEG, PNG, WebP, or Original,Resize by max width/height with aspect ratio preservation,Strip EXIF/GPS metadata toggle,Progressive JPEG option for faster perceived loads,Before/After split-view comparison with drag divider,Per-file download or full batch ZIP export,UPNG.js + pako for TinyPNG-class PNG compression

How to Use

Drop your image files onto the drop zone — or click Browse Files to select them. Choose an output format (JPEG, PNG, WebP, or Original) and adjust the Compress Level slider. Optionally set max width/height for resizing. Click Compress All to process every file, then download individual results or click Download ZIP for all compressed images at once.

Examples

Compress a batch of product photos to JPEG for an e-commerce site,Convert PNG screenshots to WebP to cut page weight by 50%,Strip GPS metadata from holiday photos before sharing online,Minify SVG icons by removing whitespace and comments,Bulk resize and compress event photos for social media upload

Benefits

All processing runs in your browser — images never leave your device, making this the safest option for sensitive or watermarked photos. No account required, no file size limits enforced server-side, and no waiting for uploads. The before/after split viewer lets you judge quality before downloading, and the EXIF metadata panel shows exactly what data will be stripped.

Frequently Asked Questions

What image formats can I compress?
This tool supports JPEG, PNG, WebP, GIF, SVG, BMP, ICO, and AVIF. You can drop any mix of these formats at once for batch compression.
How much can I reduce image file sizes?
Results vary by format and content. JPEG and WebP typically achieve 50–90% reduction. PNG uses color quantization for real lossy savings. SVG files are minified by stripping whitespace and comments.
Is it safe to compress my images here?
Yes — all compression happens entirely in your browser using the Canvas API and UPNG.js. Your images are never uploaded to any server, ensuring complete privacy.
What is the difference between JPEG, PNG, WebP, and Original output?
JPEG is best for photos with no transparency. PNG supports transparency and uses color quantization for compression. WebP offers the best size-to-quality ratio — up to 50% smaller than JPEG. Original keeps your source format while still compressing.
Can I compress a batch of images at once?
Yes — drop unlimited files at once or browse to select multiple. Click Compress All to process every image sequentially, then download the whole batch as a ZIP file.
What does the Compress Level slider do?
It controls the trade-off between file size and visual quality. Low values (left) keep near-original quality with modest savings. High values (right) produce the smallest files with some quality loss.
Why does PNG sometimes show 'kept original'?
When the PNG encoder produces a file larger than the original (can happen with complex images), the tool automatically keeps your original to avoid making the file bigger.
Can I resize images while compressing?
Yes — enter Max Width and/or Max Height values in the settings panel. Aspect ratio is always preserved, and the Prevent Upscale toggle ensures smaller images are never enlarged.

More Image Tools

View All