DPI Converter and Print Size Calculator
Inspect existing DPI density tags inside any JPG, PNG, or WebP file, losslessly rewrite the file header to 72, 96, 150, 200, 300, or 600 DPI without re-encoding pixels, or resample pixel dimensions for a target physical print size in inches, centimetres, or millimetres.
Loading dpi converter…
Your image is read and updated locally in this browser tab. Metadata-only DPI updates rewrite binary JFIF, EXIF, or PNG pHYs headers directly in device memory with zero server uploads.
How to check and change image DPI or calculate print size
- 1Drop a JPG, PNG, or WebP image into the workbench (or use the standalone Pixel / Inch / CM / MM Print Calculator below even without uploading a file).
- 2Inspect the Detected Image Summary to see your file's exact pixel width and height, its currently stored DPI header (such as 72 DPI, 96 DPI, 300 DPI, or 'Not embedded'), and the metadata source (JFIF APP0, EXIF IFD0, or PNG pHYs).
- 3Choose a target DPI preset (72, 96, 150, 200, 300, or 600 DPI) or type a custom DPI value to see the resulting physical print size in inches, centimetres, and millimetres immediately.
- 4Select your processing mode: choose Mode A (Change DPI Metadata Only — Lossless) to update the embedded DPI tag while keeping the exact same pixel dimensions and image quality, or choose Mode B (Resample Pixels for Target Print Size) if you need the file's pixel width and height scaled to match a specific physical print measurement at your target DPI.
- 5Click Download Updated Image to save your file with genuine binary DPI metadata embedded in its header, and verify that the readout confirms your new DPI.
Key features of the DPI converter and print calculator
Lossless binary DPI metadata injection (Mode A)
Rewrites JPEG APP0 JFIF density, EXIF XResolution/YResolution rationals, PNG pHYs pixels-per-meter chunks (with verified IEEE 802.3 CRC-32), and WebP EXIF headers without re-encoding a single pixel.
Print-size pixel resampling (Mode B)
Calculates exact target pixel dimensions (Inches × DPI) for standard print sizes (2×2 in passport, 35×45 mm ID, 4×6 in, 5×7 in, 8×10 in, A4, US Letter) and resamples the image when needed.
Bidirectional Px / Inch / CM / MM converter (Mode C)
Converts interactively between pixels, inches, centimetres (1 in = 2.54 cm), and millimetres (1 in = 25.4 mm) at any DPI density.
Low-resolution print & upscaling warnings
Alerts you automatically when a source image lacks enough native pixels to print sharply at your requested physical dimensions and DPI.
Practical use cases for changing DPI and calculating print sizes
- Updating a photo or scanned signature header to 300 DPI or 200 DPI when an online exam or visa portal rejects uploads whose JFIF/EXIF header lists 72 or 96 DPI.
- Preparing book illustrations, academic journal figures, and print-on-demand artwork where commercial printers require a verified 300 DPI or 600 DPI header.
- Checking how large a digital camera photo (for example, 4000 × 3000 px) can be printed on paper at 300 DPI (13.33 × 10.00 inches / 33.87 × 25.40 cm) before softness becomes visible.
- Converting physical document requirements such as 3.5 × 4.5 cm or 50 × 70 mm into exact pixel targets before cropping in Passport Photo Resizer or Resize Image.
- Inspecting whether a PNG graphic contains a valid `pHYs` density chunk so desktop layout programs (InDesign, Word, Affinity Publisher) place it at the intended physical width on the page.
How each image format stores DPI metadata internally
Different image formats store physical resolution in different binary structures. A tool that merely draws an image onto an HTML5 Canvas and calls `canvas.toBlob()` actually strips all DPI metadata, leaving the downloaded file with no resolution tag (which operating systems default to 72 or 96 DPI). Our engine writes directly into the container's native binary resolution structure:
- JPEG (.jpg / .jpeg): Writes horizontal and vertical dots-per-inch into the 18-byte APP0 JFIF header (units = 1) and updates existing APP1 EXIF IFD0 XResolution (0x011A) and YResolution (0x011B) rational tags.
- PNG (.png): Converts DPI to pixels per meter (`ppm = round(DPI / 0.0254)`, so 300 DPI = 11,811 pixels/meter) and writes a 9-byte `pHYs` chunk (`unit = 1`) with a freshly computed 32-bit CRC checksum.
- WebP (.webp): Embeds a RIFF `EXIF` chunk containing TIFF IFD0 `XResolution`, `YResolution`, and `ResolutionUnit = 2` (inches) and sets the VP8X EXIF presence flag.
DPI metadata vs pixel dimensions: what actually changes?
DPI stands for Dots Per Inch (often used interchangeably with PPI, Pixels Per Inch, in digital files). A digital image stored on disk consists of a grid of pixels—for example, 1200 pixels wide by 1800 pixels tall—plus an optional metadata number in the file header that tells a printer or page-layout program how many pixels should be packed into each linear inch of paper.
Understanding the difference between changing DPI metadata (Mode A) and resampling pixels (Mode B) prevents two common mistakes. First, if your image is already 600 × 600 pixels (which equals 2 × 2 inches at 300 DPI) and a portal complains that the file is 72 DPI, you should use Mode A (Metadata Only): the pixels remain 600 × 600 with zero quality loss, and the header now reads 300 DPI (changing its declared print size from 8.33 × 8.33 inches down to 2.00 × 2.00 inches). Second, if your image is only 200 × 200 pixels and you need a sharp 2 × 2 inch print at 300 DPI, changing the metadata tag alone will only produce a tiny 0.67 × 0.67 inch print; you would need 600 × 600 pixels, and enlarging a 200 × 200 image to 600 × 600 via resampling cannot invent missing optical detail.
Exact formulas relating pixels, DPI, inches, cm, and mm
Physical print width in inches equals Pixel Width ÷ DPI (`W_in = W_px / DPI`). Because 1 international inch is defined as exactly 2.54 centimetres (25.4 millimetres), Width in cm equals `(W_px / DPI) × 2.54`, and Width in mm equals `(W_px / DPI) × 25.4`. Conversely, to find the required pixel count for a physical print size in millimetres, compute `W_px = round((W_mm / 25.4) × DPI)`.
Why web browsers ignore DPI metadata on screen
When an `<img>` element renders on a webpage, CSS layout uses the image's pixel dimensions (`width` and `height`), completely ignoring the JFIF or PNG pHYs DPI header. A 1200 × 800 px photo at 72 DPI and the same 1200 × 800 px photo at 300 DPI occupy the exact same space in a web browser and have virtually identical file sizes (differing by at most 9 to 21 header bytes).
Worked DPI and print size calculation examples
The examples below illustrate exact conversions between pixel dimensions, DPI settings, and physical print sizes:
Example 1: Changing a 1200 × 1800 px Photo from 72 DPI to 300 DPI (Metadata Only)
Preparing a portrait for a 4 × 6 inch photo lab print without altering pixels.
- At 72 DPI: 1200 ÷ 72 = 16.67 in wide × 1800 ÷ 72 = 25.00 in tall (42.33 × 63.50 cm).
- At 300 DPI (Mode A): Pixels stay 1200 × 1800 px · Print size becomes 4.00 × 6.00 in (10.16 × 15.24 cm / 101.6 × 152.4 mm).
- File size change: 0 bytes of pixel re-encoding; JFIF APP0 density bytes updated in place.
Example 2: Calculating Pixels for a 35 × 45 mm Biometric Passport Photo at 300 DPI vs 600 DPI
Converting metric millimetre specifications into exact pixel dimensions.
- Convert 35 × 45 mm to inches: 35 ÷ 25.4 = 1.3780 in wide · 45 ÷ 25.4 = 1.7717 in tall.
- At 300 DPI: round(1.3780 × 300) = 413 px wide × round(1.7717 × 300) = 531 px tall.
- At 600 DPI: round(1.3780 × 600) = 827 px wide × round(1.7717 × 600) = 1063 px tall.
Example 3: Full A4 Document Page (210 × 297 mm) Across 150, 300, and 600 DPI
Choosing the right scanner and PDF image resolution for document archiving.
- A4 in inches: 210 ÷ 25.4 = 8.2677 in × 297 ÷ 25.4 = 11.6929 in.
- At 150 DPI (fast email scan): 1240 × 1754 px (2.17 megapixels).
- At 300 DPI (standard office print & OCR): 2480 × 3508 px (8.70 megapixels).
- At 600 DPI (fine line art & archive): 4961 × 7016 px (34.81 megapixels).
Limitations of changing DPI in digital images
- Changing DPI metadata never increases image sharpness: Updating a blurry 300 × 300 px thumbnail from 72 DPI to 300 DPI in Mode A only tells a printer to print it at 1 × 1 inch instead of 4.17 × 4.17 inches; it does not add detail.
- Upscaling pixels in Mode B cannot recover optical detail: If you resample a small 400 × 600 px web image up to 1200 × 1800 px for a 4 × 6 inch 300 DPI print, the browser interpolates smooth transitions between pixels, but fine textures remain soft.
- Some social networks strip DPI headers on upload: Platforms like Instagram, Facebook, and X discard JFIF and PNG pHYs headers when re-encoding uploads because screen layouts only use pixel dimensions.
- PNG stores density in pixels per meter: Because the PNG specification stores integer pixels per meter (`pHYs`), 300 DPI is stored as `11811` pixels/meter (`11811 × 0.0254 = 299.9994 DPI`), which image editors round and display as 300 DPI.
What happens to your file
When you select an image, the browser reads its binary byte stream locally to parse JPEG APP0 JFIF density, EXIF IFD0 resolution tags, or PNG pHYs pixels-per-meter chunks. In Metadata-Only mode, the tool updates those header bytes directly without recompressing the image pixels. In Resample mode, an in-memory HTML5 Canvas scales the pixel grid before injecting the new DPI header. No file is ever transmitted to a remote server.
Supports JPG, JPEG, PNG, and WebP files up to 50 MB. Changing DPI metadata alone alters physical print ruler dimensions without adding pixel detail.
Full details are in the Privacy Policy.
Troubleshooting DPI conversion questions
Why did my file size stay exactly the same after changing from 72 DPI to 300 DPI?
In Mode A (Change DPI Metadata Only), the tool rewrites the 2-byte horizontal and vertical density integers inside the JPEG header (or the 9-byte PNG pHYs chunk) without touching the compressed pixel stream. Because the number of pixels has not changed, the file size remains virtually identical.
Windows File Explorer Properties still shows 96 DPI on my PNG—why?
Verify that you downloaded the file from this tool rather than right-clicking the preview image. Also note that older Windows shell extensions only display EXIF DPI on JPEGs while ignoring PNG pHYs chunks; you can drop the downloaded PNG back into this tool or open it in Photoshop/GIMP/Preview to confirm the embedded 11,811 ppm (300 DPI) pHYs chunk.
How do I change DPI AND keep my file under 50 KB or 100 KB?
If you need to resize pixels, compress below a strict kilobyte ceiling, and embed 300 DPI in one step, use the Image Upload Compliance Checker or compress your image first in the Image Compressor and then run Mode A (Metadata Only) here to set the 300 DPI tag without changing the compressed byte size.
If your portal rejected an upload for kilobyte limits, dimensions, or format alongside 300 DPI metadata, diagnose and repair the file in Image Upload Rejection Fixer.
Frequently asked questions
Does changing an image from 72 DPI to 300 DPI make it higher quality?
Changing the DPI metadata number alone (Mode A) does not alter the pixels or visual quality on a screen; instead, it instructs a printer to pack the existing pixels closer together (at 300 pixels per linear inch instead of 72), resulting in a smaller, denser, and sharper physical print.
When should I use Metadata-Only mode vs Resample Pixels mode?
Use Mode A (Metadata Only) when your image already has the right pixel dimensions (or you want to preserve 100% of its current pixels and file size) and you simply need the file header to state 300 DPI. Use Mode B (Resample Pixels) when you have a specific physical print size in inches, cm, or mm (such as a 4 × 6 in postcard at 300 DPI = 1200 × 1800 px) and need the image's actual pixel width and height scaled to match that print target.
How many pixels is 300 DPI for a 2 × 2 inch passport photo?
Multiply the physical dimensions in inches by 300 DPI: 2 inches × 300 DPI = 600 pixels wide by 600 pixels tall (600 × 600 px).
How do I convert centimetres or millimetres to pixels at 300 DPI?
Divide centimetres by 2.54 (or millimetres by 25.4) to get inches, then multiply by 300. For example, 3.5 cm × 4.5 cm equals (3.5 ÷ 2.54) × 300 = 413 pixels wide by (4.5 ÷ 2.54) × 300 = 531 pixels tall.
Are my images kept private when changing DPI in this tool?
Yes. All binary header inspection, DPI tag writing, and pixel calculations run locally in your browser tab without uploading your image to any server. Standard webpage assets and consented analytics or publisher scripts load over the network separately, and once the page is open in your tab, DPI conversions execute in local device memory.
Why does my downloaded camera or web photo say 'Not embedded' for current DPI?
Many smartphones, screenshot tools, and web image optimizers omit the optional JFIF density or PNG pHYs chunk to save bytes. When no tag is present, desktop software assumes a default of 72 DPI (macOS) or 96 DPI (Windows). Using this tool embeds an explicit resolution header into the file.
Can I set a custom DPI value other than 72, 96, 150, 200, 300, or 600?
Yes. While the quick-select buttons cover the six industry-standard screen, office scanner, photo print, and prepress densities, you can type any custom integer between 10 and 2,400 DPI.
Does changing DPI affect how an image looks on a website?
No. Web browsers render images strictly according to their pixel dimensions and CSS styling rules, ignoring embedded DPI metadata. Only physical print layouts, PDF generators, and portal validators that inspect file headers use the DPI value.
When not to use this
Do not change a 72 DPI web thumbnail to 300 DPI expecting it to look sharper on a website or monitor; web browsers ignore DPI headers completely and only render pixel width and height.
Avoid using Metadata-Only mode when a print shop tells you that your image lacks enough pixels for a large poster—rewriting the header to 300 DPI without enough native pixels only shrinks the declared physical print dimensions in inches.