Skip to content
◈CompressInKB

Resize image to exact pixel dimensions

Exact pixels, correct aspect handling, no distortion.

Drop files here, or

JPG, PNG, WebP, AVIF, HEIC, GIF, BMP up to 50.00 MB · up to 30 files

Processed on this device — nothing is uploaded

Add a file to begin

How to use resize image

  1. 1Add the image. Its original dimensions are shown next to the file name so you can see what you are starting from.
  2. 2Enter the width and height the portal demands, or switch to percentage if you simply want a smaller copy.
  3. 3Choose what happens when the aspect ratio does not match: crop to fill keeps proportions and trims edges, pad to fit keeps everything and adds borders, stretch forces the box and distorts.
  4. 4Run it and read the result card, which reports the exact output dimensions.
  5. 5Download. If the portal also caps file size, run the result through the compressor.

Why this tool, and why browser-side

Form portals publish pixel boxes — 200 × 230, 275 × 354, 350 × 350 — and a photo that does not match exactly is rejected by a dimension check that never even looks at the picture.

Distortion is the usual failure: stretching a 3:2 camera photo into a square makes faces look wrong. Choosing crop-to-fill or pad-on-white keeps proportions honest.

A resolution cap is also the cheapest way to make a file small: halving both dimensions cuts pixel count to a quarter.

Portals specify pixel boxes, and pixel boxes have a shape. Forcing a 4:3 phone photograph into a 3:4 portrait slot by stretching produces a visibly distorted face, which is the single most common reason an otherwise-correct photograph is flagged for manual review.

Cropping to the required ratio is the fix, and doing it deliberately — deciding what stays in frame — beats letting an algorithm guess. Our cropper shows the region before it is applied.

Resizing is also the honest way to reach a byte limit: halving width and height quarters the pixel count, while squeezing JPEG quality damages the whole image rather than just its dimensions.

This tool exists for images handled in a hurry: no queue, no account, no upload, and a result you can verify on the spot. The explanation below is the same one we would give a colleague who asked how it works.

Photographs from phones carry more metadata than most people realise — capture timestamp, camera model, the orientation tag that decides whether the picture displays upright, and often GPS coordinates precise to a few metres. Because every operation on this site writes a fresh file, that metadata does not survive by default. For a photograph of a marksheet or a bank statement, that is a privacy gain; for an archival photograph, note the date before you process it.

On a phone, memory is the real constraint rather than any size limit. A 12-megapixel photograph is about 36 MB once decoded into pixels, so compiling a batch of twenty and holding every result in memory at once will get a mobile browser killed well before it runs out of storage. Process batches of ten to fifteen on a phone; on a laptop the same job is unremarkable.

Accepted inputs are JPEG, PNG, WebP, AVIF, HEIC, GIF and BMP images up to 50 MB each. SVG, HTML and other script-bearing formats are refused outright rather than sanitised, because a file that can execute code has no business being re-encoded — and an upload field that accepts one is a security hole rather than a feature. Several files can be queued where the workbench supports it. Batch, page and memory limits apply; check every output.

How it works under the hood

Decoding uses the browser's native codecs, then drawing happens on an OffscreenCanvas. Downscaling is done in progressive halving steps rather than one big jump, because a single large downscale with bilinear filtering produces aliasing on fine detail such as text and fabric patterns. Upscaling is deliberately capped, since interpolating new pixels cannot recover detail that was never captured — a 100 px thumbnail enlarged to 275 px will always look soft. Resampling uses progressive halving where the scale factor is large, because repeated 50% reductions avoid the aliasing that a single large downscale produces — thin lines stay lines instead of disappearing or turning into noise. Upscaling is permitted but labelled, since it cannot invent detail. EXIF orientation is applied before resizing so portrait photographs are not resized as landscape, and the output is written with the dimensions you asked for rather than a rounding of them. The browser resamples the decoded pixels to your chosen dimensions. Upscaling creates interpolated pixels rather than recovering original detail; for important text or faces, start from a sufficiently sharp source and inspect the output.

Frequently asked questions

What is the difference between crop-to-fill, pad and stretch?

Crop-to-fill scales the image so it covers the target box and trims the overflow — proportions stay correct, some edges are lost. Pad scales so the whole image fits and fills the remaining space with white — nothing is lost, quiet borders appear. Stretch forces an exact fit and distorts. For exam photos, crop-to-fill is almost always the right answer.

Can I resize up without losing quality?

Not really, and any tool claiming otherwise is guessing pixels. The best you can do is interpolate smoothly, which we do, but the detail is simply not there. Re-shoot at higher resolution when a portal demands a large size.

Should I crop or pad?

Crop when the subject fills the frame and the edges do not matter — it keeps proportions natural and produces the smallest file. Pad when nothing may be cut, such as a form or a certificate: padding adds white or coloured borders to reach the target box.

Why did my image get blurry after resizing?

Upscaling. If the target box is larger than the source, pixels are being invented; no algorithm can recover detail that was never captured. The fix is a higher-resolution original, not a different setting.

Does resizing reduce quality even when shrinking?

Shrinking discards pixels deliberately, but the result is normally sharper-looking than the original because each output pixel is an average of several input pixels. Done with progressive halving, there is no visible loss at normal viewing sizes.

What does DPI mean here?

Nothing, until print. A digital image has pixels; dpi only describes how densely those pixels are placed on paper. A portal that says "300 dpi at 35 mm" is really asking for about 413 pixels of width, which is what you should enter.

Can I resize several images at once?

Yes — drop a batch and each is processed with the same settings, with individual results reported per file. That is usually the fastest way to prepare a folder of photographs for one form.

Does resizing remove EXIF?

Re-encoding writes a new file, so EXIF including GPS data is dropped. Orientation is applied to the pixels first, so the visual result is correct even though the tag is gone.