Compress Image Online
Reduce an image's file size by choosing a format and quality, or type a target such as 20 KB and let the tool find the best quality that fits. You see the actual compressed size and how much you saved before you download. Compression happens in your browser, and your image isn't uploaded to our servers.
Image tool
Drop your image here or browse files.
JPEG, PNG, or WebP · up to 20 MB
Your image is processed in your browser and is not uploaded to our servers.
How to use this tool
Step 1: Choose your image
Drag in a JPEG, PNG, or WebP file, or use Browse Files.

Step 2: Pick a format and quality, or a target size
For JPEG and WebP, lower the quality slider to shrink the file. Or type a target in KB (for example 20 or 100) and the tool fits the image under it. PNG has no quality setting.

Step 3: Check the real result
The compressed size, bytes saved, and percentage are calculated from the actual encoded file, and the preview shows it.

Step 4: Download
If you're happy with the look and the size, download the compressed image.

Why use Compress Image?
Large image files are slow to upload, slow to load, and often rejected by forms with a size limit. Compressing reduces the file size by lowering quality or changing the format.
Because the tool actually encodes your image and reports the real size, you can lower quality only as far as you need to and check the preview before you download.
Benefits
Real numbers
The size and the saving shown come from encoding the image, not from an estimate.
See what you lose
The preview shows the compressed result so you can judge the quality.
Format conversion
Switch between JPEG, PNG, and WebP while compressing.
Private
Your image stays in your browser.
What this tool offers
Target size in KB
Type 20, 50, 100 or any limit and get the best-looking JPEG or WebP under it.
Real file sizes
Sizes come from actually encoding the image, not from estimates.
Savings shown
See the reduction in bytes and percent, or a warning if the new file is larger.
Decoded preview
The preview shows the compressed result, so you can judge the quality loss.
Format conversion
Convert between JPEG, PNG, and WebP while you compress.
How compression affects quality
JPEG and WebP are lossy formats: lowering the quality discards fine detail to save space. At moderate settings the change is hard to see, and at low settings you'll notice blockiness and blurred edges. Check the preview at full size before you download.
PNG is lossless, so it keeps every pixel exactly. That means a PNG won't shrink much when it is simply re-saved, and it can even get larger. This tool doesn't use specialized PNG optimizers. To reduce a PNG a lot, convert it to WebP or JPEG, remembering that JPEG removes transparency.
Which format should I choose?
- Photographs: JPEG or WebP at medium quality usually gives the best size-to-quality balance.
- Graphics, screenshots, and images with sharp text or transparency: PNG, or WebP if you want a smaller file.
- Sharing widely: JPEG and PNG work almost everywhere. WebP is supported by current browsers but not by every older app.
Get smaller files with resizing too
File size depends heavily on pixel count. If an image is much larger than you need, resize it first with the Resize Image tool and then compress it. This often cuts the size far more than lowering quality alone.
Popular searches this tool answers
- compress image to 20kb online free
- reduce image size to 50kb
- compress jpg to 100kb
- reduce photo size in kb for form upload
- make image under 200kb
- compress image without losing quality
Supported formats and limitations
- Upload JPEG, PNG, or WebP files up to 20 MB. File types are checked from the file contents, not just the extension.
- Other formats, such as HEIC, GIF, SVG, TIFF, and RAW files, are not supported. Convert them to JPEG or PNG first.
- Animated images are processed as a single still frame.
- Downloads are re-encoded from the edited pixels, so metadata such as EXIF camera data and location is not included in the saved file.
- Very large images can be slow or refused, depending on your device's memory. The default limit is 30 megapixels.
- Quality settings apply to JPEG and WebP only. PNG is always lossless here.
- A target size is a maximum: the tool finds the highest JPEG/WebP quality at or under it, and may reduce the pixel size slightly if quality alone is not enough. It never pads a file, so a file can come out smaller than the target.
- Results depend on your browser's image encoder, so sizes may differ between browsers.
Processing happens in your browser. Your image isn’t uploaded to our servers. See the Privacy Policy for how the rest of the site works.
Frequently asked questions
How do I compress an image to 20 KB online for free?
Upload the image, type 20 in the Target file size box, and download. The tool lowers the quality first and reduces the pixel size only if it must, and it shows the result.
How do I reduce a photo to under 50 KB or 100 KB for a form?
Enter 50 or 100 as the target (or tap the shortcut) and download the JPEG. Check the form for any pixel size rule as well, because a KB limit and a pixel size are separate.
Can I compress an image without losing quality?
JPEG and WebP compression always removes some detail, but the tool uses the highest quality that fits your target, so the visible loss is as small as it can be. PNG files can't be fitted to a size, so JPEG or WebP is used.
How much smaller will my image get?
It depends on the image, format, and quality, so we don't promise a ratio. The tool encodes your image and shows the real size and saving before you download.
Does compression reduce image quality?
For JPEG and WebP, yes: lower quality removes detail. At moderate settings the loss is often hard to see. Use the preview to judge. PNG stays lossless.
Why did my PNG get bigger?
PNG is lossless, and a browser re-encode doesn't use specialized optimization, so it can be the same size or larger. Try WebP, or JPEG if you don't need transparency.
Can I compress to an exact file size, like 100 KB?
Not directly. Adjust the quality slider and watch the size shown until it fits. Resizing the image first can also help.
Is metadata removed?
Yes. The saved image is re-encoded from pixels, so EXIF data such as camera details and GPS location is not included.
Are my images uploaded?
No. Compression happens in your browser and the image isn't sent to PicInverter's servers.
Which quality setting should I start with?
Try a medium-high setting first and look at the preview. Lower it until you notice blockiness or blurred edges, then go back up a little.
Does it work on a phone?
Yes. The page adapts to small screens. Very large photos may be slower on older phones.