TheFileTools

What is DPI and when does it matter for images?

DPI matters when you print and not on screens or in upload forms. How to work out the pixels for a print size, and what changing DPI really does.

DPI stands for dots per inch. For an image file it says how many pixels should be printed on each inch of paper. It matters when you print. It does not matter on a screen, on a website or in an upload form, because those only look at how many pixels the picture has.

So if someone asks for "a 300 DPI image", the question to ask back is: at what printed size? An image has no fixed DPI of its own. It has a number of pixels, and the DPI follows from how large you print them.

DPI and PPI

Strictly, PPI (pixels per inch) describes the pixels of an image or a screen, and DPI describes the ink dots a printer puts on paper. In everyday use, and in most software, people say DPI for both. This article does the same.

The one formula you need

Pixels = inches × DPI. One inch is 25.4 mm, so for metric sizes: pixels = millimetres ÷ 25.4 × DPI.

At 300 DPI, the value commonly asked for when a print will be looked at up close:

  • 4 × 6 inches: 1200 × 1800 pixels.
  • 10 × 15 cm: 1181 × 1772 pixels.
  • A4, 210 × 297 mm: 2480 × 3508 pixels.
  • A passport photo of 35 × 45 mm: 413 × 531 pixels.

The formula also works backwards. A 12 megapixel photo of 4000 × 3000 pixels gives 4000 ÷ 300 = 13.3 inches by 3000 ÷ 300 = 10 inches at 300 DPI, which is about 34 × 25 cm. Printed twice as large, the same pixels are spread over more paper and you are at 150 DPI.

How much DPI a print needs

300 DPI is a convention for prints held in the hand, such as photos, brochures and books. It is not a law of nature. Large prints that are viewed from further away, such as posters and banners, are routinely printed at lower values and still look sharp from where people stand. If you are ordering from a print shop, use the value it states.

Where DPI does not matter

  • Screens: a picture of 1200 × 800 pixels takes up 1200 × 800 pixels, whether the file says 72 or 300 DPI.
  • Websites: browsers lay out pictures by their pixel size. The old advice to save web images "at 72 DPI" changes nothing about how they look or how fast they load.
  • Upload forms that state pixels: a form asking for 600 × 600 pixels and 240 KB is satisfied by those two things. Some forms mention a DPI value as well. If they do, set it, but the pixel dimensions are what usually decide whether the upload passes.
  • File size: the DPI value is a short note in the file header. Changing it does not make the file larger or smaller.

What changing the DPI value does and does not do

Image files can store a DPI value alongside the pixels. Print and layout programs read it to decide how large to place the picture on a page. That is all it does.

  • Changing only the value: the pixels stay the same and the picture is no sharper. A 600 × 600 picture marked as 300 DPI is placed at 2 inches wide. Marked as 72 DPI, the same picture is placed at 8.3 inches wide and looks coarse.
  • Resampling: some editors change the pixel count when you change the DPI, if an option with a name like "resample" is ticked. Going down discards pixels. Going up invents pixels in between, which makes the file bigger and the picture softer, not more detailed.

A small picture cannot be turned into a good large print by raising a number. What a sharp print needs is enough real pixels, which means starting from a larger original.

Getting the right pixels for a print size

  1. Open Resize image.
  2. Set Unit to cm, mm or in. A Resolution field appears, set to 300 DPI.
  3. Enter the width and height of the print.
  4. Choose your picture and download the result.

The tool multiplies size and resolution into pixels and writes the DPI value into JPG and PNG files, so print software reads the intended physical size. If your picture has fewer pixels than the print needs, it is enlarged, which adds pixels but no detail. The Resize image guide explains the settings. The picture is processed in your browser and is not uploaded.

For identity photos the calculation is already done: Passport photo 35 × 45 mm and Passport photo 2 × 2 inches are set to 300 DPI, and how to take a passport photo at home covers the photo itself.

When the file must be small as well

Print wants many pixels and upload forms want few bytes, and sometimes one file has to satisfy both. Keep the pixel dimensions the form or printer asks for and reduce the file size through the quality setting instead. Compress image does this for a size limit you type, and reducing image size without visible loss explains the trade-offs.