Skip to content

Image Tools guides

Image Size vs Dimensions: What’s the Difference?

By · Published · 8 min read

Image dimensions are the width and height in pixels, such as 4032 × 3024; image size usually means the file size in KB or MB, which depends on the format, the quality setting and the picture itself as well as the pixel count. The two can move in opposite directions: our 12-megapixel test photo is 3.7 MB as a JPG, while a 1600 × 1200 copy of it saved as PNG is 4.4 MB. Resizing changes the pixels; compression changes the bytes.

“Reduce the image size” can mean two completely different things, and the wrong reading wastes an afternoon: a photo shrunk to a quarter of its pixels is still rejected by a form that wanted fewer kilobytes, and a photo compressed to 200 KB is still too big for a template that wanted 600 pixels. The two numbers are measured in different units, changed by different tools, and they can move in opposite directions.

Three numbers that get called “size”

People sayThey meanUnitsOur test photoChanged by
Dimensions, resolution, pixel sizeHow many pixels wide and tall the picture ispx, megapixels4032 × 3024 px, 12.2 MPResizing, cropping
File size, image size, weightHow much storage the file takesbytes, KB, MB3,877,205 bytes, 3.7 MBCompression, format, resizing
Display or print sizeHow large it appears on a screen or papercm, inches, CSS pixels13.4 × 10.1 in at 300 PPIThe page or the printer, not the file

The rest of this article is about the first two, because they are the ones forms, templates and upload boxes confuse. The third is covered in DPI vs PPI.

Dimensions: how much picture there is

An image is a grid of pixels, and its dimensions are the number of columns and rows in that grid, written width × height: 4032 × 3024, 1920 × 1080, 600 × 600. Multiply the two and you have the total number of pixels, which cameras quote in megapixels: 4032 × 3024 = 12,192,768, about 12.2 MP. The dimensions decide how much detail the picture can hold and how large it can be shown or printed before it looks soft. They say nothing about how many bytes it takes to store.

“Resolution” is the awkward word here. Camera makers and phone settings use it for the pixel dimensions (a “12 MP resolution”). Print shops and scanners use it for pixels per inch, which is a density, not a count. When a form says “minimum resolution 600 × 600”, it means dimensions; when it says “300 DPI”, it almost always means “enough pixels for the print size”, and the DPI guide works that number out.

File size: how many bytes it takes to store

File size is the length of the file on disk, in bytes, shown as KB or MB. It is what an upload limit of “2 MB”, an email attachment cap or a “keep it under 100 KB” rule is talking about. Five things decide it:

  • The pixel count. More pixels means more to store, all else being equal. This is the only link between the two numbers, and it is why resizing also shrinks the file.
  • The format. JPG and lossy WebP discard detail the eye barely notices and store the rest compactly. PNG stores every pixel exactly, which for a photo costs many times more bytes. JPG vs PNG vs WebP compares them.
  • The quality setting. For JPG and WebP, a lower quality throws away more detail and saves more bytes, at the same pixel dimensions.
  • What is in the picture. Flat colour, sky and plain walls compress to almost nothing; foliage, fabric, grain and noise barely compress at all. Two photos with identical dimensions and settings can differ in size several times over.
  • Metadata. Camera settings, dates and location travel inside the file, but they are small: the test photo carries about 15 KB of it, under half a percent of the file.

One more trap: a kilobyte is 1,000 bytes to some programs and 1,024 to others, so the same file can read 48.8 KB in one place and 50 KB in another. When a limit is tight, work in bytes; the 50 KB guide shows how.

Why a bigger image can be a smaller file

Because the two numbers have different causes, they do not have to agree. We ran the 12-megapixel test photo through the image resizer in Chrome and saved the result in different ways. Every file in the table is the same picture.

VersionDimensionsPixelsSaved asFile size
Original from the camera4032 × 302412.2 MPJPG3.7 MB (3,877,205 bytes)
Resized1600 × 12001.9 MPPNG4.4 MB (4,630,413 bytes)
Resized1600 × 12001.9 MPJPG, 90%548 KB (561,123 bytes)
Resized1600 × 12001.9 MPJPG, 75%313 KB (320,217 bytes)
Resized400 × 3000.12 MPJPG, 90%36.2 KB (37,072 bytes)
Sample copy enlarged back to full size4032 × 302412.2 MPJPG, 90%2.0 MB (2,097,216 bytes)

4032 × 3024 JPG from the camera: 12.2 megapixels, 3.7 MB.

1600 × 1200 saved as PNG: 1.9 megapixels, 4.4 MB.

1600 × 1200 saved as JPG at 90%: 1.9 megapixels, 548 KB.

Frames are drawn to scale for the pixel dimensions and bars to scale for the file size. The middle image has a sixth of the pixels of the first, and more bytes.

Three rows tell the story. The PNG has a sixth of the original’s pixels and is a fifth larger, because lossless storage of a photo costs more than the camera’s own JPG compression saved. The two JPGs at 1600 × 1200 are the same picture at the same size and differ by 40% on quality alone. And the last row has exactly the original’s dimensions at a little over half its bytes, yet it is the worst file in the table: it was made by enlarging the 2016 × 1512 sample copy, so it holds the detail of 3 megapixels spread across 12. Dimensions tell you how many pixels there are, not how much each one is worth.

Image Dimensions Checker

Shows the exact width and height, aspect ratio, megapixels and file size of up to 20 images at once, so you can see both numbers before you upload.

Check an image

Which tool changes which number

  • Resizing changes the dimensions, and the file size follows: fewer pixels, fewer bytes. It is the right tool when a requirement is in pixels, and a strong first move when it is in KB, because a 4000-pixel photo rarely needs to stay that wide. Shrinking keeps every detail that could be seen at the new size; only enlarging costs quality, because it has to invent pixels.
  • Compressing changes the file size and leaves the dimensions alone. The image compressor keeps 4032 × 3024 at 4032 × 3024 and stores it in fewer bytes. It is the only answer when the pixels must stay as they are.
  • Cropping changes the dimensions by removing part of the picture, and the file shrinks in proportion to what was cut.
  • Converting changes the format, so it changes the file size, often dramatically, without touching a single pixel.

Reading a requirement

Most rules name their unit, if you know what to look for:

  • “Maximum 2 MB”, “under 100 KB”, “up to 5 MB per file”: file size. Compress, and resize if the image is far larger than it will ever be displayed.
  • “At least 600 × 750 pixels”, “1080 × 1080”, “minimum 5 MP”: dimensions. Resize or crop; no amount of compression changes these.
  • “300 DPI”: usually dimensions in disguise. Multiply the print size in inches by 300 to get the pixels you need.
  • “Image size” with no unit: look at the examples the form gives. “Image size: 2 MB” is bytes; “image size: 800 px” is dimensions. A form that gives both means both, and you meet the pixel rule first, then the byte rule.

How to see both numbers

The image dimensions checker reads the width and height from the decoded picture and shows the file size next to them, for up to 20 files at once. Without it: on Windows, right-click the file, choose Properties and open Details, where Dimensions and Size sit a few rows apart; on a Mac, select the file and press Command-I, and Get Info lists the size at the top and the dimensions under More Info. In both, the number with “KB” or “MB” after it is the file size, and the pair with “×” between them is the dimensions.

Frequently Asked Questions

Which number does an upload form mean by “image size”?

Look at the unit next to its example. KB or MB means file size; px or a pair like 600 × 600 means dimensions; MP means dimensions too. A form that gives no unit usually means file size, because that is the limit its server enforces. When both are given, meet the pixel rule first by resizing, then the byte rule by compressing.

Does a 300 DPI image have a larger file size than a 72 DPI one?

No. The DPI value is a few bytes of metadata that suggests a print size; it changes neither the pixels nor, in any meaningful way, the bytes. Two copies of the same image labelled 300 and 72 DPI have the same dimensions and the same file size to within a handful of bytes.

Is a higher megapixel count always a better photo?

No. Megapixels count the pixels, not what is in them. A 12-megapixel photo made by enlarging a 3-megapixel one has the same dimensions as a real 12-megapixel photo and far less detail, and a sharp 8-megapixel photo from a good lens beats a soft 48-megapixel one from a tiny sensor. Dimensions set an upper limit on detail; they do not guarantee it.

Does renaming a file from .png to .jpg change its size or format?

No. Renaming changes only the name. The file keeps every byte, so its size and dimensions are unchanged, and it is still a PNG inside, which is why some uploads then fail with a format error. To change the format, convert the file with a converter, which writes a new file in the new format.