Design tool

Image Compressor & Resizer

Choose an image, set its dimensions and quality, then download a separate JPG, PNG or WebP copy.

Runs in your browser. No upload.

JPG, PNG, WebP, HEIC/HEIF, AVIF, BMP, GIF/APNG, SVG and ICO. Animated files export only their first frame. Output up to 40 megapixels.

AVIF and some HEIC files may depend on browser support.

Multi-page TIFF uses only its first page. Some TIFF compression variants may not decode.

Quality applies to JPEG and WebP. PNG is lossless.

The image is processed locally in your browser.

About this tool

Image Compressor & Resizer made simple.

Resize or recompress common JPG/JPEG, PNG, WebP, HEIC/HEIF, AVIF, BMP, GIF/APNG, SVG, ICO and TIFF/TIF images in your browser. TIFF input uses the first page only; some TIFF compression variants may not decode. The original stays unchanged. JPEG and WebP quality settings can reduce file size with some quality loss; PNG keeps pixel data but may become larger, so compare the size before downloading. Transparent pixels become white when saving as JPG. Animated inputs use one frame, SVG is rasterized, metadata is not copied and output is limited to 40 megapixels. Very large inputs depend on your device memory.

Guide

Using Image Compressor & Resizer

The Image Compressor and Resizer makes a smaller copy of a picture. You choose a file, set the new width and height, pick WebP, JPEG or PNG, and set a quality for the first two. The page then shows a preview, the new size in pixels and bytes, and a download link. The work happens in your browser, so the picture is not uploaded. Your original file is never changed. How small the copy gets depends on the picture, so check the numbers before you use it.

How to use it

  1. Press Choose an image and pick a file. The width and height boxes fill in with the real size of the picture.
  2. Change the width or the height. With the proportions button on, the other number follows so the picture is not stretched. Press the button to turn it off.
  3. Pick an output format. WebP is shown first, then JPEG, then PNG.
  4. For WebP and JPEG, move the Quality slider. It goes from 40 to 95 and starts at 80. PNG ignores it.
  5. Press Resize and save image. Look at the preview and at the line that says how many percent smaller or larger the copy is.
  6. Press Download image to save the copy. Use Clear to start again with another picture.

Worked examples

Shrink a wide photo for a web page

You enter
Original pixels
4000 x 3000
New width
1200
Proportions locked
yes
Format
WebP
Quality
80
You get
New height
900
File size change
depends on the photo

The picture is 4:3, so a width of 1200 gives a height of 900 after rounding. The saved file size cannot be known in advance, because it depends on what is in the picture.

Not run through the tool. Treat it as an illustration.

A phone photo in portrait mode

You enter
Original pixels
3024 x 4032
New width
1080
Proportions locked
yes
You get
New height
1440

The shape is 3 wide to 4 tall. Setting the width to 1080 makes the height 1440. The height box changes by itself as you type.

Not run through the tool. Treat it as an illustration.

The size limit

You enter
Try one
8000 x 5000
Try two
8000 x 5001
You get
Try one
accepted, exactly 40 million pixels
Try two
error: Use dimensions from 1 to 8,000 px and no more than 40 megapixels in total.

Each side may be 1 to 8,000 pixels and the area may be at most 40,000,000 pixels. One extra row of pixels in the second try pushes the area to 40,008,000.

Not run through the tool. Treat it as an illustration.

A transparent PNG saved as JPEG

You enter
File
logo.png with a see-through background
Format
JPEG
You get
Background
white
Download name
logo-resized.jpg

JPEG cannot hold transparency. The code paints a white background first, then draws your picture on it. Choose PNG or WebP if you need to keep the see-through parts. This could not be run end to end, so check the result yourself.

Not run through the tool. Treat it as an illustration.

When it helps

  • Make a photo smaller before you attach it to an email or upload it to a form with a size limit.
  • Shrink pictures for a blog, a shop page or a school site so pages open faster.
  • Turn a HEIC photo from an iPhone into a WebP or JPEG copy that more apps can open.
  • Create a smaller copy of a screenshot while keeping the same proportions.
  • Compare WebP, JPEG and PNG for one picture and keep the smallest copy that still looks fine to you.

Limits to keep in mind

  • Each side of the new picture must be a whole number from 1 to 8,000 pixels, and the total must not pass 40 million pixels.
  • Only one picture is handled at a time, and only a single page is read from a TIFF file. Animated files, such as GIF or APNG, keep their first frame only.
  • SVG files are turned into regular pixel pictures. Metadata such as camera details and location is not copied into the new file.
  • HEIC, AVIF and some TIFF files depend on your browser and device. If the page says the picture could not be decoded, try another browser or another file.
  • PNG output does not change pixel values, so it can end up larger than the original. The percent line shows if the new copy is smaller or larger.

Tips

  • Set only the width and leave the proportions button on. That avoids a stretched picture.
  • Try WebP at 80 first, then lower the quality a little at a time until you see a change you do not like.
  • Do not scale a small picture up and expect it to look sharper. A bigger size only stretches the pixels you already have.
  • Keep your original file. The tool saves a new copy named with -resized, but you may want the first one later.
  • Look at the preview at full size before you download, especially text and faces.

Common questions

About Image Compressor & Resizer.

Is my picture uploaded to a server?

No. The page says the image is processed locally in your browser, and the code uses the browser's own picture tools to make the copy. The file stays on your device. The original file is not changed, and the new one is only offered as a download.

Which file types can I open?

The picker accepts JPG, PNG, APNG, WebP, HEIC and HEIF, AVIF, TIFF, BMP, GIF, SVG and ICO files. Some of them, such as HEIC, AVIF and certain TIFF types, depend on your browser. The saved copy is always WebP, JPEG or PNG.

What does the quality slider do?

It tells the browser how much detail to keep when it saves a WebP or JPEG. It runs from 40 to 95 percent. A lower number usually makes a smaller file but can add visible blur or blocks. It has no effect when you choose PNG.

Why is my PNG file bigger than before?

PNG keeps every pixel exactly, so the tool does not shrink it by dropping detail. If you only make the picture fewer pixels wide and tall, the file usually gets smaller. If you do not, the copy can be larger. The result line says by how many percent.

What happens to transparent areas?

With PNG output, see-through areas stay see-through. With JPEG, which cannot be transparent, they turn white. The code fills a white background for any format other than PNG, so WebP output also gets a white background here.

How do I keep the picture from looking stretched?

Leave the proportions button on. It remembers the width to height ratio of the file you chose. When you type a width, the height changes to match, and the other way round. Turn it off only if you want a squashed or stretched shape on purpose.

Why does it say my size is not allowed?

Width and height must each be whole numbers from 1 to 8,000, and the width times the height must not be over 40 million. Decimals are refused. Reduce one number, with the proportions button on, to bring both within range.

Does it keep the date, camera or location data?

No. The tool draws the picture on a new canvas and saves that, so metadata is not copied into the new file. That also means the saved copy will not carry the original camera information. Keep your original if you need that data.

Can I make many pictures at once?

No. You choose one file, make one copy and download it. For a folder of pictures you would repeat the steps for each one. Each download is named with the original name and then -resized.

Can I compress a PNG without losing quality?

This tool exports PNG without changing its pixels, but that does not guarantee a smaller file. For a smaller copy, try WebP or JPG; those formats can lose some image detail.

How do I compress JPG or WebP images?

Choose a file, keep or change its dimensions, lower the quality setting and save the new copy. Compare its size and appearance; the original is not changed.

Can I resize an image without uploading it?

Yes. Image decoding and export run on your device. TIFF/TIF files use their first page; some compression variants may not open. AVIF and HEIC support can depend on the browser.