Image Resizer

  • Free, no sign-up
  • Runs in your browser
  • Updated
Quick answer. The Image Resizer changes the width and height of a photo in pixels or by percentage, with optional aspect-ratio lock and presets for social media and passport photos. It runs in your browser.

Image Resizer tool

JPG, PNG, WebP and more

When the shape changes
Format

Output: 0 × 0 px

Your resized image will appear here.

Runs in your browser. Your data never leaves your device.

How to use the Image Resizer

  1. 1Choose an image from your device.
  2. 2Pick a preset, or enter a width and height in pixels or a percentage.
  3. 3Keep aspect lock on to avoid stretching, or choose crop to fill an exact size.
  4. 4Pick the output format and download the resized image.

What is an image resizer?

An image resizer changes the width and height of a picture, measured in pixels. This image resizer works in your browser: choose a photo, type a new size or percentage (or pick a preset for social media or passport photos), and download the result as JPG, PNG or WebP. Nothing is uploaded.

Resizing is different from compressing. Resizing changes how many pixels the image has. Compressing changes how efficiently those pixels are stored. Doing both gives the smallest files.

How does resizing work?

The tool draws your image onto an HTML canvas at the new size. The browser's scaler then works out each new pixel from the original pixels around it. When you shrink an image, many old pixels are blended into one new pixel, which keeps it sharp. When you enlarge it, the browser has to invent in-between pixels, so the result looks softer.

There are three ways to set the size:

  • Pixels with aspect lock on: type a width and the height is calculated as new height = new width × original height ÷ original width, so nothing is stretched.
  • Pixels with aspect lock off: both numbers are used exactly, which can stretch or squash the picture.
  • Percentage: both sides are multiplied by the same factor. 50% of a 4000 × 3000 photo is 2000 × 1500.

When a preset has a different shape from your photo (for example a wide photo going into a square Instagram post), Crop to fill scales the image until it covers the whole frame, then trims the edges equally from both sides.

Worked example: passport-size photo

Pakistan's passport and NADRA photos are 35 × 45 mm (45 mm high by 35 mm wide), according to the DGIP photograph requirements and NADRA's photo guidelines. Printers usually work at 300 dots per inch (DPI), and one inch is 25.4 mm, so:

  • Width: 35 ÷ 25.4 × 300 = 413 pixels
  • Height: 45 ÷ 25.4 × 300 = 531 pixels

For a printed photo, choose the passport preset, which fills in 413 × 531 and switches to crop mode. For DGIP's online passport application, which asks for a 350 × 467 pixel JPEG, choose the DGIP online preset instead. Your portrait is trimmed to that shape, centred on the middle of the picture. If the face is not centred, crop the photo roughly first in your phone's editor.

Rules on background colour, head size and glasses can change. Always check the latest photo instructions from the Directorate General of Immigration and Passports or NADRA before printing or uploading. This tool only handles the pixel size.

Common sizes

UseSize in pixelsShape
Instagram square post1080 × 10801:1
Instagram portrait post1080 × 13504:5
Instagram or WhatsApp story1080 × 19209:16
Facebook link preview image1200 × 630about 1.91:1
YouTube thumbnail1280 × 72016:9
WhatsApp profile picture640 × 640 (shown in a circle)1:1
Passport photo 35 × 45 mm at 300 DPI413 × 5317:9
DGIP online passport upload (source)350 × 467about 3:4

Social platforms change their recommended sizes from time to time, so treat these as good starting points and check the platform's help pages for important campaigns.

Tips

  1. Always start from the largest original you have. Shrinking a big image gives better quality than enlarging a small one.
  2. Keep aspect lock on unless you want a deliberate stretch.
  3. Pick JPG for photos and PNG for graphics with text or transparent areas.
  4. After resizing, use the Image Compressor if the file is still over a size limit.
  5. For YouTube, preview the result in the YouTube Thumbnail Checker.
  6. Putting several resized photos into one document? Use Images to PDF.

Limitations

  • Enlarging cannot add detail. A 300-pixel image blown up to 1200 pixels will look blurry. AI upscalers can guess detail, but this tool does not.
  • Crop is always centred. There is no manual crop box, so off-centre subjects may be cut. Pre-crop in a photo editor if needed.
  • DPI is not written into the file. Print shops use the pixel size; the 300 DPI figure is only used to work out the preset.
  • Metadata is removed, including the photo's orientation tag. Browsers apply the rotation when drawing, so the output looks correct.

Key terms

  • Pixel: one tiny dot of colour in a digital image.
  • Aspect ratio: width divided by height, such as 16:9.
  • DPI: dots per inch, how many pixels are printed in one inch of paper.
  • Crop: cutting off parts of the image to change its shape.

Frequently asked questions

What does aspect lock do?

It keeps the ratio between width and height the same, so the picture is not stretched or squashed. When you type a width, the height is worked out for you.

What size is a Pakistani passport photo?

DGIP and NADRA specify 35 × 45 mm on a plain white background, which is 413 × 531 pixels at 300 DPI. DGIP’s online passport application asks for a 350 × 467 pixel JPEG. Rules can change, so check the latest DGIP or NADRA instructions before printing or uploading.

Will making an image bigger improve quality?

No. Enlarging cannot add detail that was not captured. The image will look softer. Resize down whenever possible.

What is the difference between fit and crop?

Fit stretches nothing and keeps the whole picture, using your width and height exactly only when aspect lock is off. Crop fills the exact size and trims the edges that do not fit.

Is my image uploaded?

No. Resizing uses the canvas in your browser.

Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.