No upload, 100% local, no account

How-to

Resize an image to exact pixel dimensions

When a portal requires a 400x400 profile picture or a print lab specifies exactly 1200x1800 pixels, guessing won't cut it. Here is how to set exact width and height dimensions in your browser without uploading your files to any remote server.

Step by step

  1. Open the image resizer and add your file. Check its original dimensions in your local image viewer if you need them; the tool does not display a separate original-dimensions readout. Choose exact dimensions to set a bounding width and height. With the ratio lock enabled, the output fits inside that box while preserving the source proportions; it does not automatically crop the image to a new ratio.
  2. Enter the target width and height. For a profile picture, a common requirement is 400x400 or 1000x1000. For a web banner, typical values are 1200x628 for social sharing or 1920x1080 for a full-width header. If you type only one dimension and leave the lock active, the other adjusts to avoid distortion.
    The image resizer with a photo loaded, width and height fields filled with target dimensions
  3. Download the resized image and verify the pixel count in your file manager or image viewer before uploading it anywhere. The resizer processes everything in your browser: your original file never leaves your device, and the resized copy is ready to save the moment the operation completes.
    The resized image ready to download at the specified pixel dimensions

When to lock the ratio and when to override it

Image Resize includes fit modes such as Cover and Contain with color or blurred backgrounds, alongside ready-made social media dimension presets. These options prevent distortion when converting between different aspect ratios entirely on your device.

FeaturePassport / ID (300 DPI)Instagram Square / StoryWeb Hero Banner
Reference600x600 px (US) / 413x531 px (EU)1080x1080 px / 1080x1920 px1920x1080 px / 2560x1440 px
SizeExact 1:1 or 35:45 Ratio1:1 or 9:16 Vertical16:9 Widescreen
File size cap≤ 240 KB (Portal Limit)≤ 8 MB (Meta API)≤ 500 KB (PageSpeed CWV)
ScopeGovernment Visas / PassportsMobile Feed / Reels / TikTokDesktop & Mobile Displays

Keeping quality when you resize down

Downscaling (making an image smaller) almost always looks good. Upscaling (stretching a small image to a larger canvas) introduces softness because the missing pixels have to be invented. If you need to upscale for print, use the highest-quality original you have and accept that the result will look softer than a natively higher-resolution source. The resizer never leaves your device: no upload, no queue, and the result is immediately available to save.

FeatureCenter Crop (Fill)Canvas Pad (Fit / Letterbox)Stretch (Distort)
ReferenceFills Canvas, Trims EdgesMaintains Aspect, Adds WhiteAlters Proportions / Distorts
Best forAvatars & Hero HeadersProduct Catalogs & VisasAvoid (Distorts Faces)
Processing mode@jsquash/resize Lanczos-3 (Crop)@jsquash/resize Lanczos-3 (Pad)@jsquash/resize Lanczos-3 (Stretch)
ResultClean Edge Without Black BarsFull Subject PreservedStretched / Squashed Proportions

Aspect ratios, resampling, and what happens to pixels

Forcing an image into a target size that does not match its original aspect ratio will distort it unless you crop or pad the canvas first. Aspect ratio is the proportional relationship between width and height: a 1920x1080 image has a 16:9 ratio, and resizing it to 500x500 without cropping compresses the horizontal axis by a different factor than the vertical, visibly squashing the content. When resizing pixels, the resampling algorithm determines sharpness: nearest-neighbor copies single pixels (blocky), bilinear averages four neighbors (softer), bicubic samples a 4x4 grid, and Lanczos-3 applies a sinc-based kernel over a wider neighborhood for crisp downscaling. Unlike basic Canvas drawImage passes, this resizer runs Lanczos-3 resampling in WebAssembly (@jsquash/resize) directly in your browser.

The tools used in this guide

Frequently asked questions

Can I resize without losing quality?

Downscaling to a smaller size does not degrade quality in a visible way: you are keeping the best pixels and discarding the surplus. Upscaling is a different story: you are asking the algorithm to invent data that was never there. For web use, resize to the exact display size so the browser never has to scale the image itself, which gives the sharpest result at the lowest file size.

What if the site says my image is the wrong size after I upload it?

The most common cause is that the platform recompresses the upload and applies its own resize, landing on slightly different dimensions. Check what the platform actually needs (its help page usually states the exact pixel count) and set those values before resizing. Some platforms also expect a specific aspect ratio rather than absolute pixels, so check both.

Sources