Change the dpi of an image

Drop a PNG, JPEG or TIFF and set its dpi to 300, 600 or any number a journal asks for, without touching a pixel. If the image has far more pixels than the print needs, resample it to a column width instead. It runs in your browser and your images never leave your computer.

Loading…

How to change the dpi of an image

To set the dpi of an image online, drop the file on the box above and select it in the list. Two cards appear. In the first, type the dpi you need and press Download with this dpi: the file is saved again with only its resolution number changed, and the new file is read back so you can see that the dpi has changed and the pixel size has not. You can drop several files and fix them one after the other. Nothing is uploaded; the file is rewritten by code running in this page.

  1. Drop a PNG, JPEG or TIFF on the box.
  2. Click the file in the list. Its current dpi, its size in pixels and the size it prints at are shown.
  3. In card A, enter the dpi and press Download with this dpi. Or, in card B, choose a column width and a dpi to resample the image to that many pixels.
  4. Check the line under the button: it reports the dpi and pixel size read back from the new file.

What the dpi in a file is, and what changing it does

The dpi of an image file is a label: it says how many pixels to print per inch, so it fixes the size at which a program places or prints the image by default. It is not a property of the picture. The same 3000 pixel wide image labelled 72 dpi is about 106 cm wide on paper, and labelled 300 dpi about 25 cm wide, with exactly the same pixels. When a journal says "your image is 72 dpi", it is reading that label, so for an image with enough pixels the fix is to change the label. What matters for print quality is the effective dpi, the number of pixels across divided by the printed width in inches; the image DPI checker works that out for each journal column width.

Set the dpi tag, or resample

Set the dpi tag. Use this when the image has enough pixels but is labelled 72 dpi or has no label. In a PNG the pHYs chunk is replaced, in a JPEG the JFIF density is rewritten (and the Exif fields, if the file has them), and in a TIFF the resolution tags are written; the image data is copied byte for byte.

Resample to a printed width. Use this when the image has far more pixels than the journal needs, or when the file is too large to upload. Choose the column width and the dpi, and the image is scaled to exactly that many pixels, with the dpi written in. You can also save it as PNG, JPEG or TIFF. If you need the file to meet a size limit rather than a width, use Compress for submission.

Convert an image to 300 dpi

"Convert to 300 dpi" can mean two different things. If you only need the file to say 300 dpi, set the tag; the picture is unchanged. If you need the picture to have 300 pixels for every inch of its printed width, check whether it already has them: a figure for a 3.25 inch column needs at least 975 pixels across. If it has more, either way works; if it has fewer, no setting can add detail, and the honest fix is to export the figure again at a larger size from the program or instrument that made it.

Limits

CMYK JPEG and TIFF files are reported as CMYK; their dpi can be read and set, but they are not converted and cannot be resampled here. A TIFF whose resolution tags carry a microscope pixel scale (for example from ImageJ) is flagged, because setting a dpi would overwrite that scale: keep the original file. Resampling decodes the image in the browser, so very large images may not fit in memory.

Frequently asked questions

How do I change the dpi of an image?

Drop the PNG, JPEG or TIFF on the page, type the dpi you need (for example 300) in the first card and press Download with this dpi. Only the resolution number stored in the file is rewritten; the pixels are copied unchanged. The new file is read back and its dpi and size are shown.

How do I convert an image to 300 dpi?

If the image has enough pixels for the printed size, set the dpi tag to 300. If it has far more pixels than needed, use the second card: choose the column width and 300 dpi and the image is scaled to exactly that many pixels, with 300 dpi written in. If it has too few pixels, no setting can help, because dpi cannot add detail.

Does changing the dpi change the quality of the picture?

Setting the dpi tag does not change a pixel, so the picture and its file quality are exactly the same. It only changes the size at which other programs print or place the image by default. Resampling to a width changes the pixels, because it makes the image smaller.

Why does my journal say my image is 72 dpi?

Many programs save images with a default of 72 or 96 dpi, or with none at all, and the submission system reads that label. If the image has enough pixels for the printed width, setting the tag to 300 or the dpi the journal asks for is enough. The checker below the drop zone shows the effective dpi at each journal column width, which is what matters for print.

Can I increase the resolution of a low resolution image?

Not honestly. Changing the dpi tag only relabels the pixels, and enlarging an image only invents pixels between the real ones. For a journal, the real fix is to export the figure again from the source program or instrument at a larger size.

Does it work for TIFF and JPEG as well as PNG?

Yes. The dpi is stored in a pHYs chunk in a PNG, in the JFIF header (and Exif data if present) of a JPEG, and in the resolution tags of a TIFF. All three are rewritten without decoding the picture. CMYK files can have their dpi set but are not resampled.

Are my images uploaded?

No. Your images never leave your computer: they are read and rewritten by code running in this page.

More figure tools

The figure tools also cover the other steps of getting a figure into a journal: