What DPI actually changes
DPI (dots per inch) tells a printer how large to print an image. At a fixed pixel size, a higher DPI prints the same image smaller and sharper, while a lower DPI prints it larger. Screens ignore DPI and use pixels directly, which is why an image can look fine online yet get rejected by a print shop or a form that asks for 300 DPI.
This tool writes a real density value into the file: a pHYs chunk for PNG and a JFIF density block for JPG. That is the metadata print software reads. You can keep the original pixels and only change the DPI, or resample the pixel dimensions at the same time. Everything runs locally in your browser, so the image is never uploaded.