🪄GenieToolsAll Tools

Image Resizer: Set Exact Pixel Dimensions

Resize a PNG, JPG or WebP to a width and height you choose, or fit a whole batch inside a maximum size.

By Yasir Yaseen · Updated November 2026

Drop one image or a whole batch

or click to browse — PNG, JPG, WebP up to 20 MB each, up to 50 at once

Pixels, not inches

A digital image has no physical size. It is a grid of pixels, and the only thing a resize can change is the size of that grid. The DPI value you see in photo editors is a label saved in the file's metadata. It tells a printer how densely to place the pixels, but it does not add or remove any.

So for print, do the sum yourself: print size in inches multiplied by the DPI you want. A 4 × 6 inch print at 300 DPI needs 1200 × 1800 pixels. The same print at 150 DPI needs 600 × 900. The table gives a few common sizes using the same arithmetic.

Print sizePixels at 300 DPIPixels at 150 DPI
4 × 6 in1200 × 1800 px600 × 900 px
5 × 7 in1500 × 2100 px750 × 1050 px
8 × 10 in2400 × 3000 px1200 × 1500 px

For screens, dimensions are usually set by the page or app that displays the image. Platforms change their recommended sizes from time to time, so check the platform's current specification before you resize for it. Our guide to resizing images for social media covers the workflow.

Single image versus batch: how the fields behave

The same two fields and the padlock mean slightly different things depending on how many files you add.

  • One image. The fields start at the original size. With the padlock on, typing a width sets the height from the original aspect ratio, and the other way round. With it off, the two values are independent. The output is always exactly the width and height shown, so an unlocked, mismatched pair will stretch the picture.
  • Batch, padlock on (fit within). The fields become a maximum width and a maximum height. Each image is scaled by the smaller of the two ratios so it fits inside the box, and keeps its own proportions. Leave one field empty to limit only the other. A box of 1200 wide and no height limit gives every image a width of 1200 whatever its height.
  • Batch, padlock off (exact). Every image is drawn at precisely the width and height you give, which is useful for uniform thumbnails only if your sources already share an aspect ratio.

Fit-within is not limited to shrinking. If the box is larger than an image, that image is enlarged to fill it, so choose a box no bigger than your smallest source unless you want that.

Shrinking is safe; enlarging has limits

Reducing an image throws away pixels you did not need at the new size. Enlarging has to invent pixels by blending their neighbours, which adds size but not detail. A 600 pixel wide photo stretched to 1800 pixels will look soft because there is nothing more to reveal. If a printer or platform wants more pixels than you have, a new, higher-resolution original is the only real fix.

Resizing also re-encodes the file. PNG output is lossless. JPG and WebP output is saved at a fixed 92% quality, so repeated resize-and-save cycles on a JPG will slowly add artefacts. Resize once from the original rather than from a copy you already resized.

What the tool keeps and what it limits

Files keep their original names, with the extension matching the output format. Each file can be up to 20 MB, a batch holds up to 50, and the size fields accept up to 10,000 pixels. Batches run one image at a time and finish as a ZIP. When a result is ready, the Continue with bar can pass it directly to another tool, such as the compressor, without uploading it again. Everything happens in your browser tab; nothing is sent to our servers.

Image resizer FAQ

Does changing the DPI make my image print larger?
Not by itself. DPI is a number stored with the file that tells a printer how many pixels to place per inch. The pixel grid is what holds the detail. This tool changes the pixel dimensions, so work out the pixels you need from the print size first (inches multiplied by the DPI you want) and enter those.
What happens in a batch when the padlock is on and when it is off?
With the padlock on, a batch uses 'fit within': you type a maximum width, a maximum height, or both, and each image is scaled by its own aspect ratio to fit inside that box. A blank field means no limit on that side. With the padlock off, every image is forced to exactly the width and height you enter, which stretches any image whose proportions differ.
Will enlarging a small image make it sharper?
No. The tool can only interpolate between pixels that already exist, so an enlarged image has more pixels but the same amount of real detail. It usually looks softer. If you need a bigger image, start from a higher-resolution original where you can.
Which format is the resized file saved in?
The same format as the original: PNG stays PNG, JPG stays JPG, WebP stays WebP. JPG and WebP outputs are re-encoded at a fixed quality of 92%, and PNG is lossless. The original file name is kept, with the extension matching the output.
What are the size limits?
Each file can be up to 20 MB, and a batch holds up to 50 files. The width and height fields accept values up to 10,000 pixels. Very large outputs use a lot of memory, so a phone may struggle with them.
Is my image uploaded anywhere?
No. The image is drawn onto a canvas in your browser tab and re-encoded there. Nothing is sent to a server by this tool.