Convert photo size to pixels

Turn 35 × 45 mm at 300 DPI into pixels, or a pixel size into the size it prints at, in millimetres, centimetres and inches.

Pixel size at 300 DPI

413 × 531 px

  • 3.5 × 4.5 cm
  • 1.38 × 1.77 in

35 mm ÷ 25.4 × 300 DPI = 413.4 px

1 inch is 25.4 mm. Pixels are rounded to the nearest whole pixel.

Why use it

Sizes in mm, forms in pixels

Photo rules give a printed size; upload forms and apps work in pixels.

This free photo size converter turns millimetres, centimetres or inches into pixels at any DPI, and pixels back into a printed size. Type 35 × 45 mm at 300 DPI and it shows 413 × 531 pixels, with the formula it used, as you type and without uploading anything.

Passport and visa rules give a photo's printed size, such as 35 × 45 mm or 2 × 2 inches, while online application forms and photo apps ask for pixels. The Photovisa editor already makes your photo at your document's exact size, so the converter shows what that size is in pixels, and whether a photo you already have has enough of them.

It's useful when a form asks for a minimum size in pixels but the rules give millimetres, to check a photo has enough pixels before you print it at passport size, to set up a canvas in another photo app, and to see how large a photo will print at your printer's DPI.

How to use

How to convert a photo size

Four steps from the size a form gives you to the one your photo needs.

  1. Choose your unit

    Pick mm, cm or inch to enter a printed size, or px to enter a size in pixels.

  2. Enter the width and height

    Type the size you have, such as 35 × 45 mm for a passport photo.

  3. Set the resolution

    300 DPI is the usual resolution for a printed photo. Use the one your form or printer gives.

  4. Read and copy the size

    See the size in pixels, or printed in every unit, with the formula used, then copy it.

How it works

The arithmetic, shown

An inch is 25.4 mm, and DPI is how many pixels fit into each inch.

  • Size to pixels

    Pixels are millimetres ÷ 25.4 × DPI. 35 mm at 300 DPI is 413.4, so 413 px.

  • Pixels to printed size

    Millimetres are pixels ÷ DPI × 25.4. 600 px at 300 DPI prints 2 inches, or 50.8 mm.

  • Whole pixels

    An image can't hold part of a pixel, so a pixel size is rounded to the nearest whole one.

  • Works as you type

    It's a calculator in your browser: no photo is needed, and nothing is uploaded.

FAQ

Questions about photo sizes.

Pixels, DPI and printed sizes, and how they fit together.

At 300 DPI, 413 × 531 pixels. At 600 DPI, 827 × 1063 pixels.

Make your photo in the editor

The editor crops your photo, sets the background and sizes it.

Upload a photo