This image resizer and compressor changes the width and height of a photo, converts it to JPG, WebP or PNG, and lets you trade quality for a smaller file. The work is done by your browser’s canvas on your own device, so your images are never uploaded, which makes it safe for private photos and documents.

How to use the image resizer

  1. Choose an image from your device or drag it onto the tool.
  2. Pick a size: enter exact pixels, choose 25, 50 or 75 percent, or use a preset width of 1920, 1280 or 800 pixels.
  3. Keep Keep aspect ratio on so the picture is not stretched.
  4. Select an output format: JPG, WebP or PNG.
  5. For JPG and WebP, move the quality slider. Lower quality means a smaller file.
  6. Check the preview and new file size, then download.

How it works

The browser loads your image, draws it onto an HTML canvas at the new size, and exports the canvas in the format you chose. When the aspect ratio is locked, the missing side is calculated like this:

new height = new width × (original height ÷ original width)

The quality slider applies to lossy formats. JPG and WebP throw away detail the eye is less likely to notice; the lower the setting, the more they discard. PNG is lossless, so the slider does not apply and files stay larger for photos.

Exporting through the canvas also removes most metadata, such as camera details and GPS location, which is often a privacy benefit before you share a photo.

Worked example

A phone photo is 4000 × 3000 pixels. You choose the 1920 preset with the aspect ratio locked:

  • New height = 1920 × (3000 ÷ 4000) = 1920 × 0.75 = 1440 pixels.
  • The image becomes 1920 × 1440, which is 2.76 million pixels instead of 12 million, about 23 percent of the original.

Choosing 50 percent instead would give 2000 × 1500. Since the pixel count falls to a quarter, the file usually shrinks a lot, and saving as WebP at a quality around 75 to 80 typically shrinks it further with little visible change. Exact file sizes depend on the photo’s content.

Best image sizes for web and social

Platforms change their specs from time to time, so treat these as common starting points and check the platform’s current help pages.

Use Suggested size (pixels) Format
Full-width website hero 1920 wide WebP or JPG
Blog post image 1200–1280 wide WebP or JPG
Open Graph / link preview 1200 × 630 JPG or PNG
Instagram square post 1080 × 1080 JPG
Instagram portrait post 1080 × 1350 JPG
Story or vertical video cover 1080 × 1920 JPG
Email newsletter image 600–800 wide JPG or PNG
Logo or screenshot with text Actual display size or 2× for sharp screens PNG or WebP

JPG vs WebP vs PNG

  • JPG works everywhere and is good for photos. It does not support transparency.
  • WebP usually gives smaller files than JPG at similar quality and supports transparency. All current major browsers support it, though some older software and upload forms may not.
  • PNG is lossless and best for logos, icons, screenshots and graphics with sharp edges or transparency. It is a poor choice for large photos.

Avoid making images larger than the original. Enlarging cannot add detail and only makes the file bigger and softer. If you also write captions or alt text, our word counter helps keep them within character limits.

Frequently asked questions

Are my images uploaded to a server?

No. Resizing and compression happen in your browser on your device. The image never leaves your computer or phone.

Will resizing reduce quality?

Making an image smaller keeps it sharp at its new size. Low quality settings in JPG or WebP can add blur or blocky artifacts, so check the preview before downloading.

What quality setting should I use?

For most web photos, a setting around 75 to 85 balances size and appearance. Go higher for images with fine detail or text.

Why is my PNG file bigger than the JPG?

PNG keeps every pixel exactly, which takes more space for photos. Use JPG or WebP for photos and PNG for graphics.

Does it keep transparency?

PNG and WebP keep transparent areas. JPG does not support transparency, so transparent areas are filled with a solid colour.