Image Resizer & Cropper
Resize and crop images in your browser. Pixels or percent, contain/cover/stretch fit, aspect-ratio crop presets, and batch ZIP download.
Runs entirely in your browser — nothing is uploadedDrop files or click to browse
JPEG, PNG, WebP, AVIF, GIF, BMP, SVG · EXIF rotation is applied before the crop, and metadata is stripped on re-encodeAbout the Image Resizer & Cropper
Drop in one image or two hundred and get them back at the size you asked for. Resize by pixels (a width, a height, or both) or by percent, with an aspect lock that derives the second dimension from the first so the two can never round out of ratio. When you set both sides yourself, three fit modes decide what happens to the mismatch: contain fits the whole picture inside the box and pads what is left over, cover fills the box exactly and trims the overflow, stretch distorts to fit. There is an interactive crop with the presets people actually use — 1:1, 4:3, 3:2, 16:9, 9:16, 3:4, 2:3 and the source ratio — draggable by corner or edge, nudgeable with the arrow keys, and backed by exact X/Y/W/H boxes for when a pixel matters. A whole batch comes back as one ZIP, assembled in the browser.
The non-obvious part of resizing is what happens on the way down. drawImage performs a single bilinear step no matter how far it has to shrink, and past roughly a 2× reduction that step stops averaging and starts sampling: entire rows of source pixels never reach the output at all. Thin lines disappear, small text goes ragged, and repeating texture — brickwork, fabric, foliage, the gridlines on a chart — breaks into moiré. High-quality downscale, on by default, halves the picture repeatedly until it is within 2× of the target so every source pixel is folded into the result. It costs a few extra milliseconds per image and it is the single biggest difference between a resize that looks right and one that looks cheap.
The second trap is rotation. A phone photo is almost always stored landscape with an EXIF flag telling the viewer to turn it a quarter turn, which means the bitmap the browser hands back is not the picture you are looking at. Browsers have shipped three different defaults for createImageBitmap's imageOrientation, so rather than guess, this tool probes yours with a purpose-built 3×2 JPEG carrying Orientation=6 and watches what actually happens to it. Your crop rectangle is then mapped back through that rotation before any pixels are sampled — without that step, a crop drawn on the top-left of an upright portrait comes out of the bottom-left of the stored file, and the tool returns the wrong part of the picture with no sign that anything went wrong. It also means "resize to 1200 wide" refers to the upright picture, which is the one you can actually see.
Some things a browser genuinely cannot do, and this page says so rather than pretending. A canvas can only write JPEG, PNG, WebP and AVIF, so Keep original format on a GIF, BMP or SVG is refused with the reason attached instead of quietly producing a PNG under the old extension. canvas.toBlob hands back PNG bytes when it cannot encode what it was asked for, so every encode here checks the blob's type and fails loudly rather than saving a multi-megabyte file named .avif. Animated GIFs and APNGs flatten to a single frame, and you are told before the button is pressed, not after. Enlarging interpolates between pixels that already exist and cannot recover detail that was never captured, so Don't upscale is on by default. Past roughly 16384 px a side a canvas reports the size you requested while drawing nothing at all, so every allocation is proved by writing a pixel into the far corner and reading it back. The file size shown beside the preview is a real encode of that image at the current settings — not a formula — while files you have not previewed yet show an estimated range, labelled as such, because compressed size depends on picture content far more than on any setting.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
What is the difference between contain, cover and stretch?
They only differ when you set both a width and a height whose ratio does not match the picture. Contain scales the whole image to fit inside that box and pads the leftover with transparent, white or black bars — nothing is lost, but the result is not full-bleed. Cover scales up until the box is completely filled and trims the strip that hangs over the edges — full-bleed, but you lose the edges. Stretch squashes the picture into the box regardless of ratio, which distorts faces and turns circles into ovals; the tool tells you by how much before you commit. If you only set one dimension, or if the aspect lock is on, all three do exactly the same thing.
Why does my resized image look shimmery, or lose its thin lines?
That is aliasing from a single-step downscale, and it shows up on anything with fine repeating detail — screenshots, charts, patterned fabric, brickwork, small text. A browser's drawImage does one filtering pass however far it has to shrink, so past about a 2× reduction it starts skipping source pixels rather than averaging them. Leave High-quality downscale on: it steps down in halves so every pixel contributes. If the picture is being enlarged rather than shrunk, softness is unavoidable — there is no detail there to recover, only interpolation between the pixels you already have.
Can I apply one crop to a whole batch of different-sized images?
Yes. The crop is stored as a proportion of the picture rather than as a pixel rectangle, so the same relative region is taken from every file — the middle 60%, the top-left quarter, a centred 16:9 band. That is the only definition that makes sense across a mixed batch, but it does mean a batch of different shapes will produce differently shaped crops unless you also pick an aspect preset. For one exact pixel rectangle, work with a single file and use the X/Y/W/H boxes.
Does resizing strip EXIF, GPS and camera data?
Yes, always. The image is decoded, drawn to a canvas and re-encoded, and a canvas has no way to carry metadata across — so location, camera serial number, lens and timestamp are all gone from the output. The one piece of EXIF that survives is the rotation flag, and only because it is baked into the pixels: the picture comes out the right way up with no flag left to misinterpret.
Why is the output size sometimes a range instead of a number?
Because a number would be a lie. The image you are previewing is encoded for real at your current settings, so its size is measured and exact. Every other file in the batch shows a range worked out from its own bytes-per-pixel and the format and quality you picked, and that is a genuine guess — two photographs at identical dimensions and quality can differ tenfold depending on how much detail they contain. Press Resize and every number becomes measured.
Can it save as GIF, SVG or HEIC?
No, and nothing in any browser can. A canvas exposes exactly four encoders — JPEG, PNG, WebP and AVIF — so those are the only formats offered. Choosing Keep original format on a GIF, BMP or SVG is refused with an explanation rather than silently producing a PNG. SVG and BMP inputs are fine as sources; SVG in particular is rasterised at the exact output resolution rather than scaled up from a small bitmap, so vector artwork comes out sharp at any size.
Is there a limit on file size or how many images I can do at once?
There is no upload cap because there is no upload — the constraint is your device's memory. Images are processed one at a time so memory stays bounded, and hundreds of files work fine. The real ceiling is the canvas itself: browsers stop somewhere around 16384 px a side and 268 megapixels, and an over-size canvas returns blank instead of raising an error, so requests past that are cut down and you are told the new size. Live preview switches off above 40 megapixels in or out, since re-encoding that on every keystroke would freeze the tab.