01 / Drop
Add JPG or PNG files
The tool reads each file's pixel size and the DPI it says now, and shows the printed size.
Free tool
Set the DPI of a JPG or PNG to 72, 150, 300 or any number you type. The tool rewrites only the density number in the file, so the pixels stay exactly as they were, and it shows the printed size in inches and centimetres. Need real pixels for a print size, such as 8 x 10 inches at 300 dpi? Switch to Resample. Do one file or many, and save them in a ZIP. It runs in your browser, so nothing is uploaded.
| At | In inches | In centimetres |
|---|
DPI
The DPI is written in the JPG or PNG header, and into the EXIF and Photoshop notes when the file has them. HEIC, WebP and other types are not supported, as they have no DPI in the same way.
This runs in your browser. Your pictures are never uploaded.
How it works
01 / Drop
The tool reads each file's pixel size and the DPI it says now, and shows the printed size.
02 / Choose
72, 150, 300, 600 or your own number. Keep the pixels, or resample to a paper size.
03 / Save
The header changes by a few bytes and the picture data stays as it was. Many files go into one ZIP.
Guide
To change image DPI is to change one number stored in the file, the number of pixels per inch a printer should use. It does not change a single pixel. A 1600 x 1200 picture stays 1600 x 1200; only its printed size changes, because the printed size is the pixels divided by the DPI. This tool sets that number to 72, 150, 300 or any value from 1 to 10000 in JPG and PNG files, shows the printed size in inches and centimetres, and can also resample a picture to a paper size when you need more or fewer pixels.
Printed size in inches is pixels divided by DPI. A phone photo of 4000 x 3000 pixels at 300 dpi prints 13.33 x 10 inches, which is 33.87 x 25.4 cm, because one inch is 2.54 cm. The same file at 72 dpi would claim 55.56 x 41.67 inches. The picture is identical; only the label differs.
| Picture | At 72 dpi | At 150 dpi | At 300 dpi |
|---|---|---|---|
| 1600 x 1200 px | 22.22 x 16.67 in | 10.67 x 8 in | 5.33 x 4 in |
| 3000 x 2000 px | 41.67 x 27.78 in | 20 x 13.33 in | 10 x 6.67 in |
| 2400 x 3000 px | 33.33 x 41.67 in | 16 x 20 in | 8 x 10 in |
This is why a lower DPI number does not make a picture worse and a higher one does not make it sharper. If a print shop asks for 300 dpi at 8 x 10 inches, check the pixels, not the label: you need 2400 x 3000. A 1600 x 1200 picture set to 300 dpi prints only 5.33 x 4 inches at that density. To fill the sheet you must enlarge it, which Resample does, but no tool can add detail that was never captured.
Keep the pixels is a header edit. For a JPG the tool rewrites the density in the JFIF header, which holds units, a horizontal density and a vertical density. If the JPG has no JFIF header, one is added at the front. It also updates the EXIF resolution tags and a Photoshop resolution note when they are present, so no program reads the old value. For a PNG it writes the pHYs chunk, which stores pixels per metre: 300 dpi is 300 divided by 0.0254, or 11811 pixels per metre. Everything else, including the compressed picture and the colour profile, is left as it was.
Resample draws the picture again at the size you pick. The tool turns the sheet to match the picture and either fills it, cropping the edges a little, or keeps the whole picture. At 8 x 10 inches and 300 dpi the result is 2400 x 3000 pixels. The colour profile is kept, and the DPI is written the same way. A big picture is halved in steps before the last step, which keeps small detail cleaner than one big jump.
The format specifications are public: the PNG specification defines the pHYs chunk and the JFIF specification defines the JPG density fields (read 18 Oct 2026).
sips -g dpiWidth file.jpg.For a screen's own pixel density rather than a file's, use the PPI calculator. To make the file smaller in bytes, use the image compressor, and to change the pixel size alone, the image resizer.
Questions
Drop the file, press 300, and download. The tool writes 300 dpi into the file and leaves the pixels alone. If you need more pixels for a print size, use Resample.
No. With Keep the pixels the picture data is not touched, so quality and file size stay the same. DPI only says how large to print.
If both have the same pixel size, yes. Only the printed size differs. A 3000 x 2000 picture is 41.67 x 27.78 inches at 72 dpi and 10 x 6.67 inches at 300 dpi.
JPG and PNG. HEIC, WebP and other types are not supported here, since they do not carry a DPI the same way.
The tool shows the DPI each file says now. On a Mac you can also open it in Preview and choose Tools, then Adjust Size, or run sips with the dpiWidth property in Terminal.
No. The files are read and written in your browser, and nothing goes to a server.
With Keep the pixels, they stay as they were, apart from the resolution values. With Resample, the colour profile is kept and the camera details are not copied.
Yes. Add as many as you like, choose the DPI once, and press Download all as ZIP.