Skip to content
ToolShelf

Image resizer

Resize an image to exact pixel dimensions with the aspect ratio locked or free, see the result before you save it, and do all of it without the file leaving your browser.

Your image

Your image stays in this tab. The work is done by JavaScript in your browser. None of it is uploaded, logged or saved, and the tool keeps working with the network off.

New dimensions

In pixels

In pixels

Aspect ratio

Resized

—

Choose an image to start.

Nothing is uploaded

The image is decoded, redrawn at the size you ask for, and handed back as a download, all by JavaScript running in your own tab. There is no upload step, because there is no code on this page that sends anything anywhere. Load it, turn off your network, and resize something: it behaves identically.

Why the ratio is locked to start with

With both fields free it is very easy to type a width, type a height, and end up with a picture that is subtly squashed. So editing one field moves the other, which keeps the proportions exactly. Unlocking is a deliberate act, and the panel warns when the numbers you have entered would change the shape.

If you need an image to fill a specific box of a different shape, resizing is the wrong tool, what you want is cropping, which removes the parts that do not fit rather than distorting the ones that do.

Resizing saves far more than compressing

File size follows the pixel count, and the pixel count falls with the square of the scale. Halving both dimensions leaves a quarter of the pixels, and usually something close to a quarter of the bytes.

That dwarfs what a quality setting can do. If you want a file as small as possible, resize first and compress second, in that order, the compressor on this site handles the second half.

Enlarging

Asking for more pixels than the image has does not recover detail; nothing was recorded to recover. The browser interpolates, inventing intermediate pixels by averaging their neighbours, so the result is bigger and softer.

It is offered anyway, because there are real reasons to need it, a form that insists on a minimum size, a print dimension to match, and refusing would be this tool having an opinion about a legitimate request. It simply says so when it happens.

The limit, and why it is not an error message

Browsers cap the size of the drawing surface this work uses, and the cap is lower than most people expect, some devices refuse anything past about 16 million pixels. The unpleasant part is that going past it does not raise an error: the canvas comes back blank, and a tool that did not check would hand you a white rectangle and call it a resized photograph.

So an oversized request is brought inside the limit with the proportions kept, and the panel says it has been.

Useful sizes

  • Full-width web image, 1,920 pixels wide is plenty for almost any screen.
  • Article illustration, 800 to 1,200 wide.
  • Thumbnail or avatar, 300 to 400 square.
  • Email attachment, 1,600 on the long side keeps it readable and the file modest.

Serving a 4,000-pixel photograph into a 600-pixel slot costs whoever loads it most of the download for detail their screen cannot show.

Questions

Is my image uploaded to resize it?
No. The file is decoded, redrawn at the new size and handed back entirely by JavaScript in your own browser tab. There is no upload step and no server involved: load the page, disconnect from the network, and it still works. Nothing is stored either; close the tab and the resized version is gone with it.
How do I resize an image without stretching it?
Keep the aspect ratio lock on, which it is by default. With it on, typing a width sets the height to whatever keeps the original proportions, and typing a height does the same in reverse. Turning it off lets you set both freely, which will squash or stretch the picture, the tool warns you when the numbers you have entered would do that.
Can I make an image larger?
Yes, but it cannot add detail that was never captured. The browser fills the extra pixels by averaging their neighbours, so the result is larger and softer rather than sharper. It is allowed because there are genuine reasons to need it, a minimum size a form insists on, a print dimension, and the tool says plainly when it is doing it.
Does resizing reduce the file size?
Usually a great deal, because file size follows the pixel count and the pixel count falls with the square of the scale. Halving both dimensions leaves a quarter of the pixels. That is normally a much bigger saving than lowering quality, which is why resizing first and compressing second is the right order when you want a file as small as possible.
What format does the resized image come back in?
The same one it went in as, wherever the browser can write it. A PNG comes back a PNG and a JPEG comes back a JPEG. Resizing should change one thing. Only a format the browser cannot write at all, such as HEIC or TIFF, falls back, and it falls back to PNG because PNG is lossless and keeps any transparency.
Why is there a limit on the dimensions?
Browsers cap the size of the drawing surface this work happens on, and the cap is lower than people expect, some devices refuse anything past around 16 million pixels. Worse, exceeding it does not raise an error: the canvas silently comes back blank. The tool brings an oversized request inside the limit with the proportions kept, and tells you it has.
What size should an image be for a website?
It depends on where it sits, but useful starting points: a full-width hero image rarely needs more than 1,920 pixels wide, a blog illustration 800 to 1,200, and a thumbnail 300 to 400. Serving a 4,000-pixel photograph into a 600-pixel slot costs the visitor most of the download for nothing a screen can show.
Can I resize several images at once?
Not here. This tool works on one image at a time, so the dimensions and the preview refer to something specific. For a batch you would want a desktop tool. If you are combining several images rather than resizing them, the image to PDF tool on this site takes a whole stack.

More tools