All posts
Guides 7 min readOctober 31, 2026

DPI, PPI and Pixels: Image Size for Print and Screen

By , Founder of Filoshi

Why "72 DPI for web" is a myth, how many pixels a print needs, and what the DPI number in a file really changes, with the math for print sizes.

Get Filoshi · $29The file converter that works on your PC. 1,841 tested conversions, nothing uploaded.

On a screen, only an image's pixel dimensions matter. The DPI or PPI number stored in a file is a printing instruction: pixels divided by PPI gives the print size in inches. A 3000 by 2000 pixel photo at 300 PPI prints 10 by 6.67 inches, and the same photo tagged 72 PPI would print 41.7 by 27.8 inches, with exactly the same pixels in both cases.

Pixels, PPI and DPI: three words, three things

  • Pixels are the actual dots of color in the image. A photo that is 4000 by 3000 has 12 million of them. This number is the real size of the picture.
  • PPI (pixels per inch) says how many of those image pixels to place in each inch when the picture is printed or shown at a physical size.
  • DPI (dots per inch) is properly a printer's measure: how many ink dots it lays down per inch. A printer can use many dots to render one pixel.

In everyday talk, people say DPI for all of it, and most software labels the setting "DPI" even when it means PPI. That is fine as long as you know what you are changing.

The number is stored in the file's metadata. In Exif, the standard used by cameras and many image files, it lives in the XResolution and YResolution tags, with a ResolutionUnit tag that says whether the unit is inches or centimeters. You can see the tag names in the ExifTool Exif tag list, and the Exif standard itself is maintained through CIPA. It is a label. It does not add or remove a pixel.

The "72 DPI for web" myth

You will often read that web images must be 72 DPI. They do not. A browser ignores the DPI tag when it displays an image; it uses the pixel dimensions. A 1200 by 800 pixel image takes up the same space on a page whether it is tagged 72, 300 or 1000 DPI.

The number 72 is a leftover from early Macintosh screens. On the web, lengths are measured in CSS pixels, and CSS defines the absolute units in terms of a fixed ratio: CSS Values and Units says one inch is 96 CSS pixels. A CSS pixel is also not necessarily one screen dot. On a high-density display, one CSS pixel can be two or three physical pixels. Browsers report the ratio as window.devicePixelRatio, which MDN documents on its page for that property.

So the useful question for the web is how many pixels to export, not what DPI to tag.

How many pixels a print needs

For print, the formula is simple:

pixels needed = print size in inches x PPI

Photo labs and photographers commonly aim for about 300 PPI for prints held in the hand. That is a convention, not a law; large prints viewed from a distance, like posters, are often fine at lower numbers. At 300 PPI:

Print sizePixels needed
4 x 6 in1200 x 1800
5 x 7 in1500 x 2100
8 x 10 in2400 x 3000
11 x 14 in3300 x 4200
A4 (8.27 x 11.69 in)about 2480 x 3508

The same math runs backward. A 6000 by 4000 pixel photo at 300 PPI prints 20 by 13.3 inches. That is why a modern phone or camera photo has plenty of pixels for most prints. The common failure is the other direction: a small image saved from a web page, at maybe 800 pixels wide, cannot make a sharp 8 by 10.

Changing DPI vs resampling

These two actions get mixed up, and the difference is the whole topic.

  • Changing the DPI number alone edits the metadata. The pixels are untouched, so quality does not change. The picture just prints bigger or smaller.
  • Resampling changes the pixel dimensions. Making an image smaller discards pixels. Making it larger makes the software invent new ones by averaging neighbors, which adds no detail, so an upscaled image looks soft.

When a program offers "Resample image" next to a DPI field, unticking it changes only the label. Ticking it changes the pixels. If you need an image to be 300 DPI for a printer, and it is 800 pixels wide, tagging it 300 gives you a 2.7 inch print. Making it a larger print means finding a higher resolution original.

The Filoshi file viewer resizes pictures by pixel dimensions. I have not verified that it sets or writes a DPI value, so I will not claim that it does, and it does not upscale or enhance detail.

Sizing for the web

For a web page, the target is simple: the width the image displays at, multiplied by the device pixel ratio of your visitors. An image shown 600 CSS pixels wide looks sharp on a standard screen at 600 pixels and on a 2x high-density screen at 1200 pixels. Many sites ship two or three sizes and let the browser pick. Anything larger than the biggest display size just wastes bandwidth. Which format to use, and how to choose between JPEG, WebP and AVIF, is covered in the best image format for websites.

Scans and PDFs

Scanners work in DPI. A page scanned at 300 DPI becomes about 2480 by 3508 pixels for A4, which is a common setting for documents that must stay readable. Higher numbers give bigger files and rarely help ordinary text.

When an image goes into a PDF, the page size is normally worked out from the pixels and the DPI together. A 2480 by 3508 image at 300 DPI becomes an A4 page; the same image at 72 DPI would become a page of 34 by 49 inches. Behavior differs between tools, so check the page size in a PDF viewer after you convert. If you convert a picture into a PDF, you can use JPG to PDF or PNG to PDF. Both are tested in Filoshi. Scans saved as TIFF can be turned into JPG with TIFF to JPG. For the different kinds of PDF, see scanned vs text PDF.

Going the other direction, Filoshi rasterizes a PDF or an SVG into a picture at 300 DPI by default. That is a setting in how the app makes the picture, not an editable DPI tag on your files.

If you shoot RAW and care about print quality, RAW vs JPEG for photographers covers what to keep.

I make Filoshi, so weigh my take on it accordingly.

Frequently asked questions

Does changing DPI reduce quality?

No. Changing only the DPI number edits metadata and leaves every pixel as it was, so the picture is identical. Quality changes when you resample, meaning you change the pixel dimensions. Reducing pixels discards detail, and enlarging them invents pixels without adding real detail.

What DPI should I use for printing photos?

About 300 PPI is the common target for prints viewed up close, which means 2400 by 3000 pixels for an 8 by 10 inch print. Large posters viewed from a distance often look fine with fewer pixels per inch. Check what your print service asks for, because they usually state it.

Is 72 DPI right for the web?

It does no harm, but it is not a requirement. Browsers ignore the DPI tag and use the pixel dimensions. What matters is exporting enough pixels for the size the image displays at, including high-density screens, and compressing the file sensibly.

How do I make an image 300 DPI?

Setting the number to 300 is easy in any editor, but it only changes the print size. To get a sharp print at a given size, the image needs the pixels: width in inches times 300. If it has fewer, you need a larger original, since enlarging adds no real detail.

dpi ppi resolution print images

Ready to convert files privately?

1,841 tested conversions. No uploads. No accounts. Runs entirely on your machine.

Get Filoshi · $29