Change the DPI of an image
Drop in a PNG or JPG, choose the resolution you have been asked for, and download it. The image data is left alone, so nothing is re-compressed.
How to use it#
- Drop a PNG or JPG onto the box above, or click it to pick one.
- Set the resolution with the slider or the box, or take one of the presets.
- Check the printed size, in inches and centimetres, which is what the number actually decides.
- Download the file, which keeps the same pixels at the new DPI.
DPI does not change the image, only its printed size#
An image is a grid of pixels, and that grid is the same whether the file says 72 DPI or 300. What the number does is tell a printer or a layout program how tightly to pack those pixels on paper: at 300 dots per inch, a 2400 pixel wide image covers eight inches, and at 72 it covers a little over thirty three.
Nothing about the picture changes, which is why setting the DPI takes a few milliseconds and why the file you get back is within a few bytes of the one you put in. On a screen the number is ignored entirely, so a 300 DPI file and a 72 DPI file of the same image are indistinguishable in a browser.
Why 300 keeps being the number you are asked for#
Three hundred dots per inch is roughly where printed detail stops being visible at normal reading distance, so it became the default request from journals, print shops, conference organisers, and anyone laying out a page. Newspapers often accept 200, fine art printing sometimes wants 600, and a poster read from across a room can look fine at 150 because nobody stands close enough for it to matter.
Screens do not use the number at all. A photograph for a website is measured in pixels, and its DPI field is ignored by every browser, so a request for a 300 DPI image for a web page is almost always somebody asking for something larger and reaching for the wrong word.
Setting 300 DPI does not add detail that was not there#
If a print shop asks for an image eight inches wide at 300 DPI, they are asking for 2400 pixels. Taking a 600 pixel image and setting it to 300 DPI produces a file that prints at two inches, which is correct and also not what anyone wanted. The number went up and the picture stayed small.
Work out what you need before changing anything: multiply the printed size in inches by the DPI. Eight by ten inches at 300 needs 2400 by 3000 pixels. If your file is smaller than that, no DPI setting will fix it, and enlarging it in an editor invents detail rather than recovering it. Start from the largest original you have.
Where the number is stored, and why some programs disagree#
A PNG keeps its resolution in a pHYs chunk, as pixels per metre, which is why a value of 300 DPI is written as 11811 and read back out again. A JPEG usually keeps it in the JFIF header at the front of the file, and a photograph from a camera or a phone often carries a second copy in its EXIF data.
When those two disagree, which program you open the file in decides what you see. Both are written here whenever both are present, so the file does not contradict itself. If a program still shows the old value, it has almost certainly cached a thumbnail rather than reread the file.
Frequently asked questions#
Does this resample or resize the image?
#
No. Only the few header bytes that record the resolution are rewritten, and the compressed image data is copied across untouched. A JPEG is not re-encoded, so it loses no further quality, and a PNG comes back with the same pixels it went in with. The pixel dimensions shown on screen never change.
How do I check the DPI of an image?
#
Drop it in. The DPI it already records shows under DPI before, beside its pixel dimensions, and nothing is changed until you download. A file that records no DPI at all says so, because many programs then fall back on 72 when they print it.
Is DPI the same as PPI?
#
For this purpose, yes. PPI, pixels per inch, is the more exact name for what an image file stores, and DPI, dots per inch, strictly describes the ink dots a printer lays down. Forms, print shops, and most software use DPI for both, so a request for 300 PPI and one for 300 DPI want the same file.
Why does my image still say 72 DPI somewhere?
#
Most often the program is showing a cached thumbnail rather than rereading the file, so closing and reopening it sorts it out. The other cause is a JPEG that carried its resolution in two places, JFIF and EXIF, which disagreed. Both are written here, so a file that has been through this tool says the same thing wherever a program looks.
What DPI do I need for the print size I want?
#
Multiply the size in inches by the DPI to get the pixels you need. An A4 page at 300 DPI is about 2480 by 3508 pixels; an 8 by 10 inch photo at 300 is 2400 by 3000. The printed size in the figures updates as you move the slider, so you can work backwards from the size you need instead.
Can I set the DPI of a WebP or a HEIC?
#
No. WebP records no physical resolution at all, so there is no field to set, and most browsers cannot open a HEIC in the first place. Convert it first, with WebP to PNG or HEIC to JPG, then set the resolution on the result.
Does changing the DPI change the file size?
#
Barely. A JPEG that already had a JFIF header comes out exactly the same size, because the value is overwritten in place. A PNG with no resolution recorded grows by 21 bytes, which is the chunk holding the new value. Nothing is compressed or recompressed either way.
Is anything uploaded?
#
No. The file is read into the page, a handful of bytes are rewritten, and the result is handed back for download, all inside this tab. The page keeps working with the network switched off, which is the plainest proof of it.