Image DPI Converter
Convert image DPI (Dots Per Inch) to 300, 150, or 72 DPI without pixel recompression. Calculate physical print sizes in inches, cm, and mm with quality ratings.
How to use Image DPI Converter
Adjust the physical print resolution (DPI / PPI) of your JPEG and PNG images and accurately calculate physical print dimensions in inches, centimeters, and millimeters. Whether you need 300 DPI for professional magazine and book printing, 150 DPI for posters and flyers, or 72 DPI for web use, our tool losslessly updates the JFIF APP0 and PNG pHYs density headers without altering a single pixel or introducing recompression artifacts. Includes an automated Print Quality Tier assessment.
- Upload a JPEG or PNG image (WebP is supported for print dimension calculations).
- Inspect the detected pixel dimensions and existing DPI embedded in the file's binary header.
- Choose a standard DPI preset (72, 96, 150, 300, 600 DPI) or enter a custom DPI value.
- Review the calculated physical print dimensions (Inches, Centimeters, Millimeters) and Print Quality Tier.
- Click 'Apply & Download Lossless Image' to download your photo with newly embedded DPI metadata.
Lossless JFIF APP0 & PNG pHYs Metadata Injection
Dots Per Inch (DPI) is physical metadata that instructs printers how densely to distribute pixels across physical paper. For JPEG images, the tool parses the file stream and updates the 18-byte JFIF APP0 segment (`0xFFE0`), setting the density units byte to `1` (dots per inch) and writing the 16-bit big-endian target DPI into the Xdensity and Ydensity fields. If no JFIF header exists, a valid 18-byte JFIF segment is injected directly after the SOI marker (`0xFFD8`). For PNG images, a standard `pHYs` (physical pixel dimensions) chunk is constructed by converting DPI into pixels-per-meter (`Math.round(dpi / 0.0254)`), generating the 9-byte payload and 4-byte CRC32 checksum, and injecting it before the first `IDAT` chunk. Pixel scanlines are 100% untouched.
- Lossless metadata only: Modifies density headers only; compressed pixel bitstreams remain bit-for-bit identical.
- Instant verification: Output binary is immediately re-parsed to verify that the target DPI was correctly embedded.
- Print quality rating: Automatically categorizes resolution into Commercial (300+), Standard (200+), Poster (150+), or Screen (<150).
- Metric and Imperial sizing: Generates exact physical dimensions in inches, centimeters, and millimeters.
- Zero server latency: All binary byte rewriting takes place instantly in your client browser.
All pixel processing, color space conversions, and image compression execute entirely inside your local web browser. No files, pixels, or document metadata are ever uploaded to any external server or saved in cloud storage.
Does changing DPI change the pixel dimensions or quality of my image?
No! DPI (Dots Per Inch) is purely metadata intended for printers and physical layout software. Changing the DPI does not add, remove, or interpolate any pixels. A 3000 × 2000 pixel image remains exactly 3000 × 2000 pixels. What changes is how large each pixel is printed on physical paper (e.g., 10 × 6.67 inches at 300 DPI vs. 41.67 × 27.78 inches at 72 DPI).
Why do commercial print shops insist on 300 DPI?
Human visual acuity cannot distinguish individual dots when printed at 300 dots per inch at standard reading distance (12–15 inches). 300 DPI has thus become the worldwide industry benchmark for razor-sharp photographic and text printing in magazines, books, brochures, and fine art prints.
How are physical print dimensions calculated from pixel resolution and DPI?
Print dimensions are calculated by dividing the pixel count by the DPI: Print Width (inches) = Pixel Width / DPI, and Print Height (inches) = Pixel Height / DPI. To convert to centimeters, multiply the inch dimensions by 2.54.
Why doesn't WebP format support lossless DPI metadata editing?
The WebP container format (developed primarily for efficient web transmission) does not define standard JFIF or pHYs density metadata headers. Web browsers and operating systems treat all WebP images as 72/96 DPI screen assets. For WebP, our tool provides full physical print dimension and quality calculations.
How does the tool modify DPI without recompressing image pixels?
For JPEG, the tool parses the binary stream and updates the 18-byte JFIF APP0 segment (`0xFFE0`), writing the target DPI into the Xdensity and Ydensity fields. For PNG, a standard `pHYs` chunk is constructed (converting DPI into pixels-per-meter) and injected before the image data. The compressed pixel scanlines are never decoded, compressed, or altered.