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.
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.
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.
| Property | JPEG | PNG | WebP | GIF | SVG |
|---|---|---|---|---|---|
| Compression | Lossy | Lossless | Both | Lossless LZW | Text / vector |
| Colors | 16.7M | 16.7M | 16.7M | 256 | Unlimited |
| Transparency | No | 8-bit | 8-bit | 1-bit | Yes |
| Animation | No | APNG | Yes | Yes | Yes (SMIL/CSS) |
| Photo (3MP) | ~0.6–1.2 MB | ~4–6 MB | ~0.4–0.8 MB | ~2 MB | Not suitable |
| Sharp text/edges | Ringing | Perfect | Perfect | Perfect | Perfect |
| Best for | Photos | Screenshots, logos | Almost everything web | Legacy loops | Icons, 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 level | Result on photos | Typical size vs original | Use for |
|---|---|---|---|
| 1–10 | Indistinguishable | 60–85% | Archival, print masters |
| 11–25 | Visually lossless | 25–50% | Client delivery, portfolios |
| 26–45 | Slight softening | 12–25% | Web pages, blogs, catalogs |
| 46–65 | Visible on flat areas | 7–14% | Thumbnails, list previews |
| 66–100 | Obvious artifacts | 2–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.
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.
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.
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.
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.
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.
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.
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.
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.
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
Features
How to Use
Examples
Benefits
Frequently Asked Questions
What image formats can I compress?
How much can I reduce image file sizes?
Is it safe to compress my images here?
What is the difference between JPEG, PNG, WebP, and Original output?
Can I compress a batch of images at once?
What does the Compress Level slider do?
Why does PNG sometimes show 'kept original'?
Can I resize images while compressing?
More Image Tools
View AllCompress GIF Online
Compress GIF images online for free — convert GIF to WebP, JPEG, or PN...
Compress BMP Online
Compress BMP files online for free — convert BMP to JPEG, PNG, or WebP...
Compress PNG Online
Compress PNG images online for free — reduce PNG file size up to 70% u...
Compress Image to 300 KB
Compress any JPG, PNG or WebP image to under 300 KB in your browser. T...
Compress Image to 50 KB
Compress any JPG, PNG or WebP image to under 50 KB in your browser. Th...