Resize Images to Exact Dimensions

Change the pixel dimensions of your images — by width, by height, by longest side, or to an exact width × height with crop, padding or stretch. Batch up to five pictures, keep the original format or pick a new one, and download everything individually or as a ZIP. Every resize runs inside your browser, so your photos are never uploaded anywhere.

Drop images here, click to browse, or paste from clipboard (Ctrl+V)

JPEG, PNG or WebP · up to 30 MB per file · up to 5 images at a time · processed locally

What is this image resizer?

This is a browser-based tool for changing the pixel dimensions of a picture — the number of pixels it is wide and tall, as opposed to how many bytes the file weighs. Type a width, a height, or a target size for the longest side, drop in up to five images at once, and each one comes back resized with its proportions handled the way you chose. Four modes cover the everyday cases: fixing a photo to a specific width for a blog post, matching a height for a document layout, normalising a mixed batch to a shared longest side, and forcing an exact width × height pair for platforms that enforce it. A set of one-click presets covers the destinations people ask for most — Full HD and 4K frames, Instagram's square and story canvases, and the X header banner.

Everything happens on your own machine. The decoding, the resampling and the re-encoding all run locally through WebAssembly, the same architecture as every other tool on this site. There is no upload step, no queue on someone else's server, and no account. Close the tab and nothing remains anywhere.

Why resize instead of compress?

Resolution and file size are related, but they are not the same problem, and the tool you need depends on what is actually being rejected. If an upload form complains that your file weighs too much — 2 MB when the limit is 100 KB, for example — that is a byte problem, and the image compressor is the right instrument: it searches for the best quality that fits a size you name. If instead a layout, a template or a platform spec demands specific pixel dimensions — a banner that must be 1500 × 500, an avatar slot that wants 1080 × 1080 — then bytes were never the issue, and resizing is what you need. Resizing does shrink files as a side effect, because fewer pixels generally means fewer bytes, but it does so by removing or adding pixels, not by trading image quality for size. The two tools also compose well: resize to the dimensions your destination actually displays, then compress the result if a byte limit still applies. That order beats doing either alone, and the dedicated target-size pages — like compress to 100 KB — explain that second half in detail.

How to use it in three steps

  1. Add your images. Drag up to five files into the zone, click to browse, or paste from the clipboard with Ctrl+V. Each file's current pixel dimensions appear in the list so you know what you are starting from.
  2. Choose a mode and numbers. Pick one of the four modes and enter the value you need, or click a preset to fill the exact frame for you. In Exact dimensions mode, also decide how the picture should meet the frame: cover crops the overflow from the centre, contain keeps the whole image and pads the gap, stretch distorts to fit.
  3. Resize and download. Press the button and each image is processed in turn. The result cards show the before and after dimensions side by side along with the byte change, download files are named with their new dimensions, and the ZIP button packs the whole batch into one archive.

Which mode should I choose?

Pick By width when one dimension is dictated by a layout — a content column 800 pixels wide, a hero image 1600 pixels wide — and you want the height to follow the original proportions automatically. Pick By height for the mirror case, such as fitting photos into a fixed-height strip. By longest side is the batch normaliser: a folder of mixed portrait and landscape photos all brought to 2000 pixels on their long edge ends up consistent without anyone rotating anything first. It is also the mode to reach for when a form says "no more than 2000 pixels on the longest side".

Exact dimensions is for destinations that enforce both numbers at once. Cover is the default behaviour most people want for photos going into rigid slots — a square avatar from a rectangular portrait keeps the subject and loses the edges. Contain is the honest choice when nothing may be cut off: the full image survives inside the frame and the leftover space is filled, white for JPEG output or transparent for PNG and WebP. Stretch is there for completeness and for deliberate distortions; it changes the picture's proportions, so use it only when you mean it.

Frequently asked questions

Does enlarging an image reduce its quality?

Yes, and this tool tells you so honestly. Resizing software cannot invent detail that the sensor never captured; making a 1000-pixel-wide image into a 3000-pixel-wide one means the encoder interpolates new pixels between existing ones, which produces a result that is softer and less sharp than a genuine 3000-pixel photo. Small enlargements — say 20 to 30% — are usually imperceptible, but large ones will look visibly soft, and the page shows a warning whenever any target exceeds the source. The tool still does what you ask, because sometimes a required dimension matters more than ideal sharpness; it just refuses to pretend the operation is free.

What is the difference between Cover and Contain?

Both only apply in Exact dimensions mode, where the target shape may differ from the original. Cover scales the image until it fills the entire target frame and trims whatever sticks out, centred — you get a full-bleed result with no empty areas, at the cost of the cropped edges. Contain scales the image until it fits entirely inside the frame, leaving bands where the picture does not reach: those bands are filled white when the output is JPEG, because that format has no transparency, and remain transparent when the output is PNG or WebP. Choose cover for photos destined for fixed slots; choose contain when cropping is unacceptable, such as documents, product shots or anything with edges that must survive.

Can I resize several images at once?

Yes — up to five per run, processed one after another with an individual status line for each. The same mode and numbers apply to the whole batch, which is exactly the point: a set of pictures can be brought to a consistent size in one pass. Failures are isolated, so one unreadable file never blocks the other four. When the run finishes you can download each result separately or take the whole set as a single ZIP archive, and for larger batches you simply run the tool again with the next five.

What dimensions do Instagram, X and ID photos need?

The built-in presets encode the common answers: Instagram displays square posts at 1080 × 1080 and story or reel frames at 1080 × 1920, and the X (Twitter) profile header is 1500 × 500. For ID and passport photos, requirements are stated per issuing authority — pixel minimums and aspect ratios differ by country — so check the official specification, crop to it with Exact dimensions mode, and if the portal also enforces a file-size ceiling, finish with the visa photo compressor to hit the byte limit without touching your dimensions again.