Image DPI converter:
change DPI, keep every pixel
This image DPI converter changes the DPI stored in a JPEG or PNG and leaves its pixels alone. Choose a file to see its current DPI, type a new value or pick 72, 150, 300 or 600, and download a copy. It runs in your browser and shows the print size that the new DPI gives.
How to change image DPI
Select Choose a JPEG or PNG, or drop one image onto the box. A table lists the file name, format, encoded pixels, file size and the supported primary density fields. A file with no stored value shows Not specified, and the tool does not assume one. XMP, IPTC, text and embedded-image density are not read or changed.
Type a whole number in Target DPI (pixels per inch) or select a preset, and Estimated print size updates in inches and centimeters. Select Download image. The tool writes the value, checks it in the new file and starts the download. Output shows the verified density.
- Choose a JPEG or PNG
Select Choose a JPEG or PNG, or drop one image onto the box. Check its pixels and stored DPI in the table.
- Set Target DPI
Enter a whole number or select 72, 150, 300 or 600. Check Estimated print size in inches and centimeters.
- Download the verified image
Select Download image to create and save the copy. Output shows its filename and the density read back from the new file.
The download is named after the original with the DPI added, such as photo-300dpi.jpg. Select Reset to clear the image, or Replace image to pick another file.
What changing DPI does to an image
DPI is a number stored in the file that tells printing software how many pixels to fit in each inch. Changing it changes the print size and nothing else. The width and height in pixels, the colors and the compressed image data stay the same.
Take a 2400 × 1600 JPEG saved at 72 DPI. Its estimated print size is 33.3333 × 22.2222 in. Set it to 300 DPI and the same pixels print at 8 × 5.3333 in, or 20.32 × 13.5467 cm. At 150 DPI they print at 16 × 10.6667 in, and at 600 DPI at 4 × 2.6667 in.
No pixels are added, so a higher DPI does not make a photo sharper. To print larger with more detail, the image needs more pixels, which is a job for a resize or a new scan. Your printing app may also ignore the stored value and use a size you choose there.
Which fields the tool writes
For a JPEG, the tool writes the JFIF density in dots per inch and adds a JFIF header when the file has none. When the file has EXIF data, it also updates XResolution, YResolution and ResolutionUnit. The compressed scan data is copied byte for byte.
For a PNG, it writes the pHYs chunk, which stores whole pixels per meter, and updates the EXIF resolution when the file has an eXIf chunk. The image chunks are copied as they are. The same value goes to the horizontal and vertical fields, so a file with different X and Y values ends up with square pixels.
After writing, the tool reads the new file again. It checks that the width, height and orientation match the original and that each density field holds the new value. If a check fails, no download is offered. Other metadata stays in the file, including camera and location tags.
Limits
The tool edits JPEG and PNG files and identifies them from their contents, not their names. WebP, GIF, TIFF, HEIC and PDF files are not edited. It works on one image at a time.
Target DPI must be a whole number. JPEG accepts 1 to 65,535, the range of its 16-bit field. PNG accepts 1 to 54,546,084 and rounds to whole pixels per meter, so 300 DPI is stored as 11,811 pixels per meter and reads back as 299.9994 DPI.
XMP, IPTC, text chunks, embedded thumbnails and extra images inside a JPEG are kept, but their density values are not changed, so a program that reads them can show the old value. An animated PNG keeps its frames and only the canvas density changes. A JPEG whose EXIF block is full may have no room for new fields, and an error explains this. There is no file size or pixel limit in the tool.
The preview is one browser-rendered still image. If your browser cannot decode it, you can still download a copy with the new density. This preserves the original compressed image data without checking or repairing it.
Questions
Can I change the DPI of an image without losing quality?
Yes. The tool changes only the DPI value, so the pixels are not resized or recompressed. In a check, a 2400 × 1600 JPEG changed from 72 to 300 DPI decoded to identical pixels, and the file grew by 34 bytes of metadata. What changes is the print size that software works out from the pixels.
How do I change a 72 DPI image to 300 DPI?
Choose the image, select the 300 preset or type 300 in Target DPI, then select Download image. Output confirms the value read back from the new file, such as JPEG JFIF: 300 × 300 DPI. The pixel count stays the same, so a 2400-pixel width goes from 33.3333 to 8 inches.
Can a JPEG be 300 DPI?
Yes. A JPEG stores its DPI in the JFIF header and often in EXIF as well. Set 300 and the tool writes 300 to both where they exist, and adds a JFIF header if the file has none. A JPEG at 300 DPI keeps the pixels it had before; only the number that printers read has changed.
How do I convert 300 DPI to pixels?
Multiply the print size in inches by the DPI. A 10 × 8 inch print at 300 DPI needs 3000 × 2400 pixels. Dividing the pixels by the DPI gives the print size, which is what Estimated print size shows. This tool never adds pixels, so use a resize tool when the image has too few.
Does 300 DPI make a low-resolution image better?
No, the presets are common density values, not quality settings. A small image set to 300 DPI keeps its pixels and simply prints smaller. Output tells you when the file is byte-for-byte unchanged. Missing density fields can still be added when the selected DPI matches the original. To get more pixels, resize the image or go back to a larger original.
How do I check the DPI of an image?
Choose the file and read the table before you change anything. Each supported primary source has its own row: JPEG JFIF, JPEG EXIF, PNG pHYs or PNG EXIF, with X and Y in DPI. A file with no stored value shows Not specified. When rows disagree, programs may pick different ones. Download image updates each supported source.
Does my image leave this device?
No. The image is read and edited in your browser on this device. The tool does not upload, log or store the file or its name. The new file is saved only when you select Download image. Reset and leaving the page release the image and result. A valid replacement releases the previous image and result. Cancel stops work and keeps your current image and settings, and an invalid replacement keeps them too.
Related tools
- Resize an image to new pixel dimensions: change the pixel count when a print needs more or fewer pixels.
- Check image dimensions in pixels: read the width, height, aspect ratio and file size of a picture.
- View and remove photo EXIF metadata: see the camera and location tags this tool keeps, and download a copy without them.
- Convert an image to another format: save a WebP, GIF or other image as JPEG or PNG before you set its DPI.