DPI (dots per inch) is a number stored inside an image file that tells printers and apps how large to print it. It doesn't change the pixels: a 2400 × 3000 pixel photo is the same picture at 72 or 300 DPI, it just prints at 33 × 42 inches or 8 × 10 inches. Print shops, publishers and some application forms still ask for files marked 300 DPI, and many phones and editors save 72 or 96 DPI or leave it blank.
This tool reads the DPI already saved in each JPG or PNG, shows the pixel size and the print size it gives, and rewrites only the resolution fields: the JFIF header and EXIF resolution in JPGs (and the Photoshop resolution block when present), and the pHYs chunk in PNGs. The compressed image data is copied byte for byte, so there is no re-compression and no quality loss. You can process up to 50 files in one run.
Honest limits: changing DPI doesn't add detail. If a print shop needs 300 DPI at 10 × 15 cm, the image needs about 1181 × 1772 pixels; marking a small image as 300 DPI only makes it print smaller. To change the pixel count, use the Image Resizer. This tool handles JPG and PNG only; WebP, HEIC and other formats need converting first.