Image Resizer (Pixels, mm, cm & Inches with DPI)
Resize any JPEG, PNG, or WEBP image to exact pixel dimensions or physical print sizes (millimeters, centimeters, or inches) using the formula px = mm ÷ 25.4 × DPI. Choose crop-to-fill, fit with white padding, or exact stretch, and optionally cap the output file size in kilobytes locally in your browser.
How to Resize an Image to Exact Pixels or Physical Units
- Select your photo or scanned document (JPEG, PNG, or WEBP up to 50 MB). The tool reads EXIF orientation automatically so vertical phone photos stay upright.
- Pick a verified portal preset (such as 35×45 mm at 300 DPI for visa forms or 2×2 inch photo) or choose Custom Dimensions.
- Select your measurement unit: pixels (px), millimeters (mm), centimeters (cm), or inches (in). When using physical units, enter the required DPI (dots per inch) so the tool computes the exact pixel grid.
- Choose how to handle aspect-ratio differences: Crop to Fill (with draggable focus sliders), Fit Inside with White Padding, or Stretch.
- Optionally enable the Exact-KB ceiling if your portal requires both specific dimensions and a maximum file size (such as 20 KB or 50 KB), then click Resize & Export.
How Physical Size, DPI, and Pixel Resizing Work
Online application forms often mix physical print measurements (like 3.5 cm × 4.5 cm at 200 DPI) with digital pixel dimensions. This tool bridges both without separate calculator pages.
What This Tool Does
- Converts millimeters, centimeters, and inches into exact integer pixel dimensions using px = round((mm / 25.4) × dpi).
- Supports three resize placement modes: Crop to Fill with horizontal/vertical pan controls, Fit with pure white (#FFFFFF) letterbox padding, and exact Stretch.
- Chains directly into the Exact-KB two-variable encoder when you need the resized image to stay under a strict byte ceiling.
- Verifies browser canvas MIME support and flattens transparent PNG/WEBP layers onto white when exporting JPEG files.
Honest Technical Limits
- Upscaling a small, low-resolution image to larger pixel dimensions adds interpolated pixels but cannot recover lost optical detail.
- Changing the DPI field inside the resizer calculates the target pixel grid for physical units (mm/cm/in); if you also need a specific DPI number written into the JPEG JFIF/EXIF header without altering pixels, use the dedicated Change Image DPI tool.
- If you combine a very large pixel dimension (such as 1200×1200 px) with an extremely small KB limit (such as 20 KB), JPEG quality will drop or dimensions must scale down to obey the byte ceiling.
Verified Portal Dimension Specifications
The table below lists official pixel and physical dimension requirements verified from public government and exam portals:
| Portal / Document | Format | Dimensions / Print Size | File Size Limit | Head & Background Rule | Official Source & Verified Date |
|---|---|---|---|---|---|
| US visa digital imageUS | jpg, jpeg | 600×600 px / 51×51 mm @ 300 DPI | ≤240 KB | Head height between 50% and 69% of image total height (1 inch to 1-3/8 inches) Plain white or off-white background | Official Source (Verified 2026-10-14) |
| HM Passport Office Digital PhotoUK | jpg, jpeg | 600×750 px / 35×45 mm @ 300 DPI | 50–10240 KB | Head and upper shoulders visible, centered Plain light-coloured background | Official Source (Verified 2026-10-14) |
| France-Visas (ISO/IEC)SCHENGEN | jpg, jpeg | See portal | Face must occupy 70% to 80% of the photograph Plain light-colored or light grey background | Official Source (Verified 2026-10-14) | |
| Government of Canada Passport & PR PhotoCA | jpg, jpeg | 591×827 px / 50×70 mm @ 300 DPI | See portal | Chin to crown 31 mm to 36 mm (44% to 51% of 70 mm frame height) Plain white or light-coloured background | Official Source (Verified 2026-10-14) |
| Pakistan Online Visa System PhotographPK | jpg, jpeg | 350×467 px @ 300 DPI | ≤350 KB | Full face, front-facing Plain white or light-colored background without shadows | Official Source (Verified 2026-10-14) |
Note: FormFitKit is an independent utility and is not affiliated with any government agency, embassy, or exam board. Always verify the latest instructions on the official application portal before submitting.
Private Local Resizing in Your Browser
Resizing runs entirely inside your device browser using HTML5 Canvas and createImageBitmap. Your image bytes are never uploaded to a remote server.
Because the resized canvas is freshly encoded in memory, camera EXIF metadata (such as GPS coordinates and device serial numbers) is automatically stripped from the exported file.
Common Image Resizing Problems on Application Portals
Face looks stretched or squashed after typing width and height
When a portal asks for specific pixel dimensions and your phone photo has a different aspect ratio, stretching distorts proportions. Switch Resize Mode from "Stretch" to "Crop to Fill" and adjust the vertical focus slider so your head stays proportional.
Portal asks for "3.5 cm × 4.5 cm at 200 DPI" but rejects my image
Digital web forms validate pixel width and height rather than physical paper size. Select "cm" as the unit, enter 3.5 width, 4.5 height, and 200 DPI — the tool automatically exports a 276×354 px image.
Resized image has exact dimensions but fails the KB file size check
Standard image editors save JPEGs at a fixed quality level that may exceed 50 KB. Check the "Also compress output to maximum KB ceiling" box so the tool binary-searches JPEG quality at your target dimensions.
Cropping cuts off the edges of a signature or full document page
For signatures or document pages where every corner must remain visible, choose "Fit Inside + White Padding" instead of "Crop to Fill". The entire image is preserved and centered on a clean white background.
Frequently Asked Questions About Resizing Images
How do you convert centimeters or millimeters to pixels?
One inch equals exactly 25.4 millimeters (2.54 centimeters). Multiply the measurement in inches by the target DPI (dots per inch). For example, 35 mm × 45 mm at 300 DPI equals (35 ÷ 25.4 × 300) = 413 pixels wide by (45 ÷ 25.4 × 300) = 531 pixels high.
When should I use Crop to Fill versus Fit with White Padding?
Use Crop to Fill for portraits and ID photos so the image fills the entire frame without white bars on the sides. Use Fit with White Padding for signatures, thumb impressions, or rectangular certificates where cropping would cut off handwriting or text.
Does locking the aspect ratio prevent portal dimension errors?
Locking the aspect ratio keeps your original photo proportions when you type a new width or height. However, if an exam portal requires an exact fixed box like 200×230 pixels, leave the target at 200×230 px and use Crop to Fill so the exported file matches the portal dimensions while keeping your subject unstretched.
Why did my transparent PNG get a white background when saved as JPEG?
The JPEG specification does not support transparency. Many tools fill transparent pixels with black (#000000) by default, which ruins signatures and cutouts. FormFitKit always composites transparent regions onto pure white (#FFFFFF) before JPEG encoding.
Can I resize an image and keep it under 20 KB or 50 KB in one step?
Yes. Enable the "Also compress output to maximum KB ceiling" checkbox inside the resizer and enter your limit (such as 20 KB or 50 KB). The resizer renders your target pixel grid first and then runs the Exact-KB compression loop.
Related Image & Application Tools
- Exact-KB Image Compressor
Compress JPEG images to a strict kilobyte ceiling (20 KB, 50 KB, 100 KB, 200 KB).
- Passport & Visa Photo Maker
Align head height and eye lines with biometric guides for US, UK, Schengen, India, and Pakistan.
- Signature Resize & Cleanup
Remove grey camera shadows from handwritten signatures and resize to 140×60 px.
Verification & Documentation
- How to Reduce Image Size in KB for Online Application Forms
Understand how pixel dimensions and JPEG quality interact when portals enforce KB limits.
- DPI vs Pixels for Online Application Forms Explained
Learn why web portals check pixel counts and how to convert physical cm/mm specs accurately.