DPI Converter

Change the resolution your image declares for print. Retag the file and leave every pixel exactly where it is, or resample so the physical size stays the same at the new density.

Drag & drop a file here, or

JPG PNG WebP GIF Max 50MB

DPI is a label, not detail

Setting a file to 300 DPI writes a number into a header. It adds no pixels and cannot make a small image print sharply — it only changes how large the same pixels are told to print. If your photo is 600×400, retagging it will not rescue an A4 poster, and no tool that says otherwise is telling you the truth. To check whether a file has the pixels for a given print size, use the Print Readiness Scanner.

A retag edits bytes, not pixels

Most browser tools "save at 300 DPI" by pushing the image through a canvas, which quietly drops EXIF, ICC and everything else and recompresses the picture. Retag here patches the density field inside your original file and copies every other byte through untouched. Resampling and format changes do re-encode — and the line above the button says which one just happened.

100% private

Your image never leaves your device. The file is read as bytes in your browser, the density field is written locally, and the download is built on your machine. No upload, no storage, no account.

Advertisement

How it works

What DPI actually is, and what it is not

Dots per inch is not a property of your pixels. It is a number written into the file's header that tells whatever prints the image how large each pixel should be, and print size is simply pixels divided by that number. So a 1800×1200 photo declared at 300 DPI prints at six by four inches, and the same file declared at 72 DPI prints at twenty-five by sixteen — identical pixels, different instruction. This matters because raising the number adds nothing to the picture. A tool advertising that it converts an image to 300 DPI for better quality is describing a header edit as an improvement. Whether a file can print acceptably at a size is decided by its pixel count and nothing else, which is the question our Print Readiness Scanner answers.

Two operations, named separately

Because DPI and pixel count are linked by print size, there are exactly two honest answers to “make this 300 DPI”, and this page offers both rather than choosing one quietly. Retag only writes the new density and touches nothing else: every pixel stays where it was, the file stays the same size on disk, and the printed dimensions change. Resample holds the printed dimensions and changes the pixel count instead, scaling the image by the ratio between the old and new densities. That second path adds pixels when it scales up, and interpolated pixels are not recovered detail — the picture gets bigger, not sharper. The line above the download button states which operation ran, the pixel dimensions coming out, and whether the pixels were re-encoded.

A retag is a byte patch, not a canvas round trip

The common way to set DPI in a browser is to draw the image onto a canvas and export it. That silently discards EXIF, any ICC colour profile, and every other piece of metadata in the file, and it recompresses the picture — so “I only changed the DPI” has in fact rewritten the photograph. Here a retag locates the density field inside your original bytes and edits it in place, copying everything else through unchanged. In a JPEG that means the JFIF density fields in the APP0 segment, and the EXIF XResolution, YResolution and ResolutionUnit tags patched at their own offsets so the segment never changes length; when a file has no APP0 at all, a minimal one is inserted. In a PNG it means the pHYs chunk, replaced rather than duplicated, since two pHYs chunks make the density depend on which one a reader meets first. Re-encoding happens only where it is unavoidable — a resample, or a change of container — and is labelled as such.

One JPEG, two densities, and a rounding you should see

A JPEG can declare its resolution twice: once in the JFIF header and again in EXIF. Nothing keeps them in agreement, and software disagrees about which one wins, so a file that has passed through a few editors can genuinely tell two different programs two different numbers. Both are read and reported here as separate rows, a disagreement is flagged instead of resolved silently, and a retag writes both — or tells you plainly when the EXIF tags are absent and only JFIF could be reached. PNG carries its own quirk: the pHYs chunk stores pixels per metre as a whole number, so 300 DPI is stored as 11811 and reads back as 299.99. The page prints the density that will actually be read out of the finished file rather than the one you typed. Only JPEG and PNG have a density field this tool writes; a WebP or GIF can still be converted to one of them, but that is a conversion and is named as one. For format changes on their own, see the Format Converter, and for changing pixel dimensions directly, the Image Resizer. Everything runs in your browser: the file is never uploaded, nothing is stored, and no account is needed.

Frequently Asked Questions

Does changing the DPI make my image sharper or better for printing?

No. DPI is a number stored in the file's header that tells a printer how large to render the pixels you already have. Retagging a 600x400 photo to 300 DPI does not create a single new pixel; it just says those 600 pixels should occupy two inches instead of eight. Whether a file can print well at a given size is decided by its pixel count, not by its declared density. If you want that question answered, our Print Readiness Scanner checks your pixel dimensions against standard print sizes.

What is the difference between retag and resample?

They are two different answers to "make this 300 DPI". Retag changes only the declared density, so every pixel stays exactly where it was and the file's physical print size changes: the same picture is now told to print smaller at a higher density. Resample holds the physical print size instead and changes the pixel count to match the new density, which means pixels are added or discarded. Adding pixels is interpolation, not detail, so a resample up produces a larger file that is not a sharper photograph. The line above the download button names which one ran.

Does this re-compress my photo?

Not when it does not have to. A retag that keeps the source format is a byte patch: the density field inside your original file is edited and every other byte is copied through unchanged, so your EXIF, ICC profile and JPEG data survive exactly. The paths that do re-encode are resampling, because the pixel grid changes, and converting between JPEG and PNG, because the container changes. Those cases are labelled as re-encoded in the method line rather than presented as the same operation.

Why do you show two DPI values for my JPEG?

Because a JPEG can carry two. The JFIF header at the start of the file has its own density fields, and EXIF has XResolution, YResolution and ResolutionUnit. Nothing forces them to agree, and different software believes different ones, so a file edited by one program can end up telling Photoshop one number and a print shop another. Both are read and shown separately, and if they disagree the page says so instead of picking a winner. A retag writes both when the EXIF tags exist, and tells you if they do not.

My PNG says 299.99 DPI instead of 300. Why?

PNG does not store dots per inch at all. Its pHYs chunk stores pixels per metre as a whole number, and 300 DPI is 11811.02 pixels per metre, which has to be written as 11811. Read back, that is 299.99 DPI. Nothing has gone wrong and no printer will notice, but the page prints the value that will actually be read out of the file rather than the value you typed, because the alternative is a tool quietly claiming an exactness the format does not have.

Which output formats can hold a DPI value?

JPEG and PNG, which is why those are the two on offer here. JPEG carries the JFIF density and usually EXIF as well; PNG carries pHYs. WebP, GIF, BMP and AVIF either have no standard density field or no field that ordinary print software reads, so this tool does not pretend to set one. You can still upload those and convert to JPEG or PNG with the density written, but that path re-encodes the pixels, and the page says so. For general format conversion without the DPI question, use our Format Converter.

What DPI should I use?

300 DPI is the usual target for photographic printing and is what most print shops ask for. 150 to 200 is common for large posters viewed from a distance, where the eye cannot resolve more anyway. 72 DPI is a screen-era convention that means nothing on modern displays and is mostly there because some software writes it by default. If a printer, publisher or stock library has given you a number, use theirs — this tool exists to satisfy that requirement, not to decide it for you.

The uploader asked for 300 DPI and rejected my file. Will this fix it?

It will fix it if the check was reading the header, which is what most automated checks do — set the target, download, and the file now declares what was asked for. It will not help if the requirement was really about size: a request for "300 DPI at A4" means about 2480x3508 pixels, and no header edit produces those. Read the requirement as a pixel count first. If your image already has the pixels, a retag is genuinely all that was missing.

Does my image get uploaded anywhere?

No. The file is read as raw bytes in your browser, the density field is located and written locally, and the download is assembled on your device. Nothing is sent to a server, nothing is stored, and no account is required.

Why does the print size change when I retag?

Because that is what a retag means. Print size is pixels divided by density, so with the pixel count fixed, raising the density makes the printed picture smaller and lowering it makes the picture larger and coarser. The page shows the size before and after so the trade is visible rather than discovered at the printer. If you need the printed size to stay put, choose resample instead — that is the operation that holds the size and changes the pixels.