How to compress images online without losing quality
Open the AltFTool Image Compressor, add one or more JPG, PNG or WebP images, lower the quality slider until the before/after preview still looks right, optionally resize, then download each file or a ZIP. Compression runs in your browser, so images are not uploaded.
Updated 5 min read
On this page
Compress an image step by step
The Image Compressor handles single photos and whole batches. It works the same on desktop and mobile.
Open the Image Compressor
Go to /tools/all/image-compressor, or search 'compress image' with Ctrl+K.
Add your images
Drag images onto the page or choose them from your device. You can add several at once.
Set the quality
Move the quality slider down to shrink the file. The new size updates so you can see the saving.
Resize if the image is oversized
Turn on resize to cap the dimensions at the same time. A 4000-pixel camera photo rarely needs to be wider than about 1920 pixels for the web.
Compare before and after
Drag the before/after slider across the preview and look closely at detailed areas such as text, faces and gradients.
Download
Download each image, or download every result together as a ZIP file.
Why file size drops, and what you trade
Two things make an image file large: the number of pixels and how much detail the format keeps for each one. Resizing removes pixels; lowering quality lets the encoder discard detail your eye is unlikely to notice. Doing both usually gives the biggest saving.
JPEG-style compression is lossy, so some quality is always lost. The goal is to stop just before the loss becomes visible. Photos tolerate heavy compression well; screenshots, logos and images with sharp text show artefacts sooner, so keep the quality higher for those.
Your images stay on your device
Compression uses the browser's Canvas API inside your tab. The images are read, re-encoded and handed back to you as downloads without being sent to a server, which makes the tool suitable for personal photos and unpublished work. More on this in privacy and local processing.
Related image jobs
All image tools are collected in the Image & Video category and the AltFLoveImg hub.
- Change format (JPG, PNG, WebP, AVIF, GIF, BMP, ICO) with the Image Converter.
- Set exact dimensions or social media presets with the Image Resizer.
- Trim to an aspect ratio with the Image Cropper.
- Turn iPhone HEIC photos into JPG first with HEIC to JPG.
- Meet strict photo and signature size rules on application forms with the exam photo resizer.
Tools used in this guide
- Image CompressorCompress images instantly and reduce file size efficiently.
- Image ResizerResize images with custom dimensions, social media presets, fit/crop modes, batch processing, and format export.
- Image ConverterBatch convert images between JPG, PNG, WebP, AVIF, BMP, GIF and ICO in your browser, with quality, resize, background fill and ZIP download.
- Image CropperCrop your image according to your needs
- HEIC to JPG ConverterConvert Apple HEIC/HEIF images into standard JPG or PNG files locally in your web browser. Supports batch conversions, custom image quality, and ZIP exports.
- EXIF Data ViewerInspect image metadata including camera, date, and GPS fields.
Frequently asked questions
How do I compress an image to under 100 KB?
Resize the image to the smallest dimensions you need first, then lower the quality slider while watching the file size. Most photos reach 100 KB at around 1200 pixels wide with moderate quality.
Does compressing an image reduce its quality?
Lossy compression always removes some detail, but at sensible settings the difference is hard to see. Use the before/after slider to find the smallest size that still looks right.
Can I compress many images at once?
Yes. Add several images, compress them together and download all results in one ZIP file.
Are my images uploaded to AltFTool?
No. The Image Compressor runs in your browser using the Canvas API, so images never leave your device.
Keep reading
- Browser toolsHow to use AltFTool's free browser tools
- Browser toolsPDF tools guide: merge, split, compress and convert PDFs
- Browser toolsDeveloper tools guide: JSON, Base64, regex, JWT and more
Image & Video toolsAltFLoveImg image hubExam photo and signature resizer