Image

Image Resizer

Resize JPEG, PNG or WebP images to exact pixel dimensions — fast, private and right in your browser.

  • Free forever
  • No sign-up
  • Runs in your browser
Share X LinkedIn

No image yet — choose a file to set its new dimensions.

What is an image resizer?

An image resizer is a tool that changes the pixel dimensions of a picture — its width and height — so it fits where you need it. Maybe a photo is 4000 pixels wide and the upload form only accepts 1080, or a logo needs to be exactly 512 × 512 for an app icon, or a banner is too heavy for a web page. Instead of opening a full photo editor, you set the new size here and download the result instantly.

This resizer runs entirely in your browser. The image is drawn onto an HTML canvas at the size you choose and re-encoded locally, so nothing is uploaded and there is no waiting on a server. That makes it fast, private and usable even when you are offline once the page has loaded.

How to use it

  1. Choose an image by clicking the drop zone or dragging a file onto it. JPEG, PNG and WebP are all supported.
  2. The tool reads the original dimensions and pre-fills the width and height fields with them.
  3. Type a new width or height. With lock aspect ratio on, the other value updates automatically so the picture keeps its shape.
  4. Prefer a quick change? Tap one of the percentage buttons (25%, 50%, 75% or 100%) to scale relative to the original.
  5. Pick an output format — JPEG, PNG or WebP — and, for the lossy formats, drag the quality slider to balance sharpness against file size.
  6. Check the live preview and the new pixel size and approximate file size, then hit Download to save it.

The preview and file-size estimate update as you change any setting, so you can dial in exactly the size you want before saving.

Choosing the right dimensions

Different platforms expect different sizes, and matching them up front saves a round trip — for ready-made platform presets, the Social Media Image Resizer has the exact dimensions baked in:

  • Web images look crisp at the width they are displayed. A photo shown at 800 pixels wide does not need to be 4000 — resizing down cuts the file size dramatically and speeds up your page, and you can squeeze it further with the Image Compressor.
  • Social profile pictures and avatars are usually square. Use the width and height fields to make an exact square such as 400 × 400 or 512 × 512.
  • Email and documents often have a maximum attachment size. Scaling to 50% is frequently enough to slip under the limit while staying perfectly readable.
  • Thumbnails can be tiny — 150 to 300 pixels on the long edge is plenty, and the smaller file loads instantly.

Because making an image smaller simply discards pixels, the result stays sharp. Enlarging has no extra detail to draw on, so an upscaled image looks softer than the original. When you can, start from the largest version you have and resize down.

How the resizing works

When you choose a file, the tool loads it into memory and draws it onto an off-screen HTML canvas sized to your target width and height. The browser's built-in high-quality image smoothing samples the original pixels down to the new grid, then the canvas is re-encoded into the format you picked — JPEG, PNG or WebP — and offered to you as a download. All of this runs in JavaScript on your own machine; there is no upload step and no server round trip, which is why the preview updates the instant you change a setting.

A few details are handled for you automatically. When you save a transparent image as JPEG — a format that has no transparency — the canvas is filled with white first, so you never get unexpected black areas. The width and height fields accept whole pixel values, and with the aspect-ratio lock engaged the second value is recalculated every time you edit the first, keeping the proportions exact down to the rounded pixel. The approximate output size shown next to the download button is the real encoded byte count, so you know what you are saving before you save it.

Tips and common mistakes

  • Keep the aspect ratio locked unless you truly want a stretched image. Unlocking and setting mismatched values squashes faces and distorts logos.
  • Resize down, not up. Doubling a small image will not add detail — it only blurs what is there. Find a higher-resolution source instead.
  • Match the format to the content. Photos compress well as JPEG; graphics, screenshots and anything with transparency belong in PNG; WebP is the modern all-rounder.
  • Mind transparency when saving as JPEG. JPEG has no alpha channel, so transparent areas are filled with white. Choose PNG or WebP if you need to keep a transparent background.
  • Use the quality slider. Dropping JPEG or WebP quality to around 80% is usually invisible to the eye but can halve the file size.

Everything happens on your own device, so you can resize as many images as you like — including private or work-sensitive photos — without an account and without anything ever being uploaded.

Frequently asked questions

Comet's got your back

Stuck on something? Every tool has a short guide and FAQ — and Comet can point you to the right spot.

Visit help centre

Related tools

All Image tools →