Skip to content
Jellykit

Image DPI Changer for JPEG and PNG

Set the DPI recorded in a JPEG or PNG file, such as 300 for print, without re-encoding or changing a single pixel.

  • Runs on your device
Loading tool

About Image DPI Changer for JPEG and PNG

A print shop or a form asks for a 300 DPI image, and your photo says 72. The DPI is only a note in the file that tells software how large to print the pixels; changing it does not add or remove detail. This tool rewrites that note and leaves the picture data exactly as it was, so there is no quality loss and the file size barely changes.

For JPEG it updates the JFIF header and the EXIF resolution fields, adding a JFIF header when the file has neither. For PNG it writes the pHYs chunk. Each file shows the DPI it records now before you start, and you can do a whole batch at once.

How it works

  1. The file is read on this device and its header blocks are walked one by one: JPEG segments up to the start of the picture data, or PNG chunks up to the first image data.
  2. JPEG: the JFIF density is set in dots per inch, and EXIF XResolution, YResolution and ResolutionUnit are rewritten in place where the file has them. A file with neither gets a small JFIF header.
  3. PNG: an existing pHYs chunk is rewritten with a fresh checksum, or a new one is inserted before the image data. PNG counts pixels per metre, so 300 DPI is stored as 11,811.
  4. Everything else in the file, the compressed picture included, is copied byte for byte.

Questions

Does changing the DPI make my image sharper or bigger?

No. The pixel width and height stay the same and no detail is added. The DPI only decides how large the image prints: 3,000 pixels at 300 DPI print 10 inches wide, at 150 DPI 20 inches. To change the pixel count, resize the image instead.

Will the file lose quality?

No. The picture is not decoded or re-compressed. Only the few bytes that hold the resolution are changed, or about 20 bytes are added when the file had no resolution record.

Which DPI should I choose?

300 is the usual figure for photos and print work, 600 for line art and scans of text, 72 or 96 for images meant only for screens. Any whole number from 1 to 65,535 can be stored.

Why does another program still show the old DPI?

Some programs read only one of the records. This tool rewrites the JFIF and EXIF records a JPEG already has, but does not add EXIF resolution fields to a file whose EXIF block lacks them; a program that reads only EXIF will then show its own default.

Which formats and sizes does it take?

JPEG and PNG files up to 200 MB each. Other formats are refused with a message, because their resolution is stored differently or not at all.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.