Image compressor

Set the file size you need and Pixelyra finds the highest quality that fits under it. JPG, PNG and WebP, processed entirely in your browser.

Target size
KB

How target-size compression works

JPG and WebP can trade quality for size. Pixelyra encodes your image at high quality first. If that's too big, it runs a binary search between quality 30 and 92, halving the gap each time, and keeps the best result under your limit. If even quality 30 is too big, it reduces the pixel dimensions in proportion to the overshoot and searches again. You can turn resizing off.

PNG is lossless, so quality settings don't apply. Pixelyra first tries the smallest lossless PNG. If that's still over the limit, you choose what to give up: colours (a palette of 256 or fewer, keeping transparency) or the format (JPG or WebP).

Which format should I use?

FormatBest forTransparencyAccepted by upload forms
JPGPhotos, ID picturesNoAlmost always
PNGScreenshots, logos, signaturesYesUsually
WebPWebsites, smallest filesYesSometimes. Check the form first.

What happens to your file

Your image is opened and processed by your own browser. It is not uploaded to Pixelyra or anyone else, and it is gone when you close or reload the page. The site's security policy blocks the page from sending data to other servers.

Questions

What's the largest image I can compress?

Files up to 50 MB and 50 megapixels. Larger images can crash browsers on phones.

Can I compress several images at once?

Not yet. This release handles one image at a time so you can check each result.

Why didn't my image get smaller?

If your file is already under the target, Pixelyra returns it unchanged rather than re-encoding it and risking quality.