How Physical Units (CM, MM, Inches) Convert to Digital Pixels

Understanding Pixels vs. Centimeters & DPI Resolution

Digital screens display images using discrete dots called pixels (px), whereas passport agencies, exam boards, and print shops specify dimensions in physical units like centimeters (cm), millimeters (mm), or inches (in). Bridging the gap between physical measurements and digital pixels requires a density factor known as DPI (Dots Per Inch) or PPI (Pixels Per Inch). For example, a 3.5 × 4.5 cm passport photograph scanned at 300 DPI requires far more pixels than the same physical size viewed on a 96 DPI computer monitor. PureWebKits performs this conversion locally in your browser using bicubic canvas interpolation so your resized photos stay crisp, proportional, and completely private.

How to Resize an Image in 3 Easy Steps

  1. Upload Your Photo: Drag and drop any .jpg, .png, or .webp image into the box above.
  2. Select Units & Dimensions: Choose Pixels (px), Centimeters (cm), Millimeters (mm), or Inches (in), set your DPI, and enter your desired width or height (or click a quick preset).
  3. Pick Format & Download: Choose .JPEG, .PNG, or .WEBP, verify the live preview and file size, and click Download Resized Image.

Centimeters & Inches to Pixels Conversion Formula + Worked Example

Because 1 inch = 2.54 centimeters = 25.4 millimeters, our resizer calculates exact pixel dimensions from any physical unit using these standard formulas:

Pixels = round( Inches × DPI )  |  Pixels = round( (Centimeters × DPI) / 2.54 )

Worked Example: Suppose an online visa or exam application requires a 3.5 cm × 4.5 cm photograph at 300 DPI, and your camera photo is currently 3000 × 4000 pixels.

Target Width in pixels = (3.5 × 300) / 2.54 = 1050 / 2.54 = 413 pixels.

Target Height in pixels = (4.5 × 300) / 2.54 = 1350 / 2.54 = 531 pixels.

Entering 3.5 cm × 4.5 cm at 300 DPI automatically scales your photo to 413 × 531 px, ready for immediate upload or printing.

Standard Image Dimensions Chart (Passport, Social Media & Web Presets)

Use this quick reference chart to find the exact pixel and physical dimensions required for global passports, social networks, and web publishing.

Platform / Document Type Physical / Aspect Spec Exact Pixel Dimensions Recommended Format
US Passport & Visa Photo 2 × 2 inches (300 DPI) 600 × 600 px .JPEG
UK, Europe & India Passport Photo 3.5 × 4.5 cm (300 DPI) 413 × 531 px .JPEG
SSC / UPSC Online Exam Photo 3.5 × 4.5 cm (150–200 DPI) 200 × 230 px .JPEG
PAN Card Photo (NSDL / UTIITSL) 2.5 × 3.5 cm (200 DPI) 213 × 213 px .JPEG
YouTube Video Thumbnail 16:9 Widescreen 1280 × 720 px .JPEG / .PNG
YouTube Channel Banner 16:9 Desktop/TV 2560 × 1440 px .JPEG / .PNG
Instagram Square Post 1:1 Square 1080 × 1080 px .JPEG
Instagram Portrait / Reel Cover 4:5 / 9:16 Vertical 1080 × 1350 px / 1080 × 1920 px .JPEG
LinkedIn Profile Photo 1:1 Square 400 × 400 px .JPEG / .PNG
LinkedIn Personal Cover Banner 4:1 Wide 1584 × 396 px .PNG / .JPEG
X (Twitter) Header Banner 3:1 Wide 1500 × 500 px .JPEG / .PNG
Facebook Shared Link / OG Image 1.91:1 Landscape 1200 × 630 px .JPEG / .WEBP
Shopify / Amazon Product Main Image 1:1 Zoom-Ready 2000 × 2000 px .JPEG / .PNG
WordPress Featured Blog Image 16:9 / 1.91:1 1200 × 675 px .WEBP / .JPEG
4 × 6 Inch Standard Photo Print 4 × 6 inches (300 DPI) 1200 × 1800 px .JPEG
Full HD Desktop Wallpaper 16:9 Full HD 1920 × 1080 px .JPEG / .PNG

Need to compress your resized image to an exact KB target, adjust signature dimensions, or convert formats? Try our companion browser tools:

Frequently Asked Questions

Select Centimeters (cm) or Inches (in) from the Measurement Unit dropdown, choose your required print resolution (such as 300 DPI for passport photos or 200 DPI for online exam portals), and enter your target width and height. The tool automatically computes the exact pixel dimensions needed.
When the Aspect Ratio Lock icon is active (blue), typing a new width automatically updates the height proportionally (and vice versa) so your portrait, product photo, or banner never looks stretched or squished. Click the lock icon if you deliberately want independent custom dimensions.
You can lower the Image Quality slider when exporting as .JPEG to shrink the file size right here, or pass your newly resized image into our Image Compressor to Exact KB tool to hit an exact KB threshold automatically.
Choose .JPEG for photographs, passport photos, and government portals; choose .PNG for logos, screenshots, or graphics that require a transparent background; and choose .WEBP for fast-loading modern websites and blogs.
Never. All unit conversions, canvas scaling, and image encoding execute 100% locally inside your browser using JavaScript. Your personal photos and ID scans never leave your device.