Toolstia / Image compressor

Compress images to a smaller file size

A phone photo can easily be several megabytes, far more than a web page, an email or an upload form needs. This compressor makes images smaller by two means you control: how aggressively they are re-saved, and how large they are in pixels.

Set a quality from 20 to 95, optionally cap the longest side at 3840, 2560, 1920, 1280 or 800 pixels, and choose JPG or WebP as the output. Each result shows its new size next to the original, with a running total of how much you saved across the batch, and the files are named with a -compressed suffix so originals are never overwritten.

It is useful for web designers, bloggers, shop owners and anyone whose email bounces large attachments. The images are recompressed inside your browser tab and are not sent anywhere.

Drop images here, or click to choose

JPG, PNG or WebP. Up to 30 images. Nothing is uploaded.

Compression is lossy: some detail is traded for a smaller file. Keep your originals.

How it works

  1. Drop one or more images.
  2. Move the quality slider and optionally choose a smaller longest side.
  3. Compare the sizes shown and download the results.

How the compression works

Each image is redrawn and saved again as JPG or WebP at the quality you choose. Lower quality means a smaller file and a little less detail. For most photos a quality of 70 to 85 is a good balance.

Reducing the pixel size

The biggest savings usually come from reducing the dimensions. A phone photo at 4000 pixels wide is far larger than a web page needs; 1920 pixels is plenty for most uses.

Already-small files

If a file is already well compressed, saving it again may not make it smaller. The tool tells you when that happens, so you can lower the quality or the size.

Metadata

Because the image is rebuilt from its pixels, camera details and GPS location are not kept in the compressed copy.

Why the pixel cap saves more than the quality slider

File size roughly follows the number of pixels, so shrinking dimensions cuts size faster than lowering quality. A 4000 by 3000 photo has 12,000,000 pixels. Limiting the longest side to 1920 gives 1920 by 1440, or 2,764,800 pixels, about 23 percent of the original. At 1280 it is 1280 by 960, 1,228,800 pixels, about 10 percent. At 800 it is 800 by 600, 480,000 pixels, 4 percent.

By comparison, the 3840 setting on the same photo gives 3840 by 2880, still 92 percent of the pixels. The cap only ever shrinks: an image smaller than the chosen limit keeps its original dimensions and is never enlarged.

Picking the pixel size for the way the image will be used

Match the cap to the largest size at which the image will be displayed. An image shown at 800 pixels wide on a page needs about 1600 pixels for sharpness on high-density screens, and 1920 is a comfortable ceiling for full-width hero images. Attachments for email or messaging rarely benefit from more than 1920 on the long side. Anything bound for print needs far more pixels, so do not compress print originals.

Quality settings in practice

The default of 75 is a sound starting point for web photographs. Moving between 70 and 85 is the sensible range for most pictures: higher keeps more fine detail and costs more bytes, lower saves bytes while risking visible blocks in skies, skin and gradients. Screenshots and text on a flat background show compression noise sooner than photos do, so compare the result with the original at 100 percent zoom before replacing anything.

JPG versus WebP output, and what happens to transparency

JPG is accepted everywhere. WebP is usually smaller at similar quality and suits websites, but some older software, upload forms and print services refuse it. When the output is JPG, transparent areas are filled with white. When the output is WebP, transparency is preserved, which makes WebP the better choice for logos and cutouts on colored pages.

Only JPG and WebP are offered, so a PNG is saved as one of those and loses its lossless nature. If you must keep a PNG exactly, this is not the right tool.

When the result is not smaller

Files that have already been compressed hard, such as images downloaded from social media, can come out about the same size or even larger when saved again, and the tool says so. In that case, lower the quality or cap the dimensions. If you need an exact limit, such as 50 KB for a form, the reduce-image-size tool searches for the best quality that fits under a number you set.

Questions

Are my images uploaded?

No. Compression happens in your browser and nothing is sent to a server.

What happens to PNG files?

They are saved as JPG or WebP, so transparent areas are filled with white in JPG. Use WebP if you need to keep a clean look on websites.

Will the quality drop?

Slightly, at any setting below the top. Keep your originals and check the result before you use it.

How many images can I compress at once?

Up to 30. Each one gets its own download button and the total saving is shown above them.

Will compressing the same image twice make it worse?

Yes. Each save at lossy quality discards some detail. Always compress from the original rather than from a previous compressed copy.

What quality setting should I use for a website?

Between 70 and 80 is a common range for photographs, combined with a pixel cap that matches how large the image is displayed. Check one sample before processing a whole folder.

Does it keep the image orientation?

The picture is redrawn as your browser displays it, so a photo that appears upright in the browser stays upright in the result.

Can it make a file exactly a certain size?

No. The quality slider gives approximate results. Use the reduce image size in KB tool when a form or portal sets a strict limit.

Why is the file name different after download?

The tool adds -compressed to the original name so the new copy is not confused with, or saved over, the original.