About this tool
Compress Image reduces the file size of JPG, PNG, WebP, AVIF and GIF images entirely inside your browser. You load a file, pick an output format and a quality level, and the page returns a smaller download ready to save and share. Every step in the pipeline - decoding the source, re-encoding the pixels, stripping optional metadata and measuring the finished result - happens in browser memory on your own device. There is no account, no upload queue and no server round trip, which is exactly why the tool can process a private file as casually as a public one.
The tool answers one practical question: how do you keep a picture looking right while making it weigh less? That need shows up everywhere. A camera phone export at 3-4 MB trips a web form limit. A batch of product photos makes a store catalog load slowly on mobile connections. A client insists attachments stay under 2 MB, or a CMS simply refuses anything above a certain byte count. Because the focus is byte reduction rather than editing, the workflow stays minimal: choose a file, choose a format and quality, compare before and after, download. Your original stays untouched on the device, and the compressed copy is always a brand-new download rather than an overwrite.
Output quality is governed by two decisions, not one. The format choice decides the underlying encoding - JPG and GIF are lossy by nature, PNG is lossless, and WebP and AVIF can run either way. The quality slider then sets how aggressively a lossy encoder discards information: higher values keep more detail and produce larger files, while lower values shrink the file and tolerate visible artifacts. Because the page shows the resulting file size immediately, you can nudge the slider and watch the number move, which turns a subjective tradeoff into an informed one. For most photographic work a setting in the 70-85 band looks nearly identical to the source while cutting file weight dramatically.
For containers with transparency - PNG, WebP, AVIF and some GIF files - the tool preserves the alpha channel as it re-encodes. It also gives you the chance to drop the invisible extras a file often carries: EXIF camera records, GPS coordinates, color profiles and embedded thumbnails add kilobytes the eye never sees. Batch support means several files can be queued at once, each with its own result and download button, so a folder of screenshots or a whole shoot can be trimmed in a single pass rather than one tab at a time.
Because the entire process runs locally, privacy is a structural feature rather than a policy promise: the file is read into memory, processed, and discarded when you close or reload the page. That makes the tool a comfortable choice for unreleased work, client assets and personal photos. Two limits are worth knowing before you start. Files larger than roughly 25 MB may exceed browser decode memory and should be exported to JPG or resized first, and the tool reduces bytes, not dimensions - if a picture also needs to be smaller in pixels, pair it with a resize step.
How to use Compress Image
-
Open the Compress Image tool and drag your files onto the page or click to browse.
-
Select your output format and move the quality slider to control the size-to-clarity tradeoff.
-
Compare the before-and-after file sizes in real time as you adjust settings.
-
Download the compressed image - your original stays untouched on your device.
What this tool does
-
Lossy and lossless compression modes.
-
Quality slider from 1–100.
-
Live file-size comparison before and after.
-
Processes locally — no upload required.
-
Batch compression supported.
Specifications
| Input formats | JPG, PNG, WebP, AVIF, GIF |
|---|---|
| Output format(s) | JPG, PNG, WebP, AVIF or GIF (as chosen) |
| Processing | Local browser (Canvas API) |
| Uploads | None — files stay on your device |
| Max file size | 25 MB per file |
| Original file | Never modified |
| Quality range | 1 - 100 (lossy modes) |
| Batch support | Yes - multiple files at once |
In-depth Guide
What the quality number actually does
Modern lossy encoders - JPEG, VP8-based WebP and AV1-based AVIF - do not delete pixels. They transform image data into a frequency representation and then discard the least noticeable parts of it. The quality value is a directive to that discard step. At high values the encoder keeps almost all frequency detail, so the output stays visually faithful but the file stays large. At low values it aggressively zeroes out high-frequency components, which saves space and, past a point, shows up as blurring, blocking in flat areas and the hazy look of heavily compressed photos.
The perceptual curve is not linear. A photograph compressed at 80 typically weighs 60-80 percent less than a fresh camera export while losing very little that a viewer can actually notice. Moving from 100 down to 90 costs almost nothing visually, but the falloff below 50 accelerates quickly because the encoder starts discarding structure rather than nuance. Gradient-heavy subjects - skies, soft studio backdrops, smooth product lighting - show banding earliest, which is why such images deserve higher settings than busy textures do.
| Quality band | Visible result | Typical file size | Best use |
|---|---|---|---|
| 100-95 | Nearly indistinguishable from the source | 30-60% of original | Masters, archival copies, review previews |
| 90-85 | Excellent, with minor detail loss on close inspection | 20-40% of original | Print and high-fidelity web |
| 80-70 | Very good; most viewers see no change | 10-25% of original | Standard web and email |
| 60-50 | Noticeable softness and early artifacts | 6-12% of original | Thumbnails, low-bandwidth delivery |
| 40 and below | Visible blocking, banding and poor edges | 3-8% of original | Last resort under strict limits |
How each source format responds to compression
Each format reaches its floor differently because each was built around a different tradeoff. JPG compresses photographic texture remarkably well and smooth gradients poorly. PNG, being lossless, will not budge much once its internal structure is clean. WebP and AVIF are modern codecs that squeeze both kinds of content, but their savings still depend on what they are given, and GIF is bound to a fixed 256-color palette budget.
In practice, format selection does most of the work before the quality slider is ever touched. Re-encoding a 6 MB camera JPG as a JPG at 75 typically lands at 500-900 KB. Re-encoding the same photo as WebP at 75 frequently halves that number again. A PNG containing a flat-color logo may already be small, so running it through a lossy encoder saves little because there is little redundancy left to remove.
- JPG input: aim for quality 70-85, and prefer a freshly exported source over an already-compressed file.
- PNG input: keep lossless output for graphics, or switch to WebP when the PNG holds photographic detail.
- WebP input: re-encoding a WebP rarely produces meaningful savings; try AVIF output for a real step down.
- AVIF input: already near the efficiency frontier; prefer resizing over further re-encoding.
- GIF input: converting to WebP or another modern format beats squeezing the palette any further.
Metadata: the bytes the eye never sees
A file from a modern camera can carry several kilobytes of invisible luggage: EXIF tables with settings, dates and GPS, an embedded preview thumbnail, an ICC color profile that describes the intended color space, and XMP or IPTC records with captions, keywords and copyright. None of this affects what the picture looks like when viewed, but all of it counts toward the file size and, for GPS and authorship fields, toward your privacy.
Because compression here rebuilds the file from decoded pixels, metadata is optional rather than required for the output - and for most web and email jobs you will not miss it. The only strong argument for keeping it is archival: once removed, capture settings and location are gone from that copy for good. If you need the record for your own catalogs, keep the untouched original on your device and let the published copy carry none of it.
| Block | What it stores | Typical cost | Safe to strip? |
|---|---|---|---|
| EXIF | Camera, lens, exposure, GPS, timestamp | 2-200 KB | Yes, unless the capture record matters |
| Embedded thumbnail | Small preview image | 10-150 KB | Yes - it duplicates the main image |
| ICC profile | Color space definition | 1-20 KB | Only if color fidelity is not critical |
| XMP / IPTC | Captions, keywords, copyright, workflow | 1-30 KB | Yes, unless the fields are required |
Batch strategies that hold up at scale
Batch processing changes the practical nature of the tool: instead of tuning one file, you set a default and let a whole group share it. That is powerful for repetitive jobs - normalizing a folder of screenshots, preparing a product catalog at a uniform quality, or trimming an archive before upload - but a shared setting applied to varied content produces varied results, which is expected rather than a failure.
Because each file decodes into browser memory separately, the practical ceiling on a batch is set by your device, not by the tool. A few dozen ordinary web-sized images process smoothly; a batch of large camera exports will churn. Working in waves of ten to fifteen files keeps the interface responsive, and saving each download as it completes means nothing is lost if the tab closes unexpectedly.
- Adopt a naming convention up front, such as adding a quality or optimised suffix, so compressed copies never collide with originals.
- Set one format and quality for the whole group when consistency matters more than per-file perfection.
- Spot-check every download at 100 percent zoom, not in the shrunken preview, before the batch leaves your machine.
- Keep the source folder intact and write compressed copies to a separate directory.
Pitfalls that quietly ruin results
The most common mistake is treating the quality slider as a volume knob and cranking it far too low to win a few kilobytes. Pushing a photo below 50 produces artifacts that read as unprofessional, and the size saved is often trivial compared with what a smarter format choice would have delivered. The second most common mistake is compressing a file that has already been compressed once - the tool faithfully re-encodes it, but you inherit the previous generation's artifacts and gain little new space.
Expectation-setting matters too. Compression reduces file weight; it does not alter dimensions, crop the frame or rescue an underexposed photo. A 6000 x 4000 pixel campus photo at 800 KB is still a 24-megapixel image in pixel terms, and if the destination needs an 800-pixel-wide image, resizing first will produce a far smaller outcome than any quality setting can. For the tightest targets, resize, choose a modern format, and only then decide how low a quality value you truly need.
How it works
Lossy compression
Re-encodes the image data and discards information the eye is least likely to notice. The lower the quality value, the more data is thrown away and the smaller the file becomes.
Lossless compression
Optimizes the file structure and removes unnecessary metadata without altering any visible pixels. The result is a smaller file that looks identical to the original.
Metadata stripping
Camera EXIF data, ICC color profiles, and embedded thumbnails can add kilobytes to every file. Stripping these non-visual chunks reduces size even when the pixel data stays the same.
Example result
| Before | After |
|---|---|
| File size: 3.2 MB | File size: 680 KB |
| Dimensions: 4000 x 3000 px | Dimensions: 4000 x 3000 px |
| Format: JPG | Format: JPG |
Actual savings depend on your image content and chosen settings. These numbers illustrate typical results.
Pro tips
Export a master once
Compress from the freshest possible source. Every generation compounds artifacts, so a high-quality fresh export gives the re-encoder far more to work with than a copy that has already been saved and re-saved.
Resize before you compress
For anything destined for the web, set sensible dimensions first. An image displayed at 800 px does not need to remain 6000 px - resizing often produces a bigger drop than any quality setting does.
Use 70-85 for photographic work
Photographic JPGs and WebP files in the 70-85 band read as original to almost every viewer while slashing weight. Reserve values below 60 for thumbnails or strict limits.
Strip metadata for published copies
EXIF, GPS and embedded previews add kilobytes and leak capture information. Keep a full original for your records and let published copies carry nothing extra.
Judge quality at 100 percent zoom
The before-and-after number tells you size, not quality. Zoom into the export and check gradient skies and fine edges before you finalize a batch.
Prefer modern formats for the web
When your audience uses current browsers, WebP or AVIF almost always beat a deeply squeezed JPG at the same perceived quality. Choose the format first, then tune quality.
When to use it
Great for Compress Image
- Speed up page load times by shrinking hero images and blog photos before publishing.
- Reduce attachment sizes when emailing photos from your phone or laptop.
- Fit large camera files under CMS upload limits without resizing the image.
- Batch-compress a folder of screenshots for documentation or knowledge-base articles.
Watch out for
- Do not use this tool to convert between formats - use the dedicated converter tools instead.
- If you need to resize dimensions (not just file size), use the Resize Image tool.
- Avoid pushing the quality slider below 30 for photographic content - artifacts become distracting.
Privacy
Edits never overwrite your original file. Every result is a new download, so you always keep the source image. Read the privacy policy.
Troubleshooting
The quality slider is set too low. Raise it to 70-80 for a good balance of size and clarity.
PNG is a lossless format. Removing metadata helps a little, but real size gains on PNGs come from converting to WebP or lowering color depth through quantization.
The tool supports files up to approximately 25 MB. Large RAW files should be exported to JPG or TIFF first.
Frequently asked questions
Only when you choose a lossy format or lower quality value. You control quality with the slider, and the result is shown immediately.
JPG, PNG, WebP, AVIF and GIF are supported in browsers that can decode them.
No. Compression runs entirely in your browser.
Yes — drop several files and each is processed with per-file results.
Your original file is never modified. The tool creates a new compressed copy - your source image stays exactly as it was.
AVIF and WebP use more advanced compression algorithms (derived from AV1 and VP9 video codecs) that pack pixel data more efficiently than the older JPEG standard.
No. Processing happens entirely in your browser so there is no server-side quota or rate limit.
Yes. The file is decoded and re-encoded inside the browser tab using the canvas pipeline. Nothing is transmitted, and closing or reloading the page clears the data from memory.
Not for lossy formats. At 100 the encoder preserves almost all detail but still re-quantizes the data, so the output is technically a new generation. PNG and lossless WebP preserve pixels exactly, which is a different path entirely.
High-entropy content such as grass, foliage, fur or film grain resists lossy compression because there is little redundant detail to discard. Reducing dimensions has a much larger effect than reducing quality for such images.
Very large files can exceed the browser memory budget and fail to decode. Export the source to JPG or resize it first, then compress the smaller working file.
Yes, in small steps. Each re-encode re-quantizes the pixels, so repeated cycles add permanent artifacts. Always keep the untouched original and compress from it in a single pass.
Each browser ships its own encoder implementation, so the identical source and slider can yield slightly different byte counts. Sizes are accurate per browser rather than universally canonical.
Tool last updated: September 2026. Browse all image tools.