Saved

Press the star next to a tool's name to save it.

All my tools

Image DPI Changer

Use this image dpi changer to set the dots per inch stored in a JPG or PNG file, for example 300 dpi for print, without re-encoding or resizing the pixels.

This changes the resolution label inside the file, not the number of pixels. The picture looks identical on screen. Only JPG and PNG are supported.

Your picture is processed in your browser. Nothing is uploaded.

Preview

Choose a JPG or PNG to see its size and dpi here.

An image dpi changer edits the dots per inch value stored inside a picture file. Print shops, forms and some websites ask for a picture at 300 dpi, yet a photo from a phone or website often says 72 or nothing at all. This image dpi changer writes the value you choose into the file itself, leaving every pixel untouched, so the picture looks the same and the file size barely changes.

How to use the image dpi changer

  1. Choose a JPG or PNG file.
  2. Read the size line. It shows the pixel size, what dpi the file states now and how large it prints at the dpi in the box.
  3. Type the dpi you need, for example 300.
  4. Press Save with new dpi and download the file.

What dpi really changes

Dpi is a label, not a quality. A picture is a grid of pixels. Dpi only says how many of those pixels should be laid across one inch when the picture is printed. Print size in inches equals pixels divided by dpi, so a 3000 × 2000 pixel photo prints at 10 × 6.67 inches at 300 dpi but 41.67 × 27.78 inches at 72 dpi. Changing the dpi therefore changes the intended print size, not the sharpness. To get more real detail you need more pixels, which no dpi setting can create.

Where the value is stored

  • PNG: in the pHYs chunk, which holds the pixels per unit on the X and Y axes and a unit specifier. A unit specifier of 1 means the metre [1]. The tool converts dpi to pixels per metre by dividing by 0.0254, so 300 dpi is 11,811 pixels per metre. The chunk must come before the first image data chunk, and every chunk ends with a CRC-32 check value that the tool recalculates [1].
  • JPG: in the JFIF header that follows the start of the file. It holds a units byte, where 1 means pixels per inch, and two density fields for horizontal and vertical [2]. If a JPG has no JFIF header, the tool adds one straight after the start marker, and it also updates the resolution tags in Exif data when they exist.

Worked example

A phone photo is 4032 × 3024 pixels and states no dpi. At 300 dpi it prints at 13.44 × 10.08 inches. At 72 dpi the same file prints at 56 × 42 inches. Setting the file to 300 dpi leaves the 4032 × 3024 pixels unchanged, and the saved file is a few bytes larger in a JPG, because a small header is added, or the same size when a header already exists.

PixelsDPIPrint size
3000 × 20007241.67 × 27.78 in
3000 × 200015020.00 × 13.33 in
3000 × 200030010.00 × 6.67 in

Why this is not re-encoding

Many dpi tools redraw the picture and save it again, which for a JPG applies compression a second time. This tool does not decode or redraw anything. It copies the original bytes and changes only the few bytes that hold the dpi, so quality and file contents stay exactly as they were.

Tips

  • Check the required pixel size as well as the dpi. A form that wants 300 dpi usually also wants a minimum number of pixels.
  • To change the pixel size, use the image resizer.
  • WebP does not use these headers, so WebP files are not accepted here.

When a particular dpi is requested

Many offices, universities, printers and government forms ask for a scan or photo at 300 dpi. Some ask for 200 dpi, and web graphics are traditionally labelled 72 or 96 dpi. Often the person checking the file only reads the dpi label, and a file that says 72 may be rejected even if it has plenty of pixels. This tool lets you correct the label. If the real pixel size is too small for the requested print size, the label alone will not make it acceptable, and you need a larger original.

Reading the size line

After you choose a file, the size line shows the pixel size, the dpi the file states now, if it states one, and the print size at the dpi in the box. Use it to check that the result matches the print size you need. For example, if a form needs a 2 × 2 inch photo at 300 dpi, the picture needs at least 600 × 600 pixels.

What is not changed

The pixels, colours and compression stay untouched. Other information in the file, such as Exif camera data in a JPG or text chunks in a PNG, is kept, except for the resolution values themselves. The file name gets the dpi added, for example photo-300dpi.jpg, so your original is not overwritten.

File names and formats

The saved file keeps the original name with the new dpi added, so a file called scan.jpg set to 300 dpi is saved as scan-300dpi.jpg. JPG stays JPG and PNG stays PNG, and the picture type is never converted. If you need another format first, convert the picture with the image converter, then set the dpi here as the last step, because converting again may reset the value.

If the picture will be uploaded to a site that reads the dpi after its own processing, the value may be removed by that site. In that case the check on the site is usually about the pixel size rather than the label.

Privacy and file limits

Everything happens inside your browser tab. The picture is read from your device, drawn on a canvas and saved back to your device, so nothing is sent to a server and nobody else sees it. Files up to 50 MB are accepted, and very large pictures are refused when they would be too big for your browser to handle. JPG, PNG and WebP are supported.

What next

Use this often? Add Image DPI Ch to your Home screen.

Frequently asked questions

What does an image dpi changer do?

It writes a new dots per inch value into the file header. The pixels stay exactly the same, so only the intended print size changes.

Does changing dpi make a picture sharper?

No. Sharpness depends on the number of pixels. Dpi only tells a printer how many pixels to put in an inch.

How do I set an image to 300 dpi?

Choose the JPG or PNG, type 300 in the dpi box and press Save. Check the pixel size too, because the print size is pixels divided by dpi.

Does the tool recompress my JPG?

No. It copies the original bytes and changes only the header values that hold the dpi.

Is my picture uploaded?

No. The file is read and rewritten in your browser, so it stays on your device.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Image Tools