What Changing Image DPI Actually Does
Change Image DPI edits the DPI, or dots per inch, that is recorded in an image file, and it is important to understand up front that this changes metadata only, not the pixels themselves. DPI is a number that tells printing software how many pixels to pack into each inch of paper. It does not add, remove, or move a single pixel in your photo, so the picture looks identical on screen before and after. If you actually need more pixels for a sharper print, that is a different operation called resampling, and you should use an image resizer for it. This tool exists for the many situations where a print shop, a magazine, or an upload form simply demands that the file be tagged as a certain DPI, most commonly 300.
Because DPI is stored differently in each format, the tool handles JPEG and PNG separately. In a JPEG, resolution lives in the JFIF APP0 segment near the start of the file, where a density value and a units flag record how many pixels there are per inch. The tool rewrites that density field to your chosen DPI. In a PNG, resolution is stored in an optional pHYs chunk that records pixels per metre rather than per inch, so the tool converts your DPI into metres using the fact that one inch equals 0.0254 metres. Setting 300 DPI means writing round(300 / 0.0254), which equals 11811 pixels per metre. Every PNG chunk carries a CRC checksum for integrity, so after editing the pHYs value the tool recomputes that CRC; skipping it would make the chunk invalid and some viewers would ignore it.
The reason DPI matters is that it defines the physical print size of a fixed set of pixels. The relationship is simple: print size in inches equals the number of pixels divided by the DPI. A 1200 by 1800 pixel image tagged at 300 DPI prints at exactly 4 by 6 inches, because 1200 divided by 300 is 4 and 1800 divided by 300 is 6. Tag that same image at 150 DPI instead and it will print at 8 by 12 inches, twice as large in each direction, but spread over more paper so each printed dot is coarser. The pixels never changed; only the instruction about how densely to lay them down did. This is exactly why lowering the DPI number does not lower quality on screen, and why raising it does not magically add detail.
A worked example makes the trade-off clear. Suppose you have a 1200 by 1800 pixel photo and a lab that requires 300 DPI files. You open the image, pick the 300 preset, and download it. The file now reports 300 DPI, prints at a crisp 4 by 6 inches, and the lab accepts it. If instead you needed a small draft proof, choosing 150 DPI would make the same photo print at 8 by 6 inches with visibly softer detail, useful for checking layout before committing to the final print. Presets for 72, 96, 150, 300, and 600 DPI cover screen use, standard printing, and high-resolution work, so you can match a requirement with a single click.
The everyday uses are straightforward. Print shops and photo labs frequently reject files that are not tagged at 300 DPI even when the pixels are fine, and this tool fixes that in seconds. Designers preparing artwork for a magazine or a poster set the DPI their client specified. Anyone submitting a scanned document or a logo to a service with a DPI requirement can meet it without opening heavy software. Keep two limits in mind: because only metadata changes, raising DPI will not improve a low-resolution image, and if you genuinely need a larger physical print at full sharpness you must add pixels with a resizer, not with this tool. Everything runs in your browser, so your file is never uploaded, never stored, and cleared when you close the tab.