📐 Image Resizer

An image resizer by pixels, percentage, inches or millimeters at a chosen DPI, with presets for Instagram, YouTube, passport and print. In-browser.

Free No Signup Required Browser-Based
📐

Choose an image, or drop it here

Resized in this tab. The file is never uploaded.

What Image Resizer Does

Resizing an image is resampling: the resizer computes new pixels from the old ones. Making an image smaller is well-conditioned — several source pixels are averaged into each new one, and the result is genuinely sharper than the original per pixel. Making it larger is not. There is no extra information to draw on, so the new pixels are interpolated guesses, and the picture gets softer. No amount of algorithm changes that; enlargement is invention.

Most people arriving at a resizer already know the size they need, and it is usually not in pixels. It is "2 by 2 inches for a passport", "4 by 6 for printing", "1080 by 1080 for Instagram". The step that goes wrong is the conversion, because inches only become pixels once you fix a resolution: at 300 DPI a 2-inch edge is 600 pixels, at 150 DPI it is 300.

So this tool takes the unit you actually have — pixels, percent, inches or millimeters — converts it with the DPI you choose, and shows the resulting pixel size before you commit. The presets are the sizes people name, with the arithmetic already done.

Units matter more than they look. Web uploads are quoted in pixels, print shops in inches, and government and exam portals very often in centimeters — 3.5 × 4.5 cm is the most requested ID photo size there is. All four go in directly, so nobody has to do the conversion by hand.

One further step the pixel dimensions alone do not cover: the resolution is written into the saved file. A canvas-encoded JPG normally claims no physical resolution at all, and a canvas-encoded PNG carries no resolution chunk, so a portal that validates the embedded DPI rejects the image however many pixels it has. The encoded bytes are patched afterwards — the JFIF density fields in a JPG, a pHYs chunk in a PNG — so the file really does declare the number you set.

It also tells you two things competitors leave you to discover afterwards: when the target is bigger than the original, and when the target shape does not match the original shape and the picture will be stretched.

How to Use Image Resizer

  1. Add an image, or drop it onto the box
  2. Choose the unit — pixels, percent, inches or millimeters — and set the DPI if you picked a print unit
  3. Type the width or height, or choose a preset such as 1080×1080 or a 2×2 inch passport photo
  4. Pick an output format and quality, then resize and save

Formula Used by Image Resizer

Physical size to pixels

pixels = inches × DPI (millimeters: pixels = mm ÷ 25.4 × DPI)

DPI
dots per inch — how densely the pixels will be laid down when printed
25.4
millimeters in an inch, exact by the 1959 international definition

Worked example

A 2 × 2 inch passport photo at the 300 DPI print labs ask for.

  1. 2 in × 300 DPI = 600 px
  2. 2 in × 300 DPI = 600 px

Result: 600 × 600 pixels — not 2 × 2, and not 200 × 200, which are the two answers people reach for.

Keeping the proportions

height = width × (originalHeight ÷ originalWidth)

originalHeight ÷ originalWidth
the aspect ratio, held constant so the image is not stretched

Worked example

A 4032 × 3024 phone photo (4:3), resized to 1600 px wide.

  1. 3024 ÷ 4032 = 0.75
  2. 1600 × 0.75 = 1200

Result: 1600 × 1200. Asking for 1600 × 1600 instead would squash the picture by a third.

Print sizes in pixels at 300 DPI

The resolution print labs and most government portals expect. At 150 DPI, halve every number.

UsePhysical sizePixels at 300 DPI
Passport / visa photo (US, India)2 × 2 in (51 × 51 mm)600 × 600
Standard photo print4 × 6 in1200 × 1800
Medium photo print5 × 7 in1500 × 2100
Large photo print8 × 10 in2400 × 3000
A4 page210 × 297 mm2480 × 3508
A5 page148 × 210 mm1748 × 2480

ID and application-form sizes

The sizes portals name, already converted. Always use the exact figure your form states — these are the common ones, not a standard.

What the form asks forPixelsNote
3.5 × 4.5 cm photo at 300 DPI413 × 531The most commonly requested ID photo size
3.5 × 4.5 cm photo at 200 DPI276 × 354Some portals specify 200 rather than 300
2 × 2 in photo at 300 DPI600 × 600US passport and visa convention
Form photograph200 × 230Quoted directly in pixels by many Indian government forms
Form signature140 × 60Quoted directly in pixels alongside the photo
Profile picture512 × 512 or 300 × 300Square, so crop before resizing if your photo is not

Screen and social sizes

Platform requirements change; these are the long-standing values the presets use.

WherePixelsAspect
Instagram square post1080 × 10801:1
Instagram portrait post1080 × 13504:5
Instagram / TikTok story1080 × 19209:16
YouTube thumbnail1280 × 72016:9
LinkedIn banner1584 × 3964:1
Full HD screen1920 × 108016:9

How to Read Your Result

DPI does nothing to a file that stays on screen

A 600 × 600 image is 600 × 600 pixels whatever DPI is written in its header. The number only decides how large those pixels are when printed. For anything shown on a display, set the pixel dimensions directly and ignore DPI entirely — including the "72 DPI for web" advice, which is a Macintosh convention from the 1980s and has no technical meaning today.

The exception: a portal that checks the tag

A validator does not care that DPI is meaningless on screen — it reads the field and rejects the file if it does not say 300. That is why the number is written into the output here rather than only used for the arithmetic. Set the DPI your form names, save as JPG or PNG, and the file will declare it.

Resize and crop are different operations

If the shape you need does not match the shape you have, resizing alone cannot get you there without distortion. A 4:3 photo made 1080 × 1080 is squashed by a quarter. The honest sequence is crop to the target ratio first, then resize to the target pixels.

Enlargement has a usable range

Ten to twenty percent generally passes unnoticed. Doubling is visibly soft. Beyond that you are producing a larger file containing no more information, which is worse than sending the original and letting the display scale it.

Limitations & Accuracy Notes

  • Resampling uses the browser’s built-in high-quality scaler. It is good, and it is not a machine-learning upscaler — nothing here invents plausible detail.
  • The DPI is written into JPG (the JFIF density fields) and PNG (a pHYs chunk), but not into WebP, which has no standard field for it. Save as JPG or PNG when a portal validates the embedded resolution.
  • Cropping is not part of this tool. When the target aspect differs from the original, the mismatch is flagged but the image is scaled to fit the numbers you gave.
  • EXIF, including orientation and GPS, is not carried into the output. Rotation from the EXIF tag is applied to the pixels first, so the picture comes out the right way up.
  • One image at a time — this tool is built around per-image dimensions rather than batch settings.

Frequently Asked Questions

What size is a 2x2 inch passport photo in pixels?
600 by 600 pixels, at the 300 DPI that print labs and most government portals expect. The arithmetic is just inches multiplied by DPI, and it is where people go wrong: 2 by 2 is not 200 by 200, and it is not 2 by 2. Switch the units to inches, set the DPI, and the tool shows the pixel result before you commit.
What does DPI actually change in a digital file?
On screen, nothing. A 600 by 600 image is 600 by 600 pixels whatever DPI is written in its metadata. DPI only decides how large those pixels are when printed: at 300 DPI a 600-pixel edge prints two inches, at 150 DPI it prints four. This tool uses DPI to convert your inches or millimeters into a pixel count, which is the part that matters.
Can I enlarge an image without losing quality?
Not really, and any tool that promises otherwise is overstating it. Enlarging interpolates new pixels from the ones already there — it cannot recover detail the camera never recorded. Modest enlargements of 10 to 20 percent usually pass unnoticed; doubling looks soft. The tool warns you when the target is larger than the original.
How do I resize without stretching the picture?
Leave "keep the original proportions" ticked and change only one dimension; the other follows. If you need an exact shape that does not match the original — a 1080 by 1080 square from a 4:3 photo, say — the picture has to be cropped rather than resized, or it will be squashed. The tool flags the mismatch and gives both ratios.
Is 72 DPI the right setting for web images?
It is a convention with no technical meaning. 72 DPI came from early Macintosh screens and modern displays are nothing like it — phones run above 400 pixels per inch. For anything shown on a screen, set the pixel dimensions directly and ignore DPI entirely. It matters only for print.
Are my images uploaded to a server?
No. The resize happens in the page using the canvas API. This site is a static export with no backend, so there is nowhere for a file to be sent even in principle.

References & Further Reading

By OnlineToolHubs Team • September 2026