Skip to content
CrayonPix

Compress Images

Make photos smaller for email, forms and websites. Choose a quality, or type the size you need in KB and let the tool find the best quality that fits.

Loading the tool…

Your images are processed on your device and never uploaded.

How to use Compress Image

  1. 1

    Choose, drop or paste one or more images (JPG, PNG, WebP, AVIF, GIF, BMP, HEIC).

  2. 2

    Pick "Quality" and move the slider, or pick "Target file size" and type a size in KB. Optionally choose the format and a maximum size.

  3. 3

    Check the before and after sizes, then click Download — several images come as one ZIP.

Two ways to compress

Upload forms, email providers and website builders all have size limits, and phone photos often weigh several megabytes. This tool re-encodes your images to make them lighter, in one of two modes:

  • Quality — move the slider from 10% to 100% (75% by default). Lower means a smaller file with more visible compression artifacts.
  • Target file size (KB) — type the size you need, such as 100, 200 or 500 KB. The tool finds the highest quality that fits under that size for each image.

Results appear as soon as the images are read and update whenever you change a setting. Each file shows its size before and after and the percentage saved, and the preview shows the compressed version so you can judge the quality before downloading.

How the target size works

JPG and WebP files get smaller as quality goes down, but not in a predictable way, so the tool tests: it first tries 95% quality, and if the file is too big it runs a binary search between 40% and 95% to find the highest quality that fits. Below 40%, blocky artifacts become obvious, so instead of going lower the tool reduces the pixel dimensions in proportion to how far off the size is and searches again. The final dimensions and quality are shown under the preview. If the target is so small that no reasonable result fits, you get the smallest version found and the row says the target couldn’t be reached.

Output format and resizing

Save as When to pick it
Auto JPG stays JPG and WebP stays WebP. PNG, HEIC, AVIF and others become JPG — or WebP if the image has transparent areas. Where the browser can’t write WebP (Safari), Auto saves JPG and says so.
JPG Opens everywhere: forms, email, Windows and Mac. Transparent areas turn white.
WebP Usually smaller than JPG at the same visual quality and keeps transparency. Best for websites. Needs a browser that can write WebP (Chrome, Edge, Firefox).

Resize (longest side) caps the dimensions at 3840, 2560, 1920, 1280 or 800 pixels before compressing (images are never enlarged). A 4000-pixel phone photo shown on a website rarely needs more than 1920 pixels, and halving the width and height leaves a quarter of the pixels, which usually cuts the file size by more than half. For exact sizes for a given social network, use the Social Media Image Resizer.

Tips for the smallest files

  • For websites, convert to WebP: see JPG to WebP, and why images save as WebP for what the format is good at.
  • Check a photo’s pixel dimensions and weight first with Check Image Size.
  • Re-encoding doesn’t copy EXIF metadata, so camera details and GPS location are removed as a side effect. To strip metadata without recompressing, use Remove EXIF Data.

Private and offline

Compression runs in your browser with the Canvas API; iPhone HEIC photos are decoded with a WebAssembly module when the browser can’t read them itself. Your images are never uploaded, there is no limit set by us on the number of files, and the page keeps working offline once loaded.

Frequently asked questions

How do I compress an image to 100 KB (or 200 KB, 500 KB)?

Set "Compress by" to "Target file size (KB)" and type 100. For each image the tool searches for the highest JPG or WebP quality that stays under 100 KB. If even a low quality is too big, it reduces the pixel dimensions step by step until the file fits.

What quality should I use?

75% (the default) is a good balance for photos — the difference is hard to see on screen and files are much smaller than at 100%. Go to 60% for email attachments, and 85–90% when the photo will be printed or edited again.

Why is my PNG converted to JPG?

PNG is a lossless format, so it can't be compressed by lowering quality. In Auto mode, PNGs without transparency are saved as JPG, which is far smaller for photos. PNGs with transparent areas are saved as WebP instead, so the transparency is kept — except in browsers that can't write WebP, such as Safari, where Auto falls back to JPG and transparent areas turn white. You can also choose JPG or WebP yourself.

Why is the compressed file bigger than the original?

That happens when the original was already strongly compressed — re-saving it at a higher quality adds data. The row is then highlighted in red; lower the quality or use a target size.

Can I compress several images at once?

Yes. Select or drop as many images as you like; each one is compressed with the same settings, its before and after size is listed, and Download saves them all in a single ZIP. Use the Save button on a row to download just one.

Are my photos uploaded to a server?

No. The images are compressed by your browser on your own device. Nothing is uploaded, which also makes it fast for large batches.