Blog
Unit converters

Millimeter to pixel converter

Choose a conversion direction, enter a value, and specify the resolution in dots per inch (DPI) — the converter translates millimeters to pixels or pixels to millimeters. The result depends on the chosen DPI, so make sure to set it correctly for your specific task (screen, print, scan).

Your data never leaves this device

Result

Result
Resolution used, DPI

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

mm → pixels formula pixels = mm / 25.4 × DPI
Pixels → mm formula mm = pixels / DPI × 25.4
96 DPI the standard resolution for Windows and the CSS pixel
300 DPI the typical resolution for high-quality print

When it misleads you

How it is calculated

The DPI resolution is converted into pixels per millimeter by dividing by 25.4 (the number of millimeters in an inch).

To convert millimeters to pixels, the entered value in mm is multiplied by this pixels-per-millimeter figure.

To convert pixels to millimeters, the entered value in pixels is divided by the same pixels-per-millimeter figure.

The result and the DPI value used update instantly whenever any parameter changes.

Questions and answers

What DPI should I use for web design?

Generally 96 DPI — the standard for CSS pixels in most browsers; Retina display UI elements have a higher physical pixel density, but the logical CSS pixel remains tied to 96 DPI.

What DPI is needed for high-quality printing?

300 DPI is generally considered the standard for professional printing; for draft or less demanding printing, 150 DPI is often sufficient.

Why millimeters and not centimeters?

Millimeters are a more convenient unit for the small quantities typical in typographic sizes (such as line thickness or layout margins) — avoiding the fractional numbers that centimeters would produce.

Is my data sent anywhere?

No, the whole calculation runs in your browser.

Related tools

All tools