Quick Definition
Image resolution is the number of pixels in a picture, written as width by height. DPI counts ink dots a printer lays down. PPI counts pixels packed into an inch of print or screen. On the web only the pixel count matters, since browsers fix one CSS inch at exactly 96 pixels.
Image resolution is simply how many pixels your picture contains, written as width by height. A 3000 by 2000 photo holds six million of them. DPI and PPI are the two numbers people argue about on top of that, and here's the short version: DPI counts dots of ink on paper, PPI counts pixels squeezed into an inch, and neither one changes a single pixel of your file. They only describe how big those pixels get printed. For anything that lives on a screen, the DPI value stored in your file is ignored outright, because the CSS specification pins one inch to exactly 96 pixels no matter what your image claims.
That one fact clears up most of the confusion. Below you'll find where each number actually matters, the maths for working out print sizes, what to use on the web, and why the famous "72 DPI for web" advice is wrong. If you just want to see what you're working with, our free image size checker reads the dimensions of any file on your own device.
What Is Image Resolution, Really?
A digital photo is a grid. Resolution is the size of that grid. How much you can crop, how large you can print, whether a logo stays crisp on a big monitor: it's all a question of whether you have enough pixels for the job.
What resolution is not: file size. A 4000 by 3000 photo saved as a heavily compressed JPEG might be 400 KB, while the same picture saved as PNG could be 12 MB. If you want to shrink the file rather than the grid, that's a compression job, and the measured results in our format guide show both dials at work.
Quick check: Multiply width by height and divide by a million to get megapixels. 4000 × 3000 = 12,000,000, so 12 MP.
What's the Difference Between DPI and PPI?
They get swapped constantly. The US National Archives put it plainly in an August 2023 explainer: "Today, people use dpi and ppi interchangeably, though they are entirely different measures."
DPI is dots per inch. It's a printer term. NARA defines it as "how many dots of ink can be displayed or printed within one inch of space." An inkjet printer needs several dots to reproduce one pixel's colour, which is why a printer rated at 1440 DPI isn't asking you for a 1440 PPI file.
PPI is pixels per inch. It answers a different question: if I print this grid at a given physical size, how densely packed will the pixels be?
Here's the part that trips everyone up. PPI isn't baked into the pixels. It's a note attached to the file saying "print me at this density." A 3000 by 2000 photo tagged 300 PPI and the same photo tagged 72 PPI have identical pixels. One prints at 10 inches wide, the other at 41.7 inches wide and looking rough.
| Term | What it counts | Where it applies |
|---|---|---|
| Resolution | Total pixels, width by height | The file itself |
| PPI | Pixels per inch of output | Print size and screen density |
| DPI | Ink dots per inch | The printer hardware |
Does DPI Do Anything to an Image on a Screen?
No. Not one thing.
The W3C CSS Values and Units Module Level 4 defines 1in as exactly 96px, and one CSS pixel as 1/96th of an inch. That ratio never changes. It doesn't consult your monitor, and it certainly doesn't consult the DPI field in your JPEG header.
So when a browser lays out your image, it reads the pixel dimensions and nothing else. A 1200 by 800 image tagged 72 DPI and one tagged 600 DPI render identically. The tag is dead weight on the web.
If you want the density of the display rather than the file, CSS has a separate unit. The spec notes that "due to the 1:96 fixed ratio of CSS in to CSS px, 1dppx is equivalent to 96dpi." You'll see it in media queries like @media (min-resolution: 2dppx), which is how a site serves sharper images to dense screens.
Where Does the DPI Number Actually Live in the File?
In a handful of header bytes that have nothing to do with your pixels. In a JPEG, the usual home is the Exif block.
The Exif standard, published jointly as JEITA CP-3451C and CIPA DC-008-2012, defines XResolution and YResolution with a default of 72, plus a ResolutionUnit tag that defaults to inches. On XResolution it says: "When the image resolution is unknown, 72 [dpi] shall be designated."
So 72 usually means nobody said. It's the placeholder the Exif standard tells software to write when the real answer isn't known. It was never a recommendation, and it certainly isn't a web setting.
Three practical consequences fall straight out of this.
- Stripping metadata resets the print size. Plenty of optimisers remove Exif by default. The pixels survive, but the density note goes with the metadata, and the next program to open it falls back to 72. Our format guide's metadata section covers what else gets dropped.
- Changing DPI is lossless. You're rewriting a few bytes of header, not touching a pixel. Setting a file to 300 DPI doesn't add detail and can't damage the image.
- "A 300 DPI image" isn't a full spec. A 400 by 300 photo tagged 300 DPI meets the request and prints at barely more than an inch across. What matters is the pixel count and the physical size you want. The resizing section below covers how to hit a target size.
What Resolution Do You Need for Print?
The working standard is 300 PPI. NARA traces the number back to the point where "it equated to the human eye's ability to perceive detail in an 8 x 10-inch print held at arm's length."
US federal agencies have codified it. Under 36 CFR §1236.50, agencies digitising permanent records must produce image files at "a minimum of 300 ppi sized to the source document" for modern textual paper records, and at a minimum of 400 ppi for photographic prints. The tables allow a 2 percent variance, so the real floor is 294 PPI for text and 392 PPI for photographs.
There's a catch if you're buying a scanner. The National Archives says in its explainer on DPI and PPI that "true optical resolution is not determined by the scanner settings, but by how well the device resolves the fine detail." A scanner advertising a huge DPI figure may just be interpolating up to it.
For everyday printing, here's the practical range:
- 300 PPI for photos, brochures, business cards, anything held in the hand.
- 400 PPI for photographic prints and fine detail you plan to archive, matching the federal floor.
- 150 PPI for large posters seen from a metre or more away.
- 50 to 100 PPI for banners and billboards, where nobody is standing close enough to count pixels.
Viewing distance is doing the work in that list. The further back the viewer stands, the fewer pixels per inch you need.
How Do You Work Out the Pixels You Need?
One line of arithmetic. Inches times PPI equals pixels.
Want a 4 by 6 inch print at 300 PPI? That's 4 × 300 = 1200 and 6 × 300 = 1800, so you need 1200 by 1800 pixels.
| Print size | At 300 PPI | At 150 PPI |
|---|---|---|
| Business card, 3.5 × 2 in | 1050 × 600 | 525 × 300 |
| Postcard, 4 × 6 in | 1200 × 1800 | 600 × 900 |
| A4, 8.27 × 11.69 in | 2481 × 3507 | 1241 × 1754 |
| Photo print, 8 × 10 in | 2400 × 3000 | 1200 × 1500 |
| Poster, 18 × 24 in | 5400 × 7200 | 2700 × 3600 |
Run it the other way to find out how big you can go with what you already have. Divide pixels by your target PPI. A 4000 by 3000 photo at 300 PPI gives 13.3 by 10 inches, comfortably enough for an A4 print with room to trim.
Once you know the target, our free image resizer gets you there in the browser, and the resizing section below shows the settings that matter, with measured results.
📐 Resize an Image Free →What Resolution Should Web Images Be?
Forget PPI entirely. Think in pixel widths and the layout slot the image has to fill.
- Blog body images: 1200 px wide covers most content columns with headroom.
- Full width hero banners: 1920 px, or 2400 px if you want it sharp on large dense displays.
- Thumbnails and cards: 400 to 600 px wide.
- Product photos with zoom: 2000 px on the long edge.
- Social posts: follow the platform spec, which our cropping guide lists in full.
Serve roughly the width the image will occupy, not the width your camera produced. Uploading a 6000 px original into an 800 px slot means the browser downloads several megabytes and throws most of them away.
That's the normal failure, not a rare one. The Web Almanac 2024 Media chapter estimates that about half of mobile pages send a largest image bigger than the mobile crawler can actually display. Format matters too, and the PNG vs JPG vs WebP comparison breaks down which to pick for which job.
How Do You Resize a Photo Without Distorting It?
Keep the aspect ratio locked, change only one side, and crop separately if you need a different shape. Resizing changes how many pixels there are. It never decides what to cut off, so forcing a landscape photo into a square squashes it. We checked this on our own image resizer with an 1800 x 1200 photo, running it in headless Chromium so every number below is a real output.
| What we asked for | What we got | File size |
|---|---|---|
| Width 1080, aspect ratio locked | 1080 x 720 | 179.4 KB |
| "Instagram 1080" square preset, lock on | 1080 x 720, height followed the photo | 179.4 KB |
| Same preset, lock off | 1080 x 1080, squashed sideways | 253.3 KB |
| 50 percent | 900 x 600 | 125.4 KB |
| Target file size of 100 KB | 792 x 528 | 74.1 KB |
| Upscale to 16000 x 10667 (about 171 megapixels) | Worked in 2.6 seconds | 8.39 MB |
| Upscale to 24000 x 16000 (384 megapixels) | The browser refused | No file |
If you need a square or a 4:5 post from a landscape photo, crop to that shape first and then resize. Our cropping guide covers the ratios each platform wants. The table also shows that hitting a file-size target can cost you pixels. The tool couldn't get that photo under 100 KB at full size, so it shrank it to 792 pixels wide. That's fine for an email or a form upload, but check the result is still big enough for where it's going.
Two more habits save trouble. Resize from the original every time, because resizing a copy that's already been shrunk and re-saved stacks one round of loss on another. And don't treat upscaling as a fix. As the upscaling section explains, enlarging adds pixels but no new detail, and the browser itself has a ceiling. In desktop Chromium that was somewhere between 171 and 384 megapixels. Phones have less memory, so expect them to give up sooner.
How small does a photo need to be for email?
Smaller than the limit, and far smaller than a phone photo straight off the camera. Google's Gmail help page sets the limit for personal accounts at 25 MB. For a photo the recipient will just look at on screen, we'd rarely go wider than about 1600 pixels. A 1080 pixel wide version of our test photo was 179.4 KB, so dozens of them fit comfortably in one message.
One more resizing fact catches people out. The resizer, like every canvas-based tool, drops the photo's EXIF data, so a resized copy no longer carries the GPS location. That's usually what you want before sending a photo to strangers.
Why Do Some Screens Want Images at 2x?
Because a CSS pixel and a hardware pixel stopped being the same thing.
Modern phones and laptops pack two or three physical pixels into the space of one CSS pixel. Feed a 400 px slot a 400 px image and the screen stretches each pixel across a 2 by 2 block, which reads as soft. So supply the image at twice the CSS width: a 600 px slot gets a 1200 px file.
The cost is weight. A 2x image carries four times the pixels, so compress it properly with our free image compressor or use srcset so browsers only fetch the version they need. There's more on the tradeoff in the page speed section of our format guide.
For logos and icons, skip this problem entirely. A vector file has no pixel grid, so it has no resolution to get wrong. W3C describes SVG as offering resolution independence, and says it "provides identical online and hardcopy display." Our format comparison covers when SVG is the right pick.
How Do You Serve the Right Resolution to Every Screen?
You don't pick one. You offer several and let the browser choose. The srcset attribute has two ways to write it.
Density descriptors, for a fixed-size image. If your logo always renders 200 px wide, you just need a sharper copy for dense screens:
<img src="logo-200.png" srcset="logo-400.png 2x" alt="Logo">
Per MDN's reference on the img element, when you use x descriptors the src file is treated as the 1x candidate. Low-density screens get the small one, dense screens get the big one.
Width descriptors, for an image that changes size with the layout. This is the one most content images need:
<img src="photo-800.jpg" srcset="photo-400.jpg 400w, photo-800.jpg 800w, photo-1600.jpg 1600w" sizes="(max-width: 600px) 100vw, 800px" alt="Photo">
The w values state how wide each file actually is in pixels. The sizes attribute tells the browser how wide the image will be displayed, which it can't work out before layout. It factors in the device pixel ratio and downloads the best match.
The mistake that breaks it: getting sizes wrong. If you claim the image fills the viewport when it actually sits in an 800 px column, the browser fetches a file far larger than needed. The w numbers must be the real pixel widths of the files too.
Plenty of sites still skip this. The 2024 Web Almanac found srcset on 42 percent of mobile pages, up from 34 percent the last time it checked. Resize and compress properly first, then let srcset pick between your good files. Our image resizer and compressor both run in your browser, so you can produce the set without uploading anything.
Can You Increase the Resolution of an Image?
You can make the pixel count bigger. You can't invent detail that was never captured.
Upscaling works by interpolation. The software looks at the pixels it has and guesses what should sit between them. Older methods like bicubic average their neighbours, which is why enlarged images go soft. AI upscalers guess with far more context and often look genuinely good, but they're still generating plausible detail rather than recovering the real thing.
That gives you a simple rule: trust an upscale for texture, not for facts. Foliage, fabric, sky and blurred backgrounds are fine. Text, logos, numbers, faces that need to be identifiable, and anything used as evidence or a medical record aren't, because a confident wrong pixel becomes a confident wrong fact. And an upscaled file can hit 300 PPI on paper while still looking soft in the hand.
The practical advice is boring and effective. Find the largest original you have before you upscale anything, and run it through the image size checker. The version someone sent you over WhatsApp is already compressed and shrunk, and no amount of enlarging brings back what that trip removed.
Which Resolution Mistakes Cost People the Most?
Four keep showing up.
Setting DPI instead of pixels for web work. Changing a file from 72 to 300 DPI in an export dialog does nothing to how it appears in a browser. Change the pixel dimensions instead.
Sending a screen sized image to print. A 1200 px wide file at 300 PPI covers 4 inches. Ask a printer for A4 from it and you get visible softness across the page.
Cropping first, then discovering you're short. Cropping throws pixels away permanently. If you plan to print, crop conservatively and check the remaining dimensions against your target before you commit. The image cropping guide covers this in more detail.
Resizing the same file repeatedly. Every JPEG save runs lossy compression again on whatever survived the last one. Keep one high resolution master and export copies from it rather than editing the export.
One habit that solves most of this: archive the biggest version of every image you produce, and treat every web or print file as a disposable export from that master.
What Else Do People Ask?
Is 72 DPI the correct resolution for web images?
No. 72 DPI is just the default the Exif standard falls back on when nothing else is known, and it has no effect on how a browser renders your picture. The CSS specification fixes one inch at exactly 96 pixels, so browsers ignore the DPI value stored in the file completely. Set the pixel width and height you actually want and leave the DPI field alone.
What is the difference between DPI and PPI?
DPI counts the dots of ink a printer can lay down across one inch of paper. PPI counts pixels, either packed into one inch of a print or into one inch of a screen. The US National Archives describes them as entirely different measures that people now use interchangeably. Printers deal in DPI. Files and screens deal in PPI.
What resolution do I need to print a photo?
Multiply the print size in inches by 300 PPI. A 4 by 6 inch print needs 1200 by 1800 pixels, and an 8 by 10 needs 2400 by 3000. US federal digitisation rules set 300 PPI as the floor for modern paper records and 400 PPI for photographic prints. Big posters viewed from further away can drop to 150 PPI.
Can you increase the resolution of an image?
You can enlarge the pixel count, but you cannot recover detail that was never captured. Upscaling invents new pixels by guessing from the ones around them, which softens edges and smears fine texture. AI upscalers guess more convincingly than older methods, though they are still guessing. Always go back to the largest original file you have first.
How do I check the resolution of an image?
Right click the file and open its properties or info panel, where the pixel width and height are listed. On the web you can drop the file into a browser based checker that reads the dimensions on your own device without uploading anything. The number that matters is the pixel count, not whatever DPI value the file happens to carry.
Know the pixels you need? Our free image resizer and image size checker both run in your browser, so nothing gets uploaded anywhere.
📐 Resize an Image Free →Read next: PNG vs JPG vs WebP: Which Format to Use · How to Crop Images for Every Platform · Small Business Worked Examples