Image Compressor
Reduce JPEG, PNG and WebP file sizes while keeping the original pixel dimensions.
How to compress an image
This free image compressor reduces the file size of static JPEG, PNG and WebP images while preserving their original pixel dimensions. Smart compression evaluates safe candidates and keeps the smallest result that passes its visual quality checks; Target size fits the image under a file size you choose, such as 100 KB for an online form.
- Choose a supported image from your device, or up to 20 images at once to compress them one after another with the same settings.
- Review the original dimensions, format and file size.
- Smart compression starts as soon as the image is chosen. To fit a file size limit instead, choose Target size, enter the largest file size you may upload and select Compress image.
- Review the output size, difference, metadata result and quality, plus the new dimensions in Target size mode.
- Download the result when it is smaller and suitable for your use. With several images, download each one from the list or all of them together as one ZIP file.
What smart compression means
The tool does not apply one fixed quality value to every image. Photographs, screenshots, graphics and already optimized files behave differently, so the compressor tests multiple candidates instead of guessing from the filename or format.
Each candidate is decoded again and compared with the source through the tool's quality gate. The smallest candidate that remains within the accepted visual limits is selected. If no smaller candidate passes, the tool retains the original. It never offers a file that is larger than the original.
Compression cannot guarantee a smaller file for every source. A modern camera app, image editor, website optimizer or another compressor may already have removed most unnecessary data. Simple graphics can also be close to the practical minimum for their format.
When the potential saving is negligible or a smaller candidate fails the visual checks, retaining the safer result is more useful than forcing a lower-quality download. The result panel explains the decision and shows the measured size difference.
Compress an image to a specific size in KB
Application forms, job portals and government websites often accept only files below a fixed limit such as 20 KB, 50 KB, 100 KB or 2 MB. In Target size mode, enter that limit or pick one of the common sizes. The compressor searches for the highest JPEG or WebP quality whose file still fits under the limit, and the result is never larger than the size you entered.
When even a low quality is not enough, the tool reduces the width and height step by step, keeping the aspect ratio, until the file fits. It stops at 200 pixels on the longest side; if the image still does not fit, it tells you so instead of offering a file above your limit. PNG images are saved as JPEG in this mode, or as WebP when they contain transparency, and the result panel shows the final size, dimensions and quality.
How JPEG and WebP compression works
JPEG and WebP use lossy encoding, which can reduce file size by simplifying image detail. The compressor automatically searches several quality levels and stops at the smallest candidate that passes its checks. Pixel width and height remain unchanged.
A file that has already been carefully optimized may not become smaller. Re-encoding it at a higher effective quality could increase its size, so the tool compares the candidate with the original before offering the result.
How PNG compression works
PNG is a lossless format, but some PNG images can be made smaller by using a reduced color palette. The compressor tests palette compression when the image is suitable and verifies the visual result before accepting it.
Images that need more colors, contain complex transparency or exceed the safe palette-processing limit use a lossless fallback. This may produce only a small saving because the original PNG could already be efficient. Transparent pixels and the alpha channel are preserved.
Metadata, color and transparency
Image files can contain EXIF camera details, GPS coordinates, XMP data, comments and embedded thumbnails. The compressor reports what happened to removable source metadata in the result panel. Rendering-critical information needed for a safe visual result is handled separately from private descriptive metadata.
PNG and WebP transparency is preserved. The tool does not flatten transparent areas onto a white background, change the pixel dimensions or intentionally crop the image. Unsupported color or HDR conditions are rejected when they cannot be processed safely.
Current file and image limits
The current input limit is 50 MB, 64 megapixels and 30,000 pixels on either side. PNG palette compression is limited to images up to 12 megapixels; other supported PNG files use the lossless path. These conservative limits reduce the risk of browser memory exhaustion, especially on phones and tablets.
Animated PNG and animated WebP files are not supported because compressing only the first frame would silently damage the content. JPEG, PNG and WebP signatures are checked before processing.
Large processing tasks run through the tool's local browser worker so the interface can remain responsive. Closing or refreshing the page removes the current in-memory image and result.
Tips for better results
- Start from the original file; an image that another app or optimizer has already compressed may not become smaller.
- Use the Image Resizer first when the image is larger than you need, because smart compression keeps the pixel dimensions unchanged.
- Check the metadata line in the result panel to see what happened to EXIF, GPS and other removable metadata.
- Download the result before you close or refresh the page, since the image and result are kept only in memory.
Privacy
Your image never leaves your device. Compression happens entirely in your browser, so nothing is uploaded or stored, and you do not need an account.
Frequently asked questions
Is this image compressor free?
Yes. You can compress supported images without an account, subscription or upload.
Will every image become smaller?
No. An already optimized image may not have a smaller candidate that passes the visual quality checks. The result panel explains what happened.
Does compression change the image dimensions?
Smart compression keeps the original pixel width and height. Target size mode reduces them only when the image cannot fit under your size limit at an acceptable quality, and it always keeps the aspect ratio.
How do I compress an image to 100 KB?
Choose Target size, enter 100 or select the 100 KB button, then select Compress image. The download is at most 100 KB (102,400 bytes) and uses the highest quality that fits.
Does the compressor remove metadata?
The result panel reports removable source metadata such as EXIF, GPS, XMP, comments and thumbnails. Rendering-critical information is handled separately.
Is my image uploaded?
No. Candidate generation, quality checks and export happen locally in your browser.
Related tools
- Compress Image to 100 KB: Fit a JPEG, PNG or WebP photo under 100 KB at the highest quality that fits, right in your browser and without uploading it.
- Compress Image to 1 MB: Fit a full-screen photo under 1 MB for email or an upload form while its quality stays high, compressed in your browser without uploading it.
- Compress Image to 200 KB: Bring a photo under 200 KB for a job or visa application while it keeps its full size, compressed in your browser and never uploaded.
- Compress Image to 20 KB: Shrink a signature or a small photo under 20 KB for an application form, and see how far its pixel size has to drop, in your browser with no upload.
- Image Resizer: Resize images by pixels, percentage or longest side.
- Image Converter: Convert JPEG, PNG, WebP and HEIC images directly in your browser.