How to resize an image to an exact size
- Choose the photo or graphic you want to resize. It stays on your device.
- Pick the unit the form or printer uses. Centimetres and millimetres are common for print, pixels for screens.
- Type the width and height, then set the DPI. 300 DPI is the usual photo standard; 150 DPI is fine for a document.
- Choose Crop to fill when the frame must be completely covered, or Fit inside when the whole image must stay visible.
- Check the pixel readout, then press Resize and download. Compare the preview with the original before you upload it anywhere.
Pixels, centimetres and DPI in one paragraph
A digital image only has pixels. Centimetres and inches appear when the image is printed, and DPI decides how many pixels go into each inch. One inch is 25.4 mm, so the conversion is straightforward: pixels = millimetres ÷ 25.4 × DPI. At 300 DPI, one millimetre is about 11.8 pixels. That is why a 35 mm wide passport photo is 413 pixels and a 45 mm tall one is 531 pixels.
The consequence is worth remembering. The same 1200-pixel file is 4 inches wide at 300 DPI and 8 inches wide at 150 DPI. It contains the same amount of detail; only the print instruction changes. A printer asked for 35 × 45 mm will scale the file to fit the paper. If you send 1200 pixels for a 35 mm width, the printer has far more detail than it needs, which is harmless but makes the file larger. If you send 150 pixels, it has less than a third of what 300 DPI needs, and the print looks soft.
Common sizes and their pixel values
| Use | Size | Pixels |
|---|---|---|
| Passport photo | 3.5 × 4.5 cm | 413 × 531 px |
| Postcard print | 10 × 15 cm | 1181 × 1772 px |
| A4 document | 21 × 29.7 cm | 2480 × 3508 px |
| Square profile image | 600 × 600 px | 600 × 600 px |
The table is a guide, not a rule. Forms sometimes state pixel dimensions directly, in which case switch the unit to pixels and type those numbers. When a form gives both a physical size and a pixel size that disagree, follow the pixel size; that is what the upload check actually measures.
Crop, fit or stretch?
These three choices decide what happens when the photo's shape does not match the frame.
- Crop to fill scales the image until both sides reach the frame, then cuts the overflow from the centre. Faces stay in proportion. The edges are lost, so keep the important part near the middle, or use a photo with room around the subject.
- Fit inside scales the image until the longest side fits, then fills the spare space with the background colour. Nothing is cut. This is the right choice for a logo, a signature, a diagram or a document scan where the margins matter.
- Stretch forces the image to the exact frame and ignores the aspect ratio. It is here because a few old forms expect it, but a stretched face looks wrong. Use it only when you have checked the result.
For a passport or visa photo, crop is almost always correct. The head has to sit inside a defined area, and adding a border would break the layout the form expects.
How large can the output be?
The page refuses to build an image above roughly 40 megapixels, which is about 7300 × 5500 pixels. Beyond that a phone browser can run out of memory and the tab closes without warning. If you need a bigger file, resize in two steps: first to half the size, then to the final size. Each step keeps memory use manageable.
Upscaling is allowed, but the page tells you when the output is larger than the source. A small original enlarged three times is still a small original; the extra pixels are interpolated, not recovered. If a form demands a minimum pixel size that your photo does not have, take a new photo rather than enlarging an old one.
Keeping the result sharp and small
- Start from the original. A copy that has already been through a chat app has lost detail before this page sees it.
- Match the DPI to the use. 300 for print, 150 for a document you will read on screen, 72–96 for web images.
- Use JPG for photos. It keeps the file small enough for upload forms that cap at 100 KB or 200 KB.
- Use PNG for line art. Text, signatures and logos stay crisp, and transparency survives.
- Check the KB limit. Some forms check size as well as dimensions. If the resized file is too large, run it through the image compressor afterwards.
Privacy and browser support
Everything happens in the tab. There is no upload endpoint, no account and no watermark. The page uses createImageBitmap and the Canvas API, which every current version of Chrome, Edge, Firefox and Safari supports. Photos taken on a phone are rotated correctly because the browser applies the EXIF orientation before drawing.
If a file will not open, it may be a HEIC photo from an iPhone or a RAW file from a camera. Convert it first with the HEIC to JPG converter, then resize it here.
Questions people ask
What does DPI change?
DPI is the link between pixels and physical size. At 300 DPI, 300 pixels print as one inch. Changing DPI does not add detail: a 600-pixel-wide image printed at 6 inches is 100 DPI and looks soft. Set the DPI your printer or form expects, usually 300 for photos and 150 for documents.
How many pixels is 3.5 cm at 300 DPI?
35 mm at 300 DPI is 413 pixels. The formula is millimetres ÷ 25.4 × DPI, rounded to a whole pixel. 45 mm becomes 531 pixels, which is the common 35 × 45 mm passport photo size.
Should I crop or fit?
Crop fills the whole frame and keeps the aspect ratio, cutting off the edges. Fit keeps the entire image and adds a background around it. For a print size such as 10 × 15 cm, crop is usually right. For a logo or a diagram, fit avoids losing anything.
Why is my image blurry after resizing?
Enlarging cannot invent detail. A 400-pixel photo shown at 1200 pixels is stretched, and the browser cannot recover edges it never had. Start with the largest original you have, and avoid repeated resizing. This page does warn you when the output is larger than the input.
Is the photo uploaded?
No. The browser decodes the file, draws it onto a canvas and encodes the result locally. Nothing is sent to a server, and the image disappears when you close the tab. You can disconnect from the internet after the page loads and it still works.
Which format should I download?
JPG for photographs, because it is small and every printer accepts it. PNG for graphics, screenshots and anything with transparency, because it is lossless. This tool keeps transparency only in PNG; JPG fills the spare area with the colour you choose.
Can I resize in inches instead of centimetres?
Yes. Switch the unit to inches or millimetres and type the size. The pixel values update as you type. A 4 × 6 inch print at 300 DPI is 1200 × 1800 pixels, for example.
Updated · 28 Kartik 2083 BS