Free Millimeters to Pixels Online

Image Studio · On-device processing

METHOD, EXAMPLES & ANSWERS

How to use Millimeters to Pixels

Convert a physical photo or print measurement in millimeters to whole pixels at a chosen DPI.

About Millimeters to Pixels

A millimeter is a physical length, while a pixel is a sample of an image. There is no single fixed number of pixels per millimeter unless a density is specified. This matters when a print shop asks for a 35 mm photo, a designer needs an exact 45 mm height, or a label must be reproduced at 300 DPI rather than at a browser's assumed screen density.

Use the same density for width and height and round each measurement to the nearest whole pixel. The result specifies how many pixels to prepare, not whether a printer will output the correct physical size. Print software can rescale an image, and a file's density metadata can differ from the density used for this calculation. Use the photo print sheet for a PDF with explicit physical paper dimensions and Passport Photo Sizer when an actual portrait crop is needed.

  1. Enter the physical length in millimeters.
  2. Choose an integer density between 72 and 600 DPI.
  3. Calculate, review the formula and print or save the result.

How it works

Pixels = millimeters × DPI ÷ 25.4, rounded to the nearest integer. One inch equals 25.4 millimeters.

A quick example

35 mm at 300 DPI rounds to 413 px; 45 mm rounds to 531 px. At 254 DPI, 25.4 mm equals 254 px.

Assumptions, edge cases & limits

  • Positive inputs and the engine's 1–16,384 pixel dimension range only. It does not modify an image, set density metadata or certify print accuracy.
  • Review your output and keep your original file.

Questions about Millimeters to Pixels

How do I convert millimetres to pixels at 300 DPI?

Multiply millimetres by DPI and divide by 25.4, then round to an appropriate pixel dimension. DPI describes the intended physical print scale.

Is 1 mm always the same number of pixels?

No. The result depends on the chosen DPI.

Why does the answer round?

A raster image uses whole pixel dimensions.

Does the calculator change my file's DPI?

No. It calculates a target dimension only.

Can I calculate both photo dimensions?

Yes. Calculate width and height separately using the same DPI.

Related image workflows

Browse all Image Tools · Open Image Studio

Resize or fit an image to exact dimensions

For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.

A result or explanation needs correcting? Tell us the tool name and an example.