DPI vs PPI: what is the difference?
PPI (pixels per inch) is how many of an image's pixels go into one inch when it is printed. DPI (dots per inch) strictly describes the dots a printer or screen produces, but the name is widely used for the image setting too; the JPG file format itself labels it “dots per inch”. In everyday use, the DPI in your image file is its PPI.
Either way, that number does not change the picture: same pixels, same file size. It only sets how large the image prints.
Where the word “dots” comes from
Microsoft's developer documentation explains the history in one line: “The term dots derives from printing, where physical dots of ink are put onto paper.” It adds that for displays “it would be more accurate to say 96 pixels per logical inch, but the term DPI has stuck.”
So there are really three different things that get called DPI:
- Image resolution: a number stored in the image file saying how many pixels make an inch on paper. PPI is the precise name; most apps say DPI.
- Printer resolution: how finely a printer places its ink dots. This is a property of the printer, not of your file.
- Screen scaling: the logical DPI an operating system such as Windows uses to size text and buttons, like the 96 in Microsoft's example.
When a form or a print shop asks for a DPI for your image, it is the first one they are asking about: the other two belong to their printer and to your screen.
What the file actually stores
The value is a small field in the file's header, kept apart from the pixels.
- JPG files following the JFIF format hold a horizontal and vertical density with a unit. The JFIF document lists the units: “0: no units, X and Y specify the pixel aspect ratio”, “1: X and Y are dots per inch”, and “2: X and Y are dots per cm”. Here the format itself calls them dots, though they count image pixels.
- PNG files use an optional pHYs chunk, which the PNG specification says “specifies the intended pixel size or aspect ratio for display of the image”. It counts pixels per unit, and the only physical unit is the metre. So 300 DPI is stored as 300 ÷ 0.0254 ≈ 11,811 pixels per metre.
Both are optional, and many images carry no value at all.
Changing the DPI leaves the image alone
Because the number sits outside the pixel data, it can be rewritten without decoding or re-saving the picture. OurChange image DPI tool does exactly that: it rewrites the density in a JPG's header, or the pHYs chunk in a PNG, and copies the compressed image data unchanged.
That is the whole difference between the two kinds of change, side by side:
| Feature | Change the DPI value only | Resize to new pixel dimensions |
|---|---|---|
| Pixel width and height | Unchanged | Changed |
| Detail in the image | Unchanged | Less when shrinking; none added when enlarging |
| File size | Same, or a few bytes more if a header is added | Usually much smaller or larger |
| Size when printed | Changes: pixels ÷ DPI | Changes with the pixel count |
| JPG re-compressed | No | Yes |
Why the screen does not care
On a screen, an image is shown as a number of pixels, scaled by the device and the app. Web pages have their own fixed relationship that has nothing to do with your file: the W3C's CSS specification defines “1in = 2.54cm = 96px”, where a CSS pixel is a reference size of about 0.26 mm at arm's length, not one of your image's pixels.
That is why two copies of a photo, one marked 72 DPI and one marked 300 DPI, have nothing different to show on a screen: the pixels are the same. The number only comes into play when software has to turn pixels into a physical size: printing, or placing the image in a page layout measured in inches or centimetres.
Which one to change
- The pixel count is fine and you only need the stated print size or the stored number to match a request: change the DPI value with Change image DPI.
- You need a specific print size at a specific DPI: resample with Resize image in cm or in inches, which work out the pixels and write the DPI as well.
- You only want to know the numbers: the pixels to inches converter does the sums, and the image size checker shows a file's pixels and any stored DPI.
The arithmetic behind all of this, with tables of common print sizes, is inpixels, inches, cm and DPI explained.
Questions
Will a 72 DPI image look worse on screen than a 300 DPI one?
Not if the pixels are the same. In our test, switching a photo’s stored value to 300 DPI left all 4000 × 3000 pixels and every byte of image data as they were, so there is nothing different to display.
Someone asked me for a 300 DPI image. What do they need?
Ask for the print size too. With it, multiply inches by 300 to get the pixels needed, then make sure the image has at least that many and, if they check the stored value, set it to 300.
My file shows no DPI at all. Is it broken?
No. The value is optional in both JPG and PNG. The PNG specification says that without it, “the physical size of each pixel is unspecified”.