Tools / Image Resizer & Cropper

Image Resizer & Cropper.

Resize, crop and re-encode PNG, JPEG and WebP images to exact pixel sizes in your browser.

Runs in your browser
or drop a file here

Leave empty to keep the aspect ratio from the height.

Leave empty to keep the aspect ratio from the width.

Optional crop in original pixels, applied before resizing.

Fills letterbox bars and transparent areas. Empty keeps transparency (PNG/WebP).

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Resized image
Details

About Image Resizer & Cropper

Image Resizer & Cropper changes the pixel dimensions of a photo or graphic without uploading it anywhere. Drop a PNG, JPEG, WebP or GIF file, type a width, a height or both, and download the result. If you give only one side, the other is calculated from the original aspect ratio, so a 4000×3000 photo resized to a width of 1200 becomes 1200×900. When you set both sides, the fit option decides what happens to the shape: cover fills the whole frame and trims the edges (ideal for a 1200×630 social preview), contain fits the whole picture inside the frame and pads the rest with the background colour, and stretch distorts the image to the exact size. The optional crop fields cut a rectangle out of the original, measured in its own pixels, before any resizing happens. Large reductions are done in halving steps, which avoids the jagged, shimmering edges you get when a browser shrinks an image ten times in a single pass. A common mistake is exporting a photo as PNG: the file gets several times bigger than a JPEG or WebP of the same picture, so pick JPEG or WebP for photos and keep PNG for screenshots, logos and anything with transparency. Another is saving a transparent logo as JPEG, which has no alpha channel; the transparent areas are filled with the background colour, white by default. Orientation from the camera's EXIF data is applied before resizing. Everything runs locally with the browser's own canvas, so the original file never leaves your device.

How to Use

  1. Drop an image or choose a file.
  2. Enter the target width and/or height, pick a fit mode and, if needed, a crop rectangle and output format.
  3. Download the resized image and check the details panel for the final size.

Frequently Asked Questions

Will resizing keep the aspect ratio?

Yes, if you fill in only the width or only the height. With both filled in, cover and contain keep the proportions (by cropping or padding) and stretch does not.

Is my image uploaded?

No. The image is decoded and resized by your browser's canvas. The page sends nothing to a server.

Does it keep EXIF metadata?

No. Re-encoding through a canvas drops EXIF, GPS and colour-profile metadata. The camera orientation is applied to the pixels first, so the picture still appears the right way up.

Why is my WebP output a PNG?

Some browsers, notably older Safari versions, cannot encode WebP from a canvas and fall back to PNG. The details panel shows the format you actually got.

Related Tools