CompressToFit

DPI versus pixels, for uploads

300 DPI is 600x600 pixels for a passport photo and 2480x3508 for an A4 page. The table for every common size, and why DPI alone means nothing for an upload.

Updated 8 min read

A digital image does not have a DPI. It has a pixel count.

DPI — dots per inch — is a ratio between pixels and a physical size, and it only becomes a real number when something decides how large to print the image. The same 1200×1800 file is 300 DPI printed at 4×6 inches, 150 DPI printed at 8×12, and 600 DPI printed on a business card. Nothing about the file changed.

This matters because forms ask for DPI constantly, and understanding what they can and cannot mean by it saves a lot of wasted effort.

The metadata field, and why it does almost nothing

Image formats can store a DPI value in their metadata. JPEG has it, TIFF has it, PNG has a pixels-per-metre field.

It is advisory. It tells a printer or a layout program what physical size the author intended. It does not change the pixels, it does not change the file size, and most web upload validators never read it.

So "change the DPI to 300" in an editor, without resampling, does exactly one thing: it edits a number in the metadata. The image is pixel-for-pixel identical and the file size is unchanged to within a few bytes. If a form rejected your image and you fixed the DPI field and resubmitted, nothing of substance happened.

Some editors do something different and more dangerous: changing DPI with resampling enabled actually resizes the image, adding or removing pixels. Adding pixels is pure loss — the software invents detail that was never captured, the file gets larger, and the picture gets softer.

What a form asking for 300 DPI probably means

Three possibilities, and they want different things:

1. It wants minimum pixel dimensions and is phrasing it badly. Most common. "A 300 DPI photograph" for a 2×2 inch passport photo means 600×600 pixels. The DPI and the inches together give you the only number that exists: the pixel count. If the form states both a DPI and a physical size, multiply them and ignore the DPI from then on.

2. It is going to print your file. Then DPI is real and relevant, because something physical is about to happen. Print needs roughly 300 pixels per inch of final output for photographic quality — 240 is acceptable, 150 looks soft, 72 looks bad.

3. It is boilerplate nobody checked. Also common. The requirement was copied from a print specification into a web form, and the validator checks file size and pixel dimensions only.

The conversion, which is all you need

pixels = inches x DPI
inches = pixels / DPI

One inch is 25.4mm, so for a size given in millimetres: pixels = mm / 25.4 x DPI.

300 DPI in pixels, for the sizes forms ask for

Size Inches 300 DPI 200 DPI 150 DPI 72 DPI
2 x 2 in (US passport) 2 x 2 600 x 600 400 x 400 300 x 300 144 x 144
35 x 45 mm (UK, EU, India passport) 1.38 x 1.77 413 x 531 276 x 354 207 x 266 99 x 128
3.5 x 4.5 cm, same thing 1.38 x 1.77 413 x 531 276 x 354 207 x 266 99 x 128
4 x 6 in print 4 x 6 1200 x 1800 800 x 1200 600 x 900 288 x 432
5 x 7 in print 5 x 7 1500 x 2100 1000 x 1400 750 x 1050 360 x 504
8 x 10 in print 8 x 10 2400 x 3000 1600 x 2000 1200 x 1500 576 x 720
A5 (148 x 210 mm) 5.83 x 8.27 1748 x 2480 1165 x 1654 874 x 1240 420 x 595
A4 (210 x 297 mm) 8.27 x 11.69 2480 x 3508 1654 x 2339 1240 x 1754 595 x 842
US Letter (8.5 x 11 in) 8.5 x 11 2550 x 3300 1700 x 2200 1275 x 1650 612 x 792
A3 (297 x 420 mm) 11.69 x 16.54 3508 x 4961 2339 x 3307 1754 x 2480 842 x 1191

Read the row for your physical size and the column for the DPI the form names. That pair of pixel numbers is the requirement; the DPI figure has done its job and can be ignored from here on.

So "scan this A4 page at 300 DPI" means producing a 2480×3508 image — 8.7 megapixels, which is why scanned documents are so large. And "a 300 DPI passport photo" with no size stated is unanswerable until you know which passport: 600×600 for the US, 413×531 for the 35×45mm format most of the world uses.

Where DPI is genuinely the right unit: scanning

For scanning, DPI is the correct way to think, because there is a physical original. The scanner is deciding how many pixels to record per inch of paper, and that choice is real.

The useful figures for documents:

Scan DPI A4 megapixels Good for
600 35 MP Archival, fine detail, OCR of tiny print
300 8.7 MP The standard. Print-quality, reliable OCR
200 3.9 MP On-screen reading, OCR of normal print
150 2.2 MP On-screen reading, 12pt and larger
96 0.9 MP Headings legible, body text struggling

Scanning at 600 DPI in colour when the document is black text on white paper produces a file roughly forty times larger than 150 DPI greyscale, for content that reads identically on screen.

Where DPI is the wrong unit: anything shown on a screen

Screens do not work in inches. A browser showing your photograph in a 400-pixel-wide column shows 400 pixels of it, and the metadata DPI field has no influence whatsoever.

For screen use, think only in pixels, and specifically in the largest pixel width anything will display. Double it if it might appear on a high-density display. That is the entire calculation. Resizing to that number is usually the single biggest file size saving available, and it is free.

The practical procedure for a form

  1. Find the pixel dimensions in the requirement. If it gives DPI and a physical size, multiply. If it gives pixel dimensions directly, use those and ignore everything about DPI.
  2. Resize to those dimensions exactly if a range is given, or to the top of the range if you have the pixels available.
  3. Then hit the byte target with quality, because dimensions are now fixed and quality is the only dial left.
  4. Do not touch the DPI metadata field. It changes nothing and risks triggering a resample.

That third step is where measuring matters. With dimensions locked by the form, you cannot trade pixels for bytes any more — so the only way to land just under a 200KB ceiling rather than well below it is to encode, weigh the result, and adjust.

Compress an image to 200KB, to 300KB or to 500KB bisects quality against the real byte count and ships the best result that genuinely measured under. The form specifications we have verified against a primary source are here, dimensions and format included — because a 240KB file at the wrong pixel size gets rejected just as firmly as a 400KB one.

FAQ

What is 300 DPI in pixels?

It depends entirely on the physical size: pixels equal inches multiplied by DPI. At 300 DPI a 2x2 inch passport photo is 600x600 pixels, a 35x45mm photo is 413x531, a 4x6 inch print is 1200x1800, an A4 page is 2480x3508 and a US Letter page is 2550x3300. Without a physical size, 300 DPI on its own does not correspond to any pixel count.

What does 300 DPI mean for a digital image?

On its own, nothing — a digital file has a pixel count, not a DPI. DPI is a ratio between pixels and a physical size, so it only becomes meaningful when combined with inches or millimetres. "300 DPI at 2×2 inches" means 600×600 pixels, and the pixel figure is the only one that exists in the file.

How do I change the DPI of an image?

If you mean the metadata field, most editors let you set it under image size or document properties with resampling turned off — and it will change nothing about the pixels or the file size. If you mean actually changing the resolution, you are resizing, which means choosing new pixel dimensions. Never resample upward to reach a DPI number: it invents detail, enlarges the file and softens the picture.

Does increasing DPI improve image quality?

No. Changing the metadata field does nothing at all. Resampling upward to a higher pixel count makes the file larger while making the image slightly softer, because the software is interpolating pixels that were never captured. Quality comes from how the image was captured, not from a number applied afterwards.

What DPI should I scan a document at?

200 DPI greyscale for ordinary printed text you will read on screen — comfortable for 10pt type and a quarter of the data of 300 DPI colour. Use 300 DPI for small print, handwriting, anything that will be printed, or if you intend to run OCR. 600 DPI is archival and produces files around forty times larger than 150 DPI greyscale for no on-screen benefit.

Do it now, in this tab

Each of these opens the tool with the target already set. It runs on your own machine — nothing is uploaded, there is no watermark and no signup, and the output is measured before you get it.

Reference

The limits this guide refers to

Each number carries the date it was last checked against the platform's own documentation.