MyImageCompressor
Back to All Guides
Formats & Diagnostics5 min readUpdated 2026-11-18

How to Convert Any Photo to 300 DPI JPG or PNG Online Without Changing Quality

Smartphone cameras save images with 72 DPI or 96 DPI headers, triggering rejections on strict passport, university, and print forms. Learn how pixel grid math and genuine 300 DPI header injection work.

Quick Summary

To convert a photo to 300 DPI online without blur, set your pixel dimensions to match physical print size (for example, 413×531 px for 35×45mm or 600×600 px for 2×2 inches) and enable "Embed genuine 300 DPI metadata" inside our Passport Maker or Signature Compressor so true 300×300 DPI bytes are written into the JPEG JFIF APP0 or PNG pHYs header.

Why Smartphone Photos Read as 72 DPI—Even at 4000 Pixels Wide

Browsers and mobile cameras default to tagging exported JPG and PNG headers at 72 DPI or 96 DPI regardless of how many million pixels the sensor captured. When a strict government portal, print shop, or competitive exam script parses the file header, it sees "72 DPI" and rejects the upload.

Adding genuine 300 DPI requires two things working together: enough pixel resolution for the intended physical dimensions (width_inches × 300 = pixels) AND writing the 300 DPI density tag inside the binary JPEG JFIF APP0 or PNG pHYs chunk.

300 DPI Physical Print Size to Exact Pixel Conversion Chart

Use these exact pixel grids when resizing documents, passport photos, or print certificates for 300 DPI validation:

Physical Print / Portal SizeExact 300 DPI PixelsRecommended Safe KBBest Tool Mode
35 × 45 mm (EU, Schengen, India)413 × 531 px45 – 48 KB JPGPassport Maker (35×45mm)
2 × 2 inches (US Visa DS-160)600 × 600 px150 – 180 KB JPGPassport Maker (DS-160)
50 × 70 mm (Canada IRCC PR)420 × 540 px (min) / 590 × 826 px120 – 180 KB JPGPassport Maker (Canada)
UK Digital Passport Box (4:5)600 × 750 px150 – 190 KB JPGPassport Maker (UK)
Standard 4 × 6 inch Print1200 × 1800 px350 – 900 KB JPG/PNGResize Image px

3 Steps to Export a Verified 300 DPI JPG Locally in Your Browser

Unlike cloud converters that upload identity photos to remote servers, MyImageCompressor injects genuine 300 DPI JFIF/pHYs metadata directly in your browser memory:

  • Open Passport & Visa Maker (for portraits) or Signature Clean Ink (for scanned signatures) and drop or paste (Ctrl+V) your photo.
  • Verify that the "Embed genuine 300 DPI metadata" checkbox is enabled—this patches the binary JFIF APP0 density markers (units=1, 300×300) on JPG or calculates CRC32 on the PNG pHYs chunk (11,811 pixels/meter).
  • Download your file and verify both 300 DPI print size and exact binary KB weight in our Image Size Checker.

Frequently Asked Questions About This Guide

Standard HTML5 Canvas strips DPI metadata and resets outputs to 72/96 DPI. MyImageCompressor solves this by running a dedicated binary patcher that writes genuine 300×300 DPI JFIF APP0 headers for JPG and pHYs chunks with valid CRC32 checksums for PNG.