How to compress an image without uploading it
Make photos and graphics smaller in your browser: which preset to pick, why resizing often saves more than quality, and what compression cannot fix.
Compression · 3 min read · Updated
The quick way
Compressing an image takes a few seconds, and the file stays on your device the whole time:
- Open Compress Image and drop one or more images on the page, or paste one from the clipboard.
- Pick a preset. Balanced suits most photos, Strong squeezes harder, For a website saves WebP no wider than 1920 px, and For email saves JPG no wider than 1600 px.
- Drag the before and after slider over detailed areas such as faces, hair and text to check the result.
- Download each file, or everything as a ZIP.
Where file size comes from
Three things decide how big an image file is: how many pixels it has, which format stores them, and how hard the encoder is allowed to compress. A 12-megapixel phone photo holds twelve million pixels whatever its format, so shrinking it to the size it will actually be shown at is often the biggest single saving.
Format comes next. At similar visual quality, WebP is typically 25 to 35 percent smaller than JPEG, and AVIF is often around half the size. Screenshots and flat graphics behave differently: they compress best as PNG with a reduced palette, or as lossless WebP.
Resize first, then compress
If a photo will be shown 1200 pixels wide, a 4000-pixel original spends most of its bytes on detail nobody will see. Compress Image can limit the longest side, set a width or scale by percent under More options, and Resize Image gives more control, including fit, fill and pad modes. Downscaling usually saves more than lowering quality, and it hides compression artifacts instead of adding them.
Let the tool choose the settings
If you would rather not pick a quality number, Smart Optimizer encodes your image at several settings and keeps the smallest result whose structural similarity (SSIM) to the original stays above the level you choose. Format Shoot-out does the same across JPG, WebP and AVIF and keeps whichever format comes out smallest.
Both are measurements rather than guesses, but SSIM is still an approximation of human vision. Look at the result before you replace your originals.
Metadata is removed by default
Compress Image strips EXIF data from the output, which also removes GPS location, capture time and camera details. That saves a few kilobytes and protects your privacy. If you need the camera details in a compressed JPG, turn on Keep EXIF metadata under More options.
What compression cannot do
A few limits are worth knowing before you start:
- It cannot make a blurry or noisy photo look better. To an encoder, noise is detail, and detail costs bytes.
- Lossy compression cannot be undone. Keep your originals, because compressing an already compressed JPEG again saves little and adds artifacts.
- If a file cannot be made smaller, Compress Image returns the original unchanged and says so, rather than handing back a bigger file.
- Very large images, over roughly 100 megapixels, can exceed what a browser tab can safely hold, and phones reach their limits sooner.
Tools in this guide
- Compress ImageShrink JPG, PNG, WebP, AVIF and GIF files with MozJPEG, OxiPNG and modern codecs, with a live before/after preview.
- Resize ImageResize to exact pixels, a percentage or a longest side, with Lanczos3 and Magic Kernel resampling. Batch ready.
- Compress to SizeHit a file-size limit for forms and uploads. Searches quality, then dimensions, and can pad up to a minimum.
- Smart OptimizerNewFinds the smallest file that still looks identical to your original, measured with SSIM instead of guessing a quality number.
- Format Shoot-outNewEncodes your image as JPG, WebP and AVIF at the same visual quality and keeps the smallest one.
Related guides
- Lossy vs lossless compression: how to shrink images without visible loss
- How to reduce JPG file size
- How to compress an image to an exact size in KB
- How to compress PNG files (and when PNG is the wrong format)