Skip to content

BlogImages6 min read

Pixels, DPI and file size: how big does a photo need to be?

Upload forms ask for 300 DPI, print shops for high resolution, and phones save 12 megapixel photos. We tested what the DPI number really does, how file size follows pixel count, and how many pixels each use actually needs.

A framed print with rulers along two edges and a magnifying glass showing its pixels, labelled 300 dpi.

Upload forms ask for "at least 300 DPI", print shops ask for "high resolution", and phones save photos of 12 megapixels or more that are then sent as 5 MB attachments. Behind all of it are two different ideas that are easy to mix up: how many pixels a picture has, and how large it is shown. We ran a few tests with our image tools to separate the two.

Pixels hold the detail

A digital photo is a grid of pixels, for example 4032 × 3024 for a typical 12 megapixel phone camera. That grid is all the detail there is. Showing the photo larger spreads the same pixels over more space, and showing it smaller throws some of them away.

Four close-ups of the same tiger face, taken from copies of one photo at 4288, 2144, 1072 and 536 pixels wide and enlarged to the same size. The first two look equally sharp, the third is a little softer, the fourth is clearly blurred.
The same part of one photo at four widths, shown at the same size. Each step keeps a quarter of the pixels. At this display size, 2144 pixels wide is as good as the original; at 536 the fur and eyes have gone soft.

The close-ups show the key point: more pixels only help if they are shown. In the figure, each tile is about 640 pixels across, so the full 4288 pixel original and the copy with a quarter of its pixels look the same. Beyond what the screen or the print can show, extra pixels add weight and no detail.

What DPI really means

DPI (dots per inch, or PPI, pixels per inch) connects pixels to physical size: it says how many pixels go into each inch of paper. A JPEG can store a DPI number in its header, and image editors show it, which gives the impression that it is a property of the picture.

To test it, we saved one photo of a butterfly, 2048 × 1365 pixels, as a JPEG and made two copies that differ only in that header field: one says 72 dpi, the other 300 dpi. The result:

72 dpi copy300 dpi copy
File size276,280 bytes276,280 bytes
Bytes that differ44
Pixel values that differ00
Printed size, by the header28.4 × 19.0 in6.8 × 4.6 in
Two copies of one 2048 × 1365 pixel JPEG. Only the four bytes of the DPI field are different.

On a screen the two files are identical. The only thing the number changes is the size a program suggests when you print or place the photo in a document: 2048 pixels at 300 per inch is 6.8 inches, at 72 per inch it is 28.4 inches. Print software and layout programs usually let you set the size yourself anyway, and the pixels decide whether that size will look sharp.

How many pixels for print

For photos and documents held in the hand, 300 pixels per inch is the usual target. Things seen from further away need less: 150 pixels per inch is plenty for a poster, and billboards use far less. Multiply the print size by the target to get the pixels you need.

Print sizeAt 300 dpiAt 150 dpi
4 × 6 in (10 × 15 cm)1200 × 1800600 × 900
5 × 7 in (13 × 18 cm)1500 × 2100750 × 1050
8 × 10 in (20 × 25 cm)2400 × 30001200 × 1500
A4 (21 × 29.7 cm)2480 × 35081240 × 1754
A3 (29.7 × 42 cm)3508 × 49611754 × 2480
Poster 24 × 36 in (61 × 91 cm)7200 × 108003600 × 5400
Pixels needed, width × height. One inch is 2.54 cm.

A 12 megapixel phone photo, 4032 × 3024 pixels, prints at 13.4 × 10.1 inches (34 × 26 cm) at 300 dpi, larger than most people ever print. If your photo has fewer pixels than the table asks for, it can still print well at a smaller size, or at a lower density on a larger print viewed from further away.

How many pixels for screens

Screens are measured in pixels directly, so the question is simply how wide the picture will be shown. Phones and many laptops have high density screens that use two or three physical pixels per layout pixel, which is why pictures are often made at twice the size they are shown.

UsePixels
Instagram post1080 × 1080, or 1080 × 1350 portrait
Instagram or TikTok story1080 × 1920
YouTube thumbnail1280 × 720
Link preview image1200 × 630
Full width picture on a website1920 to 2560 wide
Picture inside an emailTwice the width it is shown at, often 1200
Profile picture400 × 400
Most of these are presets in the image resizer.

Social networks resize whatever you upload to their own sizes, so uploading 6000 pixels wide gains nothing and can make their compression work harder. Resize first and you control the result.

Pixels and file size

File size grows with the number of pixels. We saved one CC0 photo of a tiger, 4288 × 2848 pixels, at seven widths with the JPEG encoder of our image compressor at quality 80:

The same photo as a quality 80 JPEG, by width
  • 4288 px, 12.2 MP802 KB
  • 3000 px, 6.0 MP404 KB
  • 2048 px, 2.8 MP219 KB
  • 1600 px, 1.7 MP152 KB
  • 1080 px, 0.8 MP84 KB
  • 800 px, 0.4 MP53 KB
  • 400 px, 0.1 MP19 KB

Halving the width keeps a quarter of the pixels and, here, a little over a quarter of the bytes.

Smaller pictures cost slightly more per pixel, because each pixel then carries more detail, but the rule holds: halve the width and the file shrinks to roughly a quarter. That makes resizing the most effective way to make a photo smaller, far more than lowering the JPEG quality, which we measured in our JPEG quality test.

Enlarging does not add detail

The other direction does not work. Making a 1000 pixel photo 3000 pixels wide gives the printer more pixels, but every new pixel is calculated from its neighbours, so the result is a larger, softer copy of the same picture. Always start from the largest original you have and only make it smaller.

Step by step

  1. Decide where the picture will end up: a print size, a social network, a website or an email.
  2. Look up the pixels it needs in the tables above.
  3. Open the image resizer, add your photos and pick a preset, or type the width. It keeps the shape of the photo unless you choose otherwise.
  4. For a file size limit as well, finish with the image compressor, which can aim for a target such as 200 KB.

Both tools work in your browser, so the photos stay on your device.

Questions and answers

Does changing DPI change image quality?

No. DPI is only a number in the file header that suggests a print size. In our test, the 72 and 300 dpi copies of one JPEG had identical pixels. Only the pixel dimensions change quality.

What resolution do I need to print a photo?

About 300 pixels per inch for prints held in the hand: 1200 × 1800 pixels for 4 × 6 inches and 2480 × 3508 for A4. Posters seen from a distance look fine at 150.

What size should photos be for a website?

The width they are shown at, times two for sharp screens: often 1920 to 2560 pixels for full width pictures and 800 to 1200 for pictures in the text.

Why are phone photos so large?

Phones save 12 megapixels or more with mild compression. Resizing a 4032 pixel wide photo to 2048 pixels cuts the file to about a quarter.

Tools in this article

More from the blog

Images6 min read

JPG, PNG, WebP or AVIF: which format to use

We saved six photos and a graphic in all four formats at the same visual quality and compared the sizes. The newer formats win on photos by a wide margin, but each format still has a job.

Images6 min read

SVG vs PNG: which to use for logos, icons and illustrations

SVG stores shapes and PNG stores pixels, and that decides which one fits a job. We measured five SVGs of very different complexity against PNG copies at four sizes, and traced a logo, a seal and a photo back to SVG.

Images5 min read

Which JPEG quality setting should you use?

Every program that saves JPEG asks for a quality from 0 to 100, and the trade between size and quality is far from linear. We saved six photos at twelve settings and measured what each step changes.

Esc