Change image DPI

Write a new DPI value into a JPG or PNG without resampling it. The width and height in pixels stay exactly as they were.

or drop an image hereYou can also paste with Ctrl+V or ⌘V. JPG or PNG files.

Your result will appear here. Nothing is uploaded: the file stays on your device.

How to change the DPI of an image

  1. Choose or drop a JPG or PNG file.
  2. Pick a value under Common values, or type any whole number up to 65535 in the DPI field.
  3. Read the line under the fields: the DPI stored now and the print size at the new value, in centimetres and inches.
  4. Press Set DPI and download. The file name gains the value, such as -300dpi.

What each setting does

Common values
72, 96, 150, 300 or 600 DPI. Choosing one fills the DPI field; it shows Custom when the field holds another number.
DPI
The value written into the file, from 1 to 65535, used both across and down. Decimals are rounded.

DPI does not change the pixels

A digital image is a grid of pixels. DPI is a note stored in the file that tells a printer how many of those pixels to place in each inch of paper. Change it and the grid stays the same: a 3000 × 2000 px photo is still 3000 × 2000 px and looks the same on screen.

What changes is the size on paper: print size = pixels ÷ DPI. At 300 DPI, 3000 px prints 10 inches (25.4 cm) wide. At 150 DPI the same file prints 20 inches wide, each pixel twice as large. A higher number adds no detail. If a print needs more pixels than the image has, change the dimensions with the image resizer instead.

Where the value is written

In a JPG, the tool sets the density in the JFIF header, adding one if the file has none, and updates any EXIF resolution tags in place so both agree. In a PNG, it writes a pHYs chunk in place of any older one. The compressed image data is copied unchanged.

Limits

  • Only JPG and PNG files are accepted.
  • This sets a stored value; it does not add or remove pixels.
  • Camera details stay in the file. To take them out, use Remove EXIF data.

Questions

How do I change a picture to 300 DPI?

Choose the file, pick 300 DPI under Common values and press Set DPI.

Does changing DPI reduce quality or file size?

No. The pixels are not decoded or saved again. The size changes by a few bytes at most, when a header has to be added.

How big will my image print?

Divide the pixels by the DPI to get inches. The line under the DPI field does this, and the pixels to inches converter works it out for any number.

Why does my image say no DPI is stored?

Many files carry no DPI value at all. Setting one here adds it.

Is my image uploaded?

No. Your browser writes the new value on your own device.