Resize in Millimeters
Resize your image to exact millimeter dimensions with precise DPI control
Set your width and height in millimeters, choose a DPI, and drop in any image — the tool converts mm to pixels automatically and exports a resized file in seconds. No more pulling out a calculator for visa photos or print layouts.
Aspect ratio lock stops accidental stretching when you only adjust one dimension. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool converts millimeters to pixels using a simple formula: pixels = mm × DPI ÷ 25.4. Once you upload an image, it redraws it on an HTML5 canvas at the exact pixel dimensions, then exports the result as PNG or JPG. No external libraries needed — just your browser's built-in rendering engine.
Examples
Passport Photo for Schengen Visa
Most European embassies want a 35 x 45 mm photo at 300 DPI.
Width: 35 mm
Height: 45 mm
DPI: 300
Image: portrait.jpg (2400 x 3200 px)
portrait-35x45mm.jpg
413 x 531 px at 300 DPI
Business Card Logo
Printer asked for a 50 x 30 mm logo at 150 DPI for the card layout.
Width: 50 mm
Height: 30 mm
DPI: 150
logo-50x30mm.png
295 x 177 px at 150 DPI
Product Label for Packaging
An Etsy seller needs a 80 x 50 mm label image at 300 DPI for a commercial print run. The source image was shot on a phone at 4032 x 3024 px, way larger than needed. She wants the file trimmed down to match the exact label dimensions without distortion.
Width: 80 mm
Height: 50 mm
DPI: 300
Image: label-photo.jpg (4032 x 3024 px)
label-photo-80x50mm.jpg
945 x 591 px at 300 DPI
Who Uses This
Resize portraits for visa and ID photo printing at exact mm specifications.
Prep logos and assets for print layouts sized in millimeters.
Create product label images that match packaging dimensions exactly.
Resize images for thesis or report figures that need specific mm dimensions.
Common Mistakes
A 35 x 45 mm photo at 72 DPI produces a tiny 99 x 127 px image — fine for a thumbnail, useless for print. For anything going on paper, use 300 DPI. Screen-only? 96 or 150 DPI is usually enough.
If you type 35 mm wide and 45 mm tall but your source image is square, the output will be stretched vertically. Turn on "Lock Ratio" first, then only change one dimension — the other adjusts automatically.
Resizing a 200 x 300 px photo to 945 x 1181 px (80 x 100 mm at 300 DPI) means the browser is inventing pixels. The result will look blurry. Start with the highest resolution source you have.
Technical Details
- Processing: 100% client-side (HTML5 Canvas)
- Browser Support: Chrome, Firefox, Safari, Edge
- Accepted Formats: PNG, JPG, WebP
- DPI Options: 72, 96, 150, 200, 300, 600
- Max Output: Limited by browser canvas size (typically ~16,000 px per side)
Frequently Asked Questions
How do I convert mm to pixels for an image?
Multiply the millimeters by your DPI, then divide by 25.4. For example, 50 mm at 300 DPI equals 591 pixels. This tool does that math for you — just enter your mm dimensions and pick a DPI.
What DPI should I use for printing photos?
300 DPI is the standard for photo prints and most professional printing. If you're printing large posters viewed from a distance, 150 DPI can work fine. For screen use only, 72 or 96 DPI is enough.
What size is a passport photo in mm?
It depends on the country. US passports need 51 x 51 mm (2 x 2 inches). Most European countries and India require 35 x 45 mm. Check your specific embassy's requirements before resizing — getting it wrong means resubmitting.
Does resizing in mm reduce image quality?
Shrinking an image usually looks fine. Enlarging it is where quality drops, because the browser has to invent new pixels. If your source is 600 x 800 px and you need 945 x 1260 px, expect some blur. Always start with the largest source image you can get.
Is my image uploaded to a server?
No. The entire process happens in your browser using the Canvas API. Your image stays on your device the whole time. Nothing is sent anywhere, and the tool even works if you go offline after the page loads.