Runs in your browser. Your files and text never leave your device - nothing is uploaded.
Compress Images in Your Browser
This free image compressor reduces the file size of JPG, PNG, WebP and GIF images so they upload faster, fit under form limits, and load quicker on websites. You can set the quality yourself with a slider, or type a target size in KB and let the tool find the highest quality that fits.
Everything happens on your device. The image is re-encoded with your browser’s canvas API, the before and after versions are shown side by side, and the compressed copy is saved straight to your computer or phone. Nothing is uploaded, stored, or watermarked.
How to Compress an Image
- 1
Add your image
Click the upload area or drag a JPG, PNG, WebP or GIF onto it. The file opens in your browser and is not uploaded anywhere.
- 2
Choose how to compress
Pick "Quality slider" to set the quality yourself, or "Target file size" to enter a size limit in KB and let the tool find the quality for you.
- 3
Set the quality or the target
Drag the slider between 10% and 100% (80% is the default), or type a target such as 100 or 50 KB.
- 4
Compress and compare
Click Compress Image. The compressed version appears next to the original with its new size and the percentage saved.
- 5
Download the result
Click Download Compressed to save the new file. Your original image is left untouched.
iPhone photos saved as HEIC need converting first; run them through HEIC to JPG and then compress the JPG here.
Quality Slider vs Target File Size
Quality slider gives you direct control. It runs from 10% to 100% in steps of 5 and starts at 80%, which usually cuts a camera JPG substantially with no visible change at screen size. Lower it for smaller files, raise it if you see blockiness or smeared edges.
Target file size is for hard limits. Enter a number of KB and the tool compresses the image repeatedly, halving the range of possible quality levels on each of 8 passes, and keeps the highest-quality version that is at or under your target. You get the best-looking file that fits rather than one that is needlessly small.
The tool counts 1 KB as 1,024 bytes, so a 100 KB target allows up to 102,400 bytes. Some upload portals count 1 KB as 1,000 bytes and would reject that file. If a form is strict, enter a slightly lower target such as 95. The data storage converter shows the difference between the two definitions for any size.
Why Resize Before You Compress
Compression changes how the pixels are stored, not how many there are. A 4,000 × 3,000 phone photo has 12 million pixels. Fitting it into 100 KB (819,200 bits) leaves about 0.07 bits per pixel, which forces the quality so low that the photo turns blocky.
Resize the same photo to 1,200 × 900 first and it has 1.08 million pixels, giving each pixel about 0.76 bits of the same 100 KB, more than ten times the budget. The result looks far better at the same file size. Use the image resizer to bring the width down to what the page or portal actually displays, or the image cropper to cut away background you do not need, and then compress the smaller image here.
For application and ID photos with fixed dimensions, the passport photo maker crops and sizes the photo to the standard first, after which a target of 50 KB or less is usually easy to reach.
Output Formats: JPG and WebP
The format of the compressed file depends on what you upload. JPG photos stay JPG. PNG, WebP and GIF images are saved as WebP, because WebP keeps transparent backgrounds and supports a quality level, while PNG does not. For photographic PNGs the saving is often dramatic. An animated GIF is saved as a single still frame.
If you need a specific format, convert it separately: PNG to WebP for a straight format switch, or the image format converter to turn the compressed WebP back into a JPG or PNG for sites that do not accept WebP.
Because the image is redrawn on a canvas, camera metadata such as EXIF and GPS location is not carried into the compressed file. To inspect what a photo contains, or to strip it without changing the quality, use the EXIF remover.
Common uses
- Meeting exam, job, and government portal limits of 20, 50, or 100 KB for photos
- Emailing photos without hitting attachment size limits
- Speeding up a website or blog by slimming its images
- Shrinking product and listing photos for online marketplaces
- Saving storage space on your phone or in cloud backups
More tools for editing, converting, and preparing pictures are in Image Tools.
Image compression terms explained
| Term | What it means here |
|---|---|
| Lossy compression | Encoding that discards detail the eye is least likely to notice; JPEG and WebP at under 100% quality are lossy |
| Quality setting | How much detail the encoder keeps, from 10% to 100% on the slider; lower means a smaller file and more visible artifacts |
| Target file size | A size ceiling in KB; the tool searches for the highest quality whose output fits under it |
| KB (kilobyte) | In this tool, 1 KB = 1,024 bytes, so a 100 KB target means 102,400 bytes |
| Pixel dimensions | The width and height of the image in pixels; compression does not change them, resizing does |
| Compression artifacts | Blocky patches, smeared edges or halos that appear when quality is set too low |
| WebP | A modern image format that supports transparency and usually produces smaller files than PNG for photos |
Frequently Asked Questions
Load the image, switch "Compress by" to "Target file size", enter 100, and click Compress Image. The tool tests quality levels and keeps the highest one whose output is 100 KB or smaller. The result card shows the final size so you can confirm it fits.
Use the same target-size mode with 20 or 50 as the target. For very small targets, first reduce the pixel dimensions with an image resizer (for example to 600-800 pixels on the long side), then compress. A full-resolution phone photo often cannot reach 20 KB on quality alone without heavy blurring.
No. The image is decoded and re-encoded inside your browser using the canvas API, and the download is created locally. The file never leaves your device, which makes the tool suitable for ID photos and personal documents.
JPG, PNG, WebP and GIF. JPG files are saved as JPG. PNG, WebP and GIF files are saved as WebP, which keeps transparency and is usually far smaller than PNG. An animated GIF comes out as a single still image.
Canvas-based JPEG output cannot store transparency, and PNG itself has no quality setting to lower, so the tool saves PNG input as WebP. WebP keeps transparent areas and can be compressed with a quality level. If a site only accepts JPG or PNG, convert the WebP afterwards with an image format converter.
Yes, lossy compression always discards some detail, but at 70-85% quality the difference is usually hard to see at normal viewing sizes. Artifacts become obvious at low settings. The before and after preview lets you check the result before downloading.
No. The compressed image has exactly the same width and height in pixels as the original. Only the encoding changes. To make the image physically smaller, resize it first and then compress it.
Target mode searches quality levels down to about 5%. If even the lowest quality cannot fit the image under the target, the result stays above it. This happens with large, detailed photos and tiny targets. Reduce the pixel dimensions first, then run the target again.
If the re-encoded file would be the same size or larger than your original, the tool keeps the original instead of giving you a bigger file. This happens with images that are already heavily compressed. Try a lower quality or a smaller target.
For web pages and email, 70-80% is a good balance of size and appearance. Around 60% is acceptable for thumbnails. Keep 85-90% or higher for photos that will be printed or viewed full screen.
Re-encoding through the browser canvas writes a new file with the pixels only, so camera metadata such as EXIF and GPS location is not copied into the compressed image.
There is no signup and no daily limit. The tool compresses one image at a time, and very large images are limited only by the memory available to your browser.
Reviewed by Raja Jahangir · Last reviewed: October 7, 2026
How do you compress an image?
To compress an image, upload the JPG, PNG, or WebP file, choose a quality level, and download the smaller version. Compression removes data the eye is least likely to notice, so a photo can often drop well over half its file size before any visible difference appears.
Can you compress a JPG without losing quality?
Not entirely - JPG uses lossy compression, so every re-save discards some data permanently. At high quality settings the loss is invisible at normal viewing size, which is why most photos compress substantially with no perceptible change. For genuinely lossless results, use PNG or WebP lossless instead.
