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:

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.

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:

FeatureChange the DPI value onlyResize to new pixel dimensions
Pixel width and heightUnchangedChanged
Detail in the imageUnchangedLess when shrinking; none added when enlarging
File sizeSame, or a few bytes more if a header is addedUsually much smaller or larger
Size when printedChanges: pixels ÷ DPIChanges with the pixel count
JPG re-compressedNoYes

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 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”.

Sources

  1. DPI and device-independent pixels, Microsoft Learn. Checked December 2026.
  2. JPEG File Interchange Format, version 1.02, hosted by W3C. Checked December 2026.
  3. Portable Network Graphics (PNG) Specification (Third Edition), pHYs chunk, W3C. Checked December 2026.
  4. CSS Values and Units Module Level 4, absolute lengths, W3C. Checked December 2026.

Browse all image guides