Image Compressor
Reduce an image’s file size by re-encoding it as JPEG or WebP with a quality setting and an optional maximum width. Shows the size before and after.
Drop your image here
JPG, PNG or WebP — saved as JPEG or WebP
Max 1 file, up to 50.0 MB each
About the Image Compressor
Large photos get rejected by upload forms and slow down web pages. This compressor reduces file size in two ways you control: it re-encodes the image as JPEG or WebP at the quality you choose, and it can scale down images that are wider than a maximum width. Both happen on a canvas in your browser, and the result shows the size and pixel dimensions before and after.
The output is always JPEG or WebP, whatever you upload. JPEG opens everywhere but has no transparency, so transparent parts of a PNG become white. WebP is usually smaller at the same quality setting and keeps transparency; current browsers display it, but some older programs and upload forms don’t accept it. PNG output isn’t offered because the browser’s PNG encoder has no quality setting, so re-saving as PNG would rarely make a file smaller.
Example: an application form wants a photo below a certain size. Start with 80% quality and the width limited to 1920 px, click Compress Image and read the After figure. If it’s still too big, lower the maximum width or the quality and compress again. If the result is larger than the original, which can happen when an image is already well compressed, the tool tells you so and you can simply keep the original.
To set exact pixel dimensions, use Resize Image. For PDF files, use Compress PDF.
How to use the Image Compressor
- 1
Add an image
Drag a JPG, PNG or WebP file onto the drop area or click Browse Files.
- 2
Choose JPEG or WebP
Pick the output format. The note under the buttons explains how each one handles transparency.
- 3
Set quality and width
Use the Quality slider (10–100%, default 80%). Leave “Scale down to max width” ticked to shrink wide images to the chosen width (320–3840 px), or untick it to keep the original dimensions.
- 4
Compress and compare
Click Compress Image and check the Before, After and Saved boxes and the preview. Change a setting and compress again if needed.
- 5
Download
Click Download JPEG or Download WebP. The file is named after the original with “-compressed” added.
What it can do
Two output formats
JPEG for maximum compatibility, WebP for smaller files that keep transparency.
Quality slider
From 10% to 100%. Changing any setting clears the old result, so the figures always match what you will download.
Optional maximum width
Wider images are scaled down proportionally; narrower ones are never enlarged.
Before and after
File size and pixel dimensions of the original and the result, plus the percentage saved.
Honest result
If the new file isn’t smaller than the original, the tool says so instead of presenting it as a saving.
Limitations
- Output is always JPEG or WebP; you cannot compress and keep the PNG format.
- With JPEG output, transparency is replaced by white.
- There is no “target file size” mode; you adjust quality and width and check the result yourself.
- One image at a time. EXIF metadata and color profiles are not kept in the output.
- Some browsers can’t create WebP files. If yours can’t, the tool shows a message and you can use JPEG instead.
Privacy
Compression runs in your browser using the canvas API. Your image is not uploaded to FlexyPdf’s servers or anywhere else.
Frequently asked questions
How do I get a photo under a specific size, such as 100 KB?
There is no automatic target, but you can get there in a few steps: lower the maximum width first (for example to 1280 or 960 px), then reduce the quality, compressing after each change and reading the After value. Reducing the dimensions usually saves more than lowering the quality.
Why did my transparent PNG get a white background?
JPEG cannot store transparency, so the tool fills those areas with white before encoding. Choose WebP if the transparency needs to stay.
Should I choose JPEG or WebP?
Choose WebP for images on a website or app you control: it is usually smaller and supports transparency. Choose JPEG when the file goes to a form, an email or older software, because JPEG is accepted almost everywhere.
Why is the compressed file larger than the original?
If the original was already saved at low quality, or is a small PNG with few colors, re-encoding can add bytes. The tool flags this; keep the original or try a lower quality or smaller width.
Does compressing remove EXIF data?
Yes. The new file is created from the pixels only, so camera details, GPS location and other EXIF metadata are not copied. That is often useful before sharing a photo publicly.
Is there a daily limit?
No. There is no account, no counter and no cap; compress as many images as you like, one after another.
Ratings & Reviews
Rate Image Compressor
Help others by sharing your experience. Your rating is shown without your name.
More Image Tools
View all →PNG to JPG Converter
Convert PNG images to JPG with a quality slider; transparent areas turn white
Resize Image
Change an image’s width and height in pixels, with an aspect-ratio lock
Image to ASCII Art
Turn a picture into text art you can copy or save as .txt or PNG
SVG Optimizer
Make SVG files smaller by removing editor data and rounding path numbers