Image Resizer – exact dimensions for one photo or a whole batch
This image resizer changes the pixel dimensions of JPEG, PNG, WebP, GIF and AVIF files right in your browser. You describe the size you need once, as a percentage, a width, a height, a longest edge or an exact box, and the same recipe is applied to every file you drop in. Each image is decoded, drawn onto a canvas and re-encoded on your own device, so you can resize images without uploading them anywhere, and the batch can be downloaded file by file or as one ZIP archive.
Five ways to describe the size
Percentage scales both sides together, so 50 % of a 1001 × 667 image is 501 × 334. Width and Height fix one side and let the other follow the aspect ratio: a 4032 × 3024 phone photo resized to a width of 1200 becomes 1200 × 900. Longest edge is the one to use for a mixed batch of portrait and landscape shots, because the longer side always lands on your number. Exact size asks for a precise box and then lets you decide what happens when the photo is a different shape.
Whatever you type is hit exactly. Only the derived side is rounded, and it is always calculated from the original ratio rather than from an already-rounded figure, so a batch never drifts by a pixel.
Fit inside, pad, fill and crop, or stretch
Take a 3000 × 2000 photo and a 1080 × 1080 square target. Fit inside keeps the whole picture and returns 1080 × 720, the largest copy that fits the box. Pad returns exactly 1080 × 1080 with the picture centred and 180 px bands above and below in a colour of your choice, or transparency for PNG and WebP. Fill and crop scales the photo until it covers the square and trims the sides, keeping a 2000 × 2000 region of the original; the 9-point anchor decides whether the left, centre or right survives. Stretch forces the size by distorting the picture, here squashing it horizontally by 33.3 %. The live preview draws each of these before anything is processed, including the parts a crop will cut away.
Resizing for print: units and DPI
Switch the unit to millimetres, centimetres or inches and a DPI field appears. The pixel count is round(inches × DPI), where inches are mm ÷ 25.4 or cm ÷ 2.54. A print size is only useful if the file says how it should print, so the DPI is also written into the header: the JFIF density for JPEG and a pHYs chunk for PNG. Word, Photoshop and print shops then open it at the physical size you asked for instead of assuming 72 DPI. WebP has no widely supported DPI field, so choose JPEG or PNG for print.
| Paper | Size | Pixels at 150 DPI | Pixels at 300 DPI |
|---|---|---|---|
| A4 | 210 × 297 mm | 1240 × 1754 | 2480 × 3508 |
| US Letter | 8.5 × 11 in | 1275 × 1650 | 2550 × 3300 |
| Photo 4 × 6 | 4 × 6 in | 600 × 900 | 1200 × 1800 |
| Photo 5 × 7 | 5 × 7 in | 750 × 1050 | 1500 × 2100 |
Batch limits and output formats
A batch holds up to 50 files of up to 25 MB and 50 megapixels each. Files are processed one at a time and released straight afterwards, so a large batch does not hold fifty decoded photos in memory. Outputs are capped at about 16.7 megapixels and 16,384 px per edge, because some mobile browsers silently return a blank canvas beyond that. When a target is too large, the tool refuses it and names the largest size it can produce at the same aspect ratio, rather than quietly delivering something smaller.
Output can match the original format or be converted to JPEG, PNG or WebP. A canvas cannot write GIF or AVIF, so those become PNG or JPEG, and the results table says which was used. Transparent areas sent to JPEG are flattened onto a matte colour you pick. Canvas re-encoding also drops EXIF, GPS and colour-profile metadata, after first applying the EXIF rotation so phone photos stay upright.