Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Image tools

Compress image

Choose a photo, move the quality slider and see the file shrink in real time, with the size before and after and the percent saved. Nothing is uploaded.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

JPG, PNG or WebP. You can also drop a file on this box. It stays on your device.

Save as

Lower quality gives a smaller file. 70 to 80 usually looks the same on a photo.

Photos wider than this are scaled down with the same shape. Smaller photos are never enlarged.

Example result
Example: choose a photo to compress yours
Smaller fileChoose a JPG, PNG or WebP photo. The size before and after, and the percent saved, appear here.
  • JPG, quality 75%
  • Saved: shown for your photo
Before
shown for your photo
After
shown for your photo
Pixels
shown for your photo
Camera data
not copied

To hit an exact size such as 100 KB for a form, use resize image to KB.

How to use the Image Compressor

  1. Choose a JPG, PNG or WebP file under Photo. It is compressed at once.
  2. Pick JPG or WebP (smaller) under Save as, then move Quality. Lower quality means a smaller file.
  3. Optional: type a Maximum width in pixels or tap a preset such as 1920. Wider photos are scaled down, smaller ones are left alone.
  4. Check Before, After and the big percent figure, look at the preview, then press Download.

How do I compress an image without losing quality?

JPG and WebP are lossy formats: when a photo is saved, the encoder throws away fine detail that the eye notices least, and the quality setting decides how much. So the honest answer is that you cannot shrink a photo a lot with no loss at all, but you can shrink it a lot with a loss you will not see. The safe range for photographs is usually quality 70 to 85. Below about 50, blocky edges and smeared texture start to show.

The tool re-saves your photo at the quality you choose, in your browser, and shows the result at once. At quality 90 the 1,200 x 800 px test photo went from 359.3 KB to 358.3 KB (about the same size): this particular photo was saved at a very high quality to begin with, so there was little to remove. At quality 75 it became 166.9 KB, which is -54%, or 53.6% saved. Your photo will behave differently: the more fine texture it has, the more a quality drop saves.

Compressing again and again makes it worse, because each save loses a little more detail. Keep your original, compress once from it, and try two or three quality values before you decide.

How much smaller will my image get?

It depends on the photo, the format and the settings, so the page shows the real numbers for your file rather than a promise. The table shows what the tool produced for one test photo. The Saved column is worked out from the two sizes by the same function the page uses.

1,200 x 800 px test photo, original 359.3 KB, saved in Chrome
SettingPixelsFile sizeChangeSaved
JPG, quality 901,200 x 800 px358.3 KB0%0.3%
JPG, quality 751,200 x 800 px166.9 KB-54%53.6%
JPG, quality 501,200 x 800 px91.3 KB-75%74.6%
WebP, quality 751,200 x 800 px215.7 KB-40%40%
WebP, quality 501,200 x 800 px156.9 KB-56%56.3%
JPG, quality 75, max width 800800 x 533 px55.3 KB-85%84.6%

Two things stand out. First, the biggest single saving came from the width: capping the width at 800 pixels, with quality 75, gave 55.3 KB, which is 84.6% saved, because the file holds fewer than half as many pixels. If the picture will only be shown at 800 pixels wide, the extra pixels are wasted bytes. Second, WebP was not smaller than JPG at the same quality number on this noisy photo. The two formats use different quality scales, so compare file sizes and the preview, not the numbers on the slider. Try both on your own photo and keep the smaller one that still looks right.

Which format is smallest: JPG, PNG or WebP?

For photographs, JPG and WebP both work well. Google's own comparison of lossy WebP and JPEG found WebP files 25% to 34% smaller at equal or slightly better similarity scores, so WebP is worth a try. Your result can differ, as the table above shows. Browsers that cannot save WebP from a web page hide the WebP choice here, and the JPG output works everywhere.

PNG is lossless. A PNG of a photo is usually much larger than a JPG of it, and a canvas cannot shrink a PNG much without changing the colors. That is why this tool saves JPG or WebP: a PNG you add is converted. Transparent areas become white in a JPG, because JPG cannot hold transparency. For logos and screenshots with flat color, a PNG can be smaller than a JPG, so check the percent saved before you replace the file.

The photo is decoded and re-saved by your browser, which also drops camera and location data from the copy it saves. If you only want to remove that data and keep the pixels exactly as they are, use remove EXIF data.

Does compressing reduce the resolution, and when should I use a size target?

Quality and resolution are separate. Lowering quality keeps the width and height in pixels and only reduces detail. The Maximum width box is the resolution control: it scales the picture down, keeping its shape, and never enlarges a smaller picture. To set exact pixels or a percent, use resize image.

This page lets you choose the quality and see what size comes out. If a form asks for a file under a fixed size, such as 100 KB, you want the opposite: choose the size and let the tool find the quality. That is a different job, done by resize image to KB. Use this page when you want a lighter picture and want to see the trade-off yourself, and that page when a form sets a hard limit.

Everything runs in your browser, so large photos are never sent anywhere. Very large photos are scaled down to about 16.7 million pixels first, which is more than a typical phone camera makes, and the page says so when it happens. For a 4,000 x 3,000 px photo with a 1920 pixel width limit the output is 1,920 x 1,440 px.

Use it with

Questions

How do I compress an image without losing quality?

Keep the quality between about 70 and 85 for photos. The loss is small enough that it is hard to see, and the file is usually much smaller. Compress once from the original instead of compressing a copy again.

How do I reduce the file size of a JPG or PNG?

Choose the file, set a lower quality and optionally a smaller maximum width. A PNG is saved as JPG or WebP, which are lossy and smaller for photos. The test photo went from 359.3 KB to 166.9 KB at JPG quality 75.

What is the best format for a small image size?

For photos, WebP and JPG are the smallest common choices, and which one wins depends on the picture. Try both here and compare the sizes. PNG is best for flat-color graphics and anything that needs transparency.

Does compressing an image reduce its resolution?

No, not by itself. Quality only removes detail and the width and height stay the same. Resolution changes only if you type a maximum width, and then only for photos wider than that.

How do I get an image under 100 KB?

Use resize image to KB: you type the size and it finds the quality and pixels for you. This page is for choosing the quality yourself.

Is my image uploaded?

No. The photo is decoded and saved again by your browser, and the result is made on your device, so the file never leaves it.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.