InputTestHub

Pixels, DPI and Why Your Image Is Too Big

Four different things get called "image size", and mixing them up is why an upload gets rejected, a print comes out blurry, or a photo that looked fine on a phone turns into a 9 MB email attachment.

12 min read · updated 12 September 2026 · links to 12 tools

In short An image has exactly one real dimension: its pixel grid, such as 4000 × 3000. Everything else is derived from it or attached to it. DPI is not a property of the file at all — it is an instruction telling a printer how densely to lay those pixels down, so the same 4000 × 3000 photograph prints 13.3 × 10 inches at 300 DPI and 55.6 × 41.7 inches at 72, with not one pixel changed. The rule is pixels = inches × DPI, which is why a 4 × 6 print at 300 DPI needs 1200 × 1800 pixels. Aspect ratio is the shape of the grid, and forcing a 4:3 photo into a 1:1 square discards a quarter of it. File size is a fourth thing again: it depends on the compression, not only on the dimensions. A 4000 × 3000 photo is 34.3 MB of raw pixels and perhaps 3 MB as a JPEG, and lowering the JPEG quality shrinks the file while leaving the pixel dimensions exactly where they were.

Four different things are all called "size"

Before anything else, separate them, because almost every image problem is one of these being confused with another.

Dimensions are the pixel grid — 4000 × 3000. This is the only measurement the file really has. DPI is a number stored alongside the pixels that tells a printer how tightly to pack them; it changes nothing about the image. Aspect ratio is the shape, the width divided by the height, which decides what has to be cut off to fit a different shape. File size is how many bytes the file occupies, which depends mostly on the compression applied.

A request to "make this smaller" can mean any of the four. Working out which one is being asked for solves most of the problem before you open a tool.

DPI is an instruction for a printer, not a property of the file

This is the single most common misunderstanding, and it is worth being blunt: changing the DPI number without resampling does not change your image. Every pixel stays exactly where it was. The only thing that changes is how large it comes out of a printer.

The relationship is one multiplication. Pixels = inches × DPI. So a 4000 × 3000 photograph at 300 DPI prints 13.3 × 10 inches, and the same file at 72 DPI prints 55.6 × 41.7 inches — much bigger, and much worse, because the same twelve million pixels are being spread over sixteen times the area.

This also means "save it at 300 DPI" is not something you can do to a small image to improve it. If a printer wants 8 × 10 inches at 300 DPI, it wants 2400 × 3000 pixels, and no metadata field will conjure them.

Print sizeAt 300 DPIAt 150 DPIAt 72 DPI
4 × 6 in1200 × 1800 px600 × 900 px288 × 432 px
5 × 7 in1500 × 2100 px750 × 1050 px360 × 504 px
8 × 10 in2400 × 3000 px1200 × 1500 px576 × 720 px
A4 (210 × 297 mm)about 2480 × 3508 pxabout 1240 × 1754 pxabout 595 × 842 px
One 4000 by 3000 pixel photograph shown beside three nested sheet outlines sharing a corner: 13.3 by 10 inches at 300 DPI, 26.7 by 20 inches at 150 DPI, and 55.6 by 41.7 inches at 72 DPI.
Three sheets, one file. The pixels are identical in all three; only the instruction about how densely to place them differs.
The "72 DPI for screens" rule is a fossil. Screens have not been 72 pixels to the inch for decades and a browser ignores the DPI tag entirely — it lays out by pixels. For anything that will only ever be looked at on a screen, the DPI field is simply irrelevant.

Aspect ratio decides what gets thrown away

Aspect ratio is width divided by height, reduced: 4000 × 3000 is 4:3, 1920 × 1080 is 16:9, a square is 1:1.

Changing the ratio means one of two things must happen, and it matters a great deal which. Cropping keeps the pixels it keeps and discards the rest — the subject stays the right shape, but part of the frame is gone. Stretching keeps everything and distorts it, which is why faces occasionally look wrong in a badly built banner.

The arithmetic is worth knowing before you crop. Taking a 4:3 photo into a 1:1 square keeps 3000 × 3000 and throws away a quarter of the picture. Taking the same photo to 16:9 keeps 4000 × 2250 and also throws away a quarter, from the top and bottom instead of the sides. In both cases, whatever you cared about needs to survive inside that region.

RatioWhere it turns upFrom a 4000 × 3000 photo
4:3most phone and compact camerasthe original, 12.0 MP
3:235 mm film and most DSLRscrop to 4000 × 2667
16:9video, monitors, wide bannerscrop to 4000 × 2250, losing 25%
1:1square social posts, avatarscrop to 3000 × 3000, losing 25%
4:5tall social postscrop to 2400 × 3000, losing 40%

Resizing: halving the sides quarters the pixels

Pixel count grows with area, not with width, and this catches people out constantly. A 4000 × 3000 image is 12 megapixels. Halve both sides to 2000 × 1500 and it is 3 megapixels — a quarter, not a half.

That is good news for file size and it is why resizing is usually the right first move when something is "too big". Most images on the web are displayed at well under 2000 pixels wide, so a 4000-pixel original is carrying four times the data anyone will ever see.

Going the other way does not work. Enlarging invents pixels by interpolating between the ones you have, and while the file gets bigger, the detail does not come back. If a print needs 2400 × 3000 and you have 1200 × 1500, the honest answer is a smaller print.

Resize once, from the original, to the size you actually need. Resizing a resized copy compounds the softening, and each step is irreversible.

File size is a fourth thing, and compression is where it lives

A 4000 × 3000 image is twelve million pixels, and at three bytes each that is 34.3 MB of raw data. The JPEG on your phone is perhaps 3 MB, which is a compression ratio of about 11 to 1 — and it looks essentially identical, because JPEG discards detail the eye does not readily notice.

That is the key point: file size is not fixed by the dimensions. The same 4000 × 3000 photograph can be 8 MB or 800 KB depending only on the quality setting. So when an upload is rejected for being too large, there are two independent levers — make the grid smaller, or compress harder — and they can be used together.

JPEG quality is not a percentage of anything meaningful, so the only reliable approach is to try a setting and look at the result. Quality around 80 is usually indistinguishable from the original at normal viewing size while being a fraction of the bytes.

Every JPEG save throws something away again

JPEG is lossy, and the loss happens at every save, not only the first. Open a JPEG, make a small change, save it, repeat — and the image degrades a little each time. This is generation loss, and it is why a picture that has been through a dozen shares and re-saves looks smeared around edges and lettering.

It matters most for anything with hard edges: text, screenshots, logos, line drawings. JPEG was designed for photographs, where detail is soft and continuous, and it handles a sharp black-on-white edge badly by creating a faint halo around it.

The habit that avoids all of it: keep your original, and export copies from it. Never edit the copy you exported last time.

Which format, and when

The choice is mostly decided by what is in the picture rather than by preference.

FormatCompressionUse it forAvoid it for
JPEGlossyphotographs, anything soft and continuoustext, screenshots, logos, transparency
PNGlosslessscreenshots, logos, line art, transparencyphotographs — the files are very large
WebPeitheralmost everything on the web; typically 25–35% smaller than JPEG at the same visual qualityworkflows that must open in very old software
SVGnot applicablediagrams, icons and charts — it is drawing instructions, so it is sharp at any sizephotographs, which are not drawable as shapes
PNG being lossless does not make it better. A photograph saved as PNG can be ten times the size of the same photograph as a good JPEG, with no visible gain — the lossless part is only worth paying for when the exact pixels matter, which is true of a screenshot and false of a sunset.

Your photos are carrying more than pixels

Most cameras and phones write EXIF metadata into the file: the exact date and time, the camera model, the exposure settings, and on a phone very often the GPS coordinates of where the picture was taken.

That data travels with the file. Sending a photograph of something for sale, or a screenshot of a document, can hand over the location it was taken at without anyone intending it. Some social platforms strip metadata on upload and some do not, and there is no way to tell by looking.

The fix is small: look at what is in the file, and remove it before sharing if it should not be there. Both operations run entirely in your browser on this site — reading the metadata and stripping it never send the image anywhere, which for a file that contains your home coordinates is not a small detail.

A short checklist for the common cases

  1. "Upload says the file is too large." Resize the longest side to what the destination actually displays, then compress. In that order — compressing a needlessly huge grid wastes quality you did not have to spend.
  2. "The print came out blurry." Work out the pixels the printer needs: inches × DPI. If you do not have them, print smaller rather than enlarging.
  3. "The image looks squashed." Something changed the aspect ratio without cropping. Crop to the target ratio first, then resize.
  4. "My screenshot looks fuzzy." It was saved as JPEG. Screenshots are PNG or WebP.
  5. "Which format for the web?" WebP unless something in the chain cannot read it, and then JPEG for photographs, PNG for everything with hard edges.

What these tools do not do

Every image tool on this site runs in your browser using the Canvas API, so the file is never uploaded. That is a privacy property and also a limit: very large files are bound by your own device's memory, and results can differ slightly between browsers because the resampling is theirs, not ours.

None of these will recover detail that is not in the file. Enlarging, sharpening and "enhancing" all work with the pixels present; where the information was never captured, nothing can supply it.

Frequently asked questions

How many pixels do I need for a 300 DPI print?
Multiply the print size in inches by 300. A 4 × 6 print needs 1200 × 1800 pixels, an 8 × 10 needs 2400 × 3000, and A4 needs about 2480 × 3508.
Does changing DPI change my image quality?
No, not on its own. Changing the DPI tag without resampling leaves every pixel exactly where it was and only changes how large the image prints. Quality changes when the pixel dimensions change.
Why is my phone photo 9 MB?
Because it is around twelve million pixels saved at a high quality setting. The same picture resized to 1600 pixels wide and saved at quality 80 is usually a few hundred kilobytes and looks the same on any screen.
What is the difference between resizing and cropping?
Resizing changes the pixel dimensions and keeps the whole picture. Cropping keeps the pixel density and discards part of the frame. Changing the aspect ratio needs cropping; making a file smaller needs resizing.
Is PNG better quality than JPEG?
PNG is lossless, which is not the same as better. For a photograph a good JPEG is visually identical and a fraction of the size. PNG earns its bytes on screenshots, logos, line art and anything needing transparency.
Does saving a JPEG repeatedly make it worse?
Yes. JPEG discards information at every save, so each round trip degrades the image further — most visibly around text and hard edges. Keep the original and export copies from it.
Do my photos contain my location?
Often, yes. Phones write GPS coordinates into the EXIF metadata by default. You can read what is in a file and strip it before sharing, and on this site both run entirely in your browser.

More guides