Compress Image
Reduce the file size of a photo or graphic to fit an upload limit, speed up a web page, or make an email attachment manageable.
You set a target size in megabytes and the encoder works to meet it, rather than making you guess at a quality percentage and check the result over and over. Compression runs in your browser, so the page stays responsive and the image is never uploaded.
Click to upload image or drag and drop
JPG, PNG, WebP, GIF supported
This tool runs entirely in your browser
Compression happens in your browser. The image is decoded, resized and re-encoded locally, and the result is downloaded straight from memory.
Photographs carry more than they appear to. A phone picture typically embeds the camera model, the exact timestamp, and frequently GPS coordinates precise enough to identify a home address. Uploading holiday or family photos to a compression service hands all of that to a third party. Here it stays on your device.
How to use Compress Image
Add your image
JPG, PNG, and WebP files are supported. The original is read into browser memory.
Set your target size
Choose the maximum size in megabytes. The encoder iterates towards it automatically.
Compare and download
Check the compressed result against the original before saving it.
How compressing to a target size actually works
Most compressors expose a quality slider and leave you to discover by trial and error which value produces a file under your limit. That is backwards for the way people actually use these tools, because the limit is the thing you know and the quality value is the thing you do not care about.
Setting a size budget instead lets the encoder do the searching: it compresses, measures the output, adjusts quality, and repeats until the result fits. When even aggressive quality reduction cannot reach the target — which happens with very large dimensions — it also scales the image down, because past a certain point fewer pixels is the only remaining lever.
The practical consequence is that a 5 MB photo asked to fit in 500 KB will come back both more compressed and possibly smaller in dimensions. That is the correct trade, and it is usually invisible for images destined for the web.
Why your photos are so large to begin with
A modern phone produces 12 to 48 megapixel images, often 4 to 12 MB each. That resolution exists for cropping and printing, and it is almost entirely wasted for the uses people actually put photos to.
A photo displayed full-width on a laptop screen needs perhaps 2000 pixels across. On a phone, less. Uploading a 6000-pixel-wide original means every viewer downloads three times the data they can possibly see, which is why image weight dominates page load time on most websites.
For web use, resizing to the largest size it will ever actually display and then compressing typically produces a 90-95% size reduction that nobody can see. The right order matters: resize first, then compress. Compressing a huge image and then resizing it wastes the compression work and gives a worse result.
What compression removes, and when it starts to show
JPEG compression works by discarding detail the human eye is poor at noticing — fine variation in areas of similar colour, and precision in colour information that we perceive less sharply than brightness.
At high quality settings this is genuinely invisible. As quality drops, characteristic artefacts appear: blocky 8x8 squares in smooth areas like skies, faint halos along sharp edges, and muddiness in fine texture such as hair or foliage.
Where the threshold sits depends entirely on the image. A busy photograph of a forest hides compression well because the detail is chaotic. A portrait against a plain background, a screenshot, or a logo with flat colour shows artefacts early, because the eye has smooth reference areas to compare against.
- Compresses well: landscapes, crowds, textured scenes, anything visually busy.
- Compresses poorly: flat colour, gradients, screenshots, logos, text in images.
Never compress the same image twice
JPEG compression is generational. Each save discards information permanently, and re-compressing an already-compressed file discards more — including some of the artefacts from the previous pass, which the encoder faithfully treats as real detail worth preserving.
Do this a few times and the image visibly degrades. Always compress from the highest-quality original you have, rather than compressing a file that has already been through the process. If a result is too aggressive, go back to the original and try again with a larger budget instead of re-compressing the output.
When to use Compress Image
- Getting photos under the size limit on a job application or listing site.
- Preparing images for a website so pages load quickly.
- Shrinking a batch of holiday photos before emailing them.
- Reducing image weight in a document or presentation that has grown unwieldy.
Common problems
- The compressed image looks blocky or muddy.
- The target size was too aggressive for this image's content. Raise the budget, or resize the dimensions down first — fewer pixels at good quality usually beats many pixels at poor quality.
- A PNG barely compressed at all.
- PNG is lossless, so there is far less to discard. If the image is a photograph, converting it to JPG will reduce the size dramatically.
- The image dimensions changed.
- When quality reduction alone cannot reach the target, the encoder also scales the image down. Raise the target size if you need the original dimensions preserved.
- Text in my screenshot became unreadable.
- Lossy compression handles sharp text badly. Keep screenshots as PNG, which is lossless and usually smaller for flat-colour interface images anyway.
Frequently asked questions
- Are my images uploaded?
- No. Compression runs inside your browser. The image never leaves your device, and neither does any GPS or camera metadata it carries.
- How much can I compress without visible loss?
- For most photographs, a 70-80% size reduction is invisible at normal viewing sizes. Flat-colour images, screenshots, and logos show artefacts much earlier.
- Should I resize or compress?
- Both, in that order. Resize to the largest dimensions the image will actually be displayed at, then compress. Resizing first makes the compression far more effective.
- Does compressing remove EXIF data such as GPS location?
- Re-encoding generally drops most embedded metadata, but do not rely on this as a privacy guarantee. If stripping location data is the goal, verify the output with a metadata viewer.
- Can I compress the same image twice to make it smaller?
- You can, but you should not. JPEG loss is cumulative, and each pass degrades the image further. Always start again from the original with a smaller target.
Learn more
Guides and answers that explain how this tool's job actually works.