Compress an image
Get one photo under an upload limit or an email cap, and see exactly how many bytes you saved before you download it.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
Downloads a small public example. Your own files are not used.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To compress an image without uploading it, open it here, pick WebP, AVIF or JPEG and lower the quality slider until the size fits. The re-encode runs on your device in the browser tab, so the photo is never sent anywhere. The default, WebP at quality 82, usually cuts a phone JPEG down sharply with no visible change.
A worked example
See a real input and result
This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.
- Input count
- 1
- Output count
- 1
- Before
- 33 KB
- After
- 21 KB
- Change
- 37% smaller
- Dimensions
- 1200 × 900
- Input 1 dimensions
- 1200 × 900 px
- Output 1 dimensions
- 1200 × 900 px
- Input bytes
- 33481
- Downloadable output bytes
- 21038
Settings used: format: jpg · quality: 40 · maxEdge: 0
This synthetic sample only; results depend on the input.
Ran through this tool on . Use “Try sample files” above to run it yourself.
How to compress a photo without losing visible quality
- STEP 1
Open your image
Drop a photo onto the page or choose it. JPEG, PNG, WebP, AVIF, HEIC and TIFF all decode.
- STEP 2
Choose an output format
WebP is the default and a safe choice. AVIF is smaller again; JPEG opens in the oldest software; PNG is lossless and rarely smaller.
- STEP 3
Set the quality and size
Drag Quality (20 to 100, default 82). Set Longest edge in pixels to shrink the dimensions too, or leave it at 0 to keep them.
- STEP 4
Check the numbers and save
The report shows before, after and the percentage saved. Download the result; the original on your disk is not touched.
Why a photo is bigger than it needs to be
A phone or camera saves photos with generous quality settings and full sensor resolution, because it cannot know where the picture is going. For a web page, a form upload or a message, most of those bytes are detail nobody will see at the size the image is shown.
Compression trades invisible detail for size. A lossy encoder such as JPEG, WebP or AVIF throws away the fine variation the eye is least sensitive to, and the quality number controls how much. Newer formats are more efficient: WebP and AVIF generally reach the same perceived quality as JPEG in fewer bytes.
The other lever is resolution. A 4000-pixel-wide photo shown 1200 pixels wide is carrying more than ten times the pixels it needs, so capping the longest edge often saves more than any quality setting.
What survives, and what does not
The image is decoded to raw pixels in your browser, optionally scaled down to the longest edge you set, then handed to the browser’s own encoder at the quality you chose. The sizes in the report are measured on the file that was actually produced. If your browser cannot encode the format you picked (AVIF support for encoding varies), the tool falls back to WebP or JPEG and tells you which.
What you keep
Full pixel dimensions, unless you set a longest edge
The picture itself, re-encoded at the quality you choose
Transparency, if you pick WebP, AVIF or PNG
What you lose
EXIF, GPS and camera metadata, which re-encoding drops
Transparent areas when you choose JPEG; they are filled with white
Some fine detail at low quality settings, as with any lossy format
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Compress an image at a glance
| Input | JPEG, PNG, WebP, AVIF, GIF, BMP, HEIC, TIFF |
|---|---|
| Output | WebP, AVIF, JPEG or PNG |
| Quality range | 20 to 100 (default 82) |
| Runs on | Your device, in the browser |
| Works offline | After the first visit |
| Engine | Browser canvas encoder |
If something goes wrong
The compressed file is larger than the original
You probably chose PNG, which is lossless and ignores the quality slider, or the source was already heavily compressed. Switch to WebP or JPEG and lower the quality a little.
I picked AVIF but got a WebP
Not every browser can encode AVIF from a canvas. The tool falls back and says so in a notice. Try a current Chrome or Firefox, or stay with WebP.
The site I am uploading to rejects WebP
Some older forms only accept JPEG. Choose JPEG as the output format; quality 75 to 82 still gives a big saving on most phone photos.
Compress an image questions
How do I reduce an image file size without losing quality?
Lower the quality to around 75 to 85 and switch to WebP or AVIF. At those settings the loss is real but very hard to see at normal viewing sizes. If you still need it smaller, cap the longest edge, since most photos have far more pixels than the screen shows.
How do I compress a photo to under 1 MB or 200 KB?
There is no target-size box, so work towards it: set Longest edge to 1600 or 2048 pixels, then lower Quality until the After figure in the report is under your limit. Because the preview is live on files up to about 12 MB, each change shows the new size straight away.
Is my image uploaded when I compress it here?
No. The decode and re-encode both happen in your browser tab, and there is no upload endpoint behind this page. You can confirm it in the Network panel of your browser’s developer tools while you compress.
Should I use WebP or AVIF?
AVIF is usually the smallest, but encoding support varies by browser and some desktop apps still cannot open it. WebP opens almost everywhere today. If the file is going to a website, either works; if it is being emailed to someone, WebP or JPEG is safer.
Does compressing remove the location data from my photo?
Yes. The encoder only receives pixels, so EXIF tags such as GPS coordinates, camera model and capture time are not written to the new file. If you need to keep them, keep the original.
Can I compress an image on iPhone or Android?
Yes. The page works in Safari and Chrome on phones, and HEIC photos from an iPhone decode here too. Large photos take a little longer on a phone because the work uses the phone’s own processor.
I have a whole folder of photos. Should I use this page?
This page is tuned for getting one image just right. For dozens or hundreds of files at once, the bulk compressor applies the same settings to every image and gives you a single ZIP.