Images

Image resizer

Set a width, a height, or a percent. With the lock on, the other side follows so the picture is not stretched.

Choose an image to see its pixel size.

How it works

The page reads the pixel width and height, then draws the picture into a new canvas of the size you asked for. Browsers smooth the pixels, which is the right choice for making a photo smaller and a poor choice for pixel art.

Aspect lock uses the original ratio. A 4000×3000 photo at 800 pixels wide becomes 800×600, because 3000/4000 = 600/800. Percent mode scales both sides. The long edge cannot pass 8,000 pixels, which keeps the tab from running out of memory. Shrink the file further with the image compressor.

Formula

  • Locked height
    height = source height × new width / source width
  • Percent
    new size = source size × percent / 100

Worked examples

A 4:3 photo to 800 pixels wide

4000×3000 locked to a width of 800 becomes 800×600. The ratio 4:3 is unchanged.

Half size

Fifty percent of 2000×1000 is 1000×500. Both sides move together, so percent mode does not need the lock.

Unlocked on purpose

Turn the lock off only when you want a stretch, such as a banner that must be exactly 1200×300.

A 4000×3000 photo, aspect locked
RequestResultRatio
Width 800800 × 6004:3
Height 600800 × 6004:3
50 percent2000 × 15004:3
25 percent1000 × 7504:3

Common questions

Does resizing upload the photo?

No. The new pixels are drawn in your browser. Download saves the result locally.

Why is making a photo larger blurry?

The file does not contain the extra detail. Scaling up spreads the pixels you already have. This tool will do it, up to 8,000 pixels on the long side, but it cannot invent sharpness.

What happens to transparency?

PNG and WebP keep transparent pixels. JPEG cannot, so a transparent PNG saved as JPEG gets a solid background.

Can I change only the file size, not the pixels?

That is compression, not resizing. Use the image compressor when the dimensions are already right and the file is just heavy.