
In brief
Compress JPEG, PNG and WebP photos without visible quality loss: format choice, quality settings, resizing, common mistakes and page-speed impact.
Image compression is a trade: you give up a little data to get a much smaller file that loads faster and costs less to store. The skill is knowing which data you can safely give up. This guide explains how to compress images and photos without visible quality loss, how format and quality interact, and the settings that actually matter.
Compression runs locally in your browser, so original photos never leave your device and there is no upload or download wait.
01Lossy, lossless and why re-encoding shrinks a file
Lossless compression stores the same pixels in fewer bytes by removing redundancy — PNG's DEFLATE step (W3C PNG Specification) and WebP's lossless mode work this way. The image is identical after decoding, and the saving comes from how the data is written, not from what it contains.
Lossy compression accepts a small, controlled loss the eye is unlikely to notice. JPEG discards high-frequency detail and stores colour at lower resolution than brightness; WebP and AVIF do similar work with newer models (MDN image format guide). That is how a 4 MB phone photo becomes a sub-megabyte JPEG that looks the same on screen.
Re-encoding also drops metadata. EXIF fields such as GPS coordinates, camera model and capture time (ExifTool tag list) can be a meaningful share of a small file — and a privacy leak — so a compressor that strips them is doing you two favours at once.
02Compress a batch of images
- Add your images — Drop files onto the upload area or click to browse. JPEG, PNG, WebP and other common formats are accepted, and batch upload is supported.
- Pick a preset or go custom — Web Optimized, Balanced, Small File and High Quality set quality and format together. Custom unlocks the individual controls, so pick the closest preset and then adjust.
- Set the output format — Keep Original Format preserves JPEG, PNG or WebP. Choosing JPEG, PNG, WebP or AVIF converts instead — useful when a photograph was exported as PNG.
- Adjust the quality slider — Quality maps to the encoder's rate-distortion setting. 70–80 is the usual web sweet spot; below about 60 you start to see blocking in gradients and ringing around edges.
- Resize only if the image is larger than it needs to be — A 4000 px photo displayed at 800 px spends bytes on detail nobody sees. Constrain the long edge to the largest size the layout uses.
- Preview and download — Each file shows its original size, new size and saved percentage. Download files individually, or use Download All for the batch.
03Which format for which image
| Format | Best for | Transparency | Typical saving |
|---|---|---|---|
| JPEG | Photographs, complex colour | No | Reference point for lossy photos |
| PNG | Screenshots, logos, line art, exact pixels | Yes | Reference point for lossless |
| WebP | Almost everything on the web | Yes | 25–34% below JPEG at equal SSIM; 23–42% below an optimised PNG |
| AVIF | Next-gen web images, biggest savings | Yes | Much better than JPEG or PNG, but ship a fallback |
| GIF | Short animations only | 1-bit | Poor — prefer WebP or video |
The WebP figures come from Google's own encoder studies: 25–34% smaller than JPEG at the same SSIM index, and 23–42% smaller than size-optimised PNG (lossless study). MDN describes AVIF as offering "much better compression than PNG or JPEG", with the caveat that you should serve a fallback for browsers that lack support (caniuse).
For one-off conversions the dedicated pages handle a single file at a time: JPG to WebP and PNG to WebP move images to the modern format, WebP to JPG goes the other way when a destination rejects WebP, and JPG to PNG or PNG to JPG cover the lossless-editing and photograph cases.
04What the quality slider actually changes
Quality is not a percentage of the original file size; it is a target for the encoder's trade-off between size and fidelity. Raising it from 80 to 100 can double the file size for a difference most people cannot see, while dropping from 80 to 60 can halve it with only minor artefacts.
Compress each image once from the original, not from a previously compressed version. Repeated JPEG encoding is generational loss: artefacts from the first pass are amplified by the second. If you need a different size or format later, start from the source file.
05Before and after
Photo for a web page
Input
beach.jpg — 3.8 MB, 4032×3024, JPEG
Output
beach-1600.jpg — ~0.4 MB, 1600×1200, JPEG, quality 78
Resizing does most of the work; quality 78 keeps sky gradients and skin tones clean.
UI screenshot that must stay crisp
Input
dashboard.png — 1.4 MB, 2560×1440
Output
dashboard.webp — ~0.4 MB, 2560×1440
Keep PNG or lossless WebP when exact pixels matter; lossy JPEG smears text edges.
Logo with transparency
Input
logo.png — 240 KB, 800×800, transparent background
Output
logo.png — ~96 KB, 800×800 (lossless, transparency preserved)
Never convert a transparent logo to JPEG — the transparent area becomes black or white.
Do not re-encode the same file twice
Every lossy save throws away more data. Keep the original and export each derivative from it, instead of compressing an already compressed photo.
06Common compression mistakes
| Mistake | What happens | Do instead |
|---|---|---|
| Compressing the same JPEG repeatedly | Generational loss; quality drops on every pass | Keep the original and re-export from it |
| Saving a screenshot as JPEG | Text edges smear and colours bleed | Use PNG or lossless WebP for UI and line art |
| Quality below 60 for photos | Blocking in gradients, ringing around edges | Stay at 70–80 and resize instead |
| Converting a transparent PNG to JPEG | Transparency turns black or white | Keep PNG or use WebP / AVIF |
| Upscaling a small image | Larger file, no extra detail | Only ever downscale |
| Ignoring EXIF | You may ship GPS coordinates with the photo | Strip metadata unless you need it |
07Compression and page speed
On most sites the Largest Contentful Paint element is a hero image, and file size is the biggest lever on how fast it appears. Two practices cover most of the gain: serve the smallest format the browser supports (WebP or AVIF with a JPEG fallback), and size the image to the layout instead of letting CSS shrink a huge file.
If the image is above the fold, set width and height attributes and load it eagerly; lazy-load everything below. Compression and correct sizing together beat either one alone.
08Sources
- MDN — Image file type and format guide (accessed 2026-10-09)
- Google — WebP compression study (WebP 25–34% smaller than JPEG at equal SSIM) (accessed 2026-10-09)
- Google — WebP lossless and alpha study (23–42% below optimised PNG) (accessed 2026-10-09)
- W3C — PNG Specification (Third Edition) (accessed 2026-10-09)
- web.dev — Largest Contentful Paint (accessed 2026-10-09)
- caniuse — AVIF image format support (accessed 2026-10-09)
- ExifTool — EXIF tag list (accessed 2026-10-09)
Batch-compress JPEG, PNG and WebP in the browser, with per-file before/after sizes.
Image CompressorFrequently asked questions
Does compressing an image reduce its quality?
With a lossy format such as JPEG, WebP or AVIF, slightly — usually invisibly at normal viewing sizes. Lossless PNG and WebP compression keep the pixel data identical.
Are my images uploaded?
No. Encoding happens in your browser, so the tool never receives your files and there is no upload or download wait.
What quality setting should I use?
70–80 for most web photos, 80–90 for large images viewed full-screen, and below 60 only for thumbnails. Prefer resizing over aggressive quality reduction.
Why did my PNG get bigger?
PNG is lossless and optimised for flat graphics; for photographs it is a poor fit. Convert photos to WebP or AVIF instead.
Does the compressor keep EXIF data?
Stripping metadata is the safer default for anything you publish. Keep the original file if you need capture time or GPS.
Can I compress many images at once?
Yes. Batch upload is supported and the queue is processed serially, with a result per file.
Is there a file size limit?
Only what the browser can hold in memory. Very large images and long batches are bound by device RAM rather than a server cap.
Related articles
- Create a QR code that scans every time
Sizing, contrast and error correction for print.
- Format, validate and minify JSON
The same debugging loop, applied to payloads.
Related tools
- Image Compressor
Compress and convert in the browser.
- JPG to WebP
Modern format with a big size drop.
- PNG to WebP
Keep transparency, cut file size.
- WebP to JPG
Maximum compatibility.
- PNG to JPG
For photographs saved as PNG.
- JPG to PNG
Lossless output for editing.