How to Increase DPI of a JPEG Image

A JPEG stores its DPI in a small header at the start of the file, called the JFIF or EXIF block. That header is just a number. It says nothing about the pixels themselves. Increasing the DPI of a JPEG means rewriting that number, and it can be done without touching a single pixel.

November 18, 2026

JPEG file with its DPI header value being changed from 72 to 300 without touching the pixels
JPEG file with its DPI header value being changed from 72 to 300 without touching the pixels

Where a JPEG keeps its DPI

Every JPEG file begins with a header, a short block of data that describes the file before the image data starts. Inside that header, the JFIF block or the EXIF block carries a resolution value, usually written as horizontal and vertical DPI. When a program opens your JPEG, it reads that number and uses it to work out the print size. When it shows the photo on screen, it ignores the number and shows the pixels. That split is the key to the whole topic: the DPI value is metadata, a label, not part of the picture.

Because the value is only a label, changing it is a tiny operation. A converter opens the file, finds the DPI field in the header, writes the new number, and saves the file again with the image data copied exactly as it was. The pixels, the colours and the compression are untouched. This is different from resizing a JPEG, which changes the pixel dimensions, and different from re-saving a JPEG in an editor, which recompresses the image data. A metadata-only DPI change does neither of those things.

Why you should not just re-save the JPEG

That matters, because the usual way people change a JPEG is to open it in an editor and save it again. Every time a JPEG is saved, it is recompressed, and every recompression throws away a little quality. JPEG compression works by discarding fine detail that the eye is unlikely to notice, and each save discards a little more. Open a JPEG, change nothing, save it, and repeat that a few times, and the photo slowly gets softer, blockier and flatter around edges and smooth areas such as skies. The damage from one save is small, but it is real, and it is completely unnecessary when all you wanted to change was a number in the header.

A metadata-only change avoids that entirely. The pixels are copied exactly as they are, only the header number changes, so there is no quality loss at all. The file you download is pixel-for-pixel identical to the file you uploaded. You can prove this to yourself by comparing the two files: the pixel dimensions are the same, the colours are the same, and the file size is almost the same, differing only by a few bytes in the header. That is the standard a good DPI tool should meet, and it is the standard the converter on this site meets.

How to increase the DPI of a JPEG, step by step

The steps are simple. Open the homepage converter, upload your JPEG, choose the DPI you need — 72, 150, 300, 600 or a custom value — and download the result. The file comes back as a JPEG with the new DPI written into its header and the same pixels as before. It takes seconds, and the file never leaves your browser. That last point matters for private photos: nothing is uploaded to a server, so a family photo or a document scan stays on your own device.

Before you pick a number, work out which number you actually need. If a form or a print shop names a value, use exactly that value. If nothing is specified and the photo will be printed, 300 DPI is the safe default. If the photo will only be shown on screen, the DPI number does not affect how it looks, so use whatever the form asks for, or leave it alone. Use the DPI calculator to check the print size first: enter your pixel dimensions and the DPI you plan to use, and confirm the print size is what you want. A 3000 × 2000 photo at 300 DPI prints at 10 × 6.7 inches. The same pixels at 150 DPI print at 20 × 13.3 inches. The label changes the print size, so check the size before you commit.

Here is a worked example for a common case. You have a 2400 × 3000 JPEG, and a form asks for 300 DPI at 8 × 10 inches. Multiply 8 by 300 to get 2400, and 10 by 300 to get 3000. Your photo has exactly the pixels the form needs, so the only job is the label. Upload the JPEG, set 300 DPI, download it, and the file is ready. Now try a case where the pixels fall short. A 1200 × 1800 JPEG at 300 DPI prints at 4 × 6 inches, because 1200 divided by 300 is 4 and 1800 divided by 300 is 6. If you need 8 × 10 inches, that photo is too small, and changing the label will not fix it. You need a larger original, or you need to accept a smaller print.

After the download, check your work. Upload the downloaded file to the DPI checker and confirm the new number is there. This is worth doing, because some apps ignore the header or show their own default instead. The checker reads what the file actually says, so you know the change worked before you send the file anywhere. If the checker shows the new value and the pixel dimensions are unchanged, the job is done. If you need the same treatment for a PNG, see how to increase DPI of a PNG, which stores its DPI in a different place.

What a DPI change cannot do for a JPEG

One warning still applies. A JPEG relabelled to 300 DPI prints smaller and denser than it did at 72 DPI, but it is not sharper. If the photo is small in pixels, it will still print small at 300 DPI. The label change solves the requirement. It cannot create detail that was never captured.

Take a concrete example. A 400 × 300 JPEG relabelled to 300 DPI prints at only 1.3 inches wide, because 400 divided by 300 is 1.3. The file now says 300 DPI, and a form that only reads the label will accept it, but the print itself is tiny. If you stretch that photo to fill an 8 × 10 inch page, it will look soft and blurry, because 400 pixels spread across 8 inches is only 50 pixels per inch on the paper. No DPI number fixes that. The pixels were never there, and changing the label cannot invent them.

Frequently asked questions

How do I increase the DPI of a JPEG without losing quality?

Use a converter that rewrites only the JFIF/EXIF header. The pixels are copied exactly, so there is no recompression and no quality loss. Do not open the JPEG in an editor and save it again, because every re-save recompresses the image and throws away a little quality.

Where is DPI stored in a JPEG file?

In the header at the start of the file, in the JFIF or EXIF block. It is a small number, usually stored as horizontal and vertical DPI. Changing it means rewriting a few bytes in that header, and the image data is not touched.

Will a JPEG set to 300 DPI print sharply?

Only if it has enough pixels. A 3000 × 2000 JPEG at 300 DPI prints at 10 × 6.7 inches and looks sharp. A 400 × 300 JPEG at 300 DPI prints at only 1.3 inches wide, so it is still too small for a normal print. Check your pixels with the DPI calculator first.

How do I check the DPI of a JPEG after changing it?

Upload the downloaded file to the DPI checker. It reads the header directly and shows the DPI, the pixel dimensions and the format. If it shows your new value and the pixels are unchanged, the change worked.

Before & after sample

Sample photo — try the tool above with your own image for the real result.

Photo at 72 DPI
Before
3000 × 2000 px photo at 72 DPI → prints 41.7 × 27.8 in
3000 × 2000 px photo at 300 DPI → prints 10.0 × 6.7 in
Same pixels — only the DPI label changed.
Same photo at 300 DPI

← Back to all blog posts · All Guides · Increase DPI of an image