Compression4 min read·Updated

How to Check an Image's File Size and Dimensions (Any Device)

File size (KB or MB) is how much storage an image takes; dimensions (for example 4032 × 3024 pixels) are how many pixels it has. On Windows, right-click > Properties shows the size on the General tab and the dimensions on Details; on a Mac, Command-I (Get Info) shows both; on iPhone, swipe up on a photo in Photos. As a rule of thumb, an image inside a web page should be under about 200 KB.

What is the difference between file size and dimensions?

Dimensions are the width and height in pixels; multiply them and divide by a million to get megapixels (4032 × 3024 is about 12 MP). File size is the number of bytes on disk, which depends on the dimensions, the format and the compression quality. The same 1600 × 1200 picture can be 120 KB as a JPEG or 3 MB as a PNG. The dpi or ppi figure is only a print hint and does not change either: see image DPI for the web.

How do I check image size on Windows?

  1. Right-click the image in File Explorer and choose Properties (or select it and press Alt+Enter).
  2. The General tab shows Size.
  3. The Details tab, under Image, shows Dimensions, Width and Height.

Faster: hover over a file in File Explorer to see its dimensions and size in a tooltip, or switch to Details view, right-click a column header and add the Dimensions column to compare a whole folder. Ignore Size on disk; it includes unused space in disk blocks.

How do I check image size on a Mac?

  • Finder: select the file and press Command-I (Get Info). Size is under General, Dimensions under More Info.
  • Preview: open the image and choose Tools > Show Inspector (Command-I) to see the image size in pixels and the file size.
  • Terminal: sips -g pixelWidth -g pixelHeight photo.jpg prints the dimensions; ls -lh photo.jpg prints the file size.

How do I check photo size on iPhone?

Open the photo in Photos and swipe up, or tap the info button (i). On recent iOS versions the panel shows the format (HEIF or JPEG), the megapixels, the pixel dimensions and the file size, for example 24 MP, 5712 × 4284, 2.8 MB. To shrink it from there, see reduce photo size on iPhone.

How do I check photo size on Android?

In Google Photos, open the photo and swipe up (or tap the three dots) to see Details, with the megapixels and pixel dimensions. In Samsung Gallery, swipe up or tap the info button for the file size and resolution. Menu names vary by brand; your Files app also shows a file's size when you open its details.

How do I check an image's size in a browser?

  • Right-click the image and choose Open image in new tab. Chrome and Edge show the dimensions in the tab title, for example photo.jpg (1600×1200); Firefox shows the format and dimensions.
  • Open DevTools (F12, or Option+Command+I on a Mac), go to the Network panel, filter by Img and reload: the Size column shows how many bytes each image cost to download.
  • In the Elements panel, hover over an image's src address to see its Rendered size next to its Intrinsic size. If the intrinsic size is far larger, the page downloads pixels nobody sees.
  • For a whole page at once, paste its address into the image audit: it lists every image and how much compression would save.

What image size is too big?

Working targets. A detailed photo can justify more; a flat graphic should come in well under.

UseGood targetToo big
Thumbnail on a website10–40 KBOver 100 KB
Photo inside an article50–150 KBOver 400 KB
Full-width hero image100–250 KBOver 500 KB
Photo attached to an email200 KB–1 MBOver 3 MB
Upload to an online formUnder the stated limitAnything over it

The reasoning behind these numbers is in what is a good image file size. To hit a precise number, see compress an image to a specific size, or open the compressor and type the target.

Too big? Drop the image in, type a target size, and download a smaller copy.

Put it into practice

Compress your images right now: keep the format or set a target size, free and privately in your browser.

Open the compressor

Frequently asked questions

1,000 KB in the decimal units macOS and most websites use. Windows counts 1,024 KB per MB but still labels them KB and MB, so the same file can look slightly smaller on Windows.

No. Only the pixel dimensions, format and quality change the file size; the dpi value is a print instruction stored in the file.

About 1200–1600 px wide for an image inside an article and 1920–2400 px for a full-width hero, at roughly 50–250 KB.

Forms check the file size or the pixel dimensions, not how big the photo looks on screen. A phone photo can be 3 MB and 4000 px wide even when shown as a thumbnail.

Keep reading

Performance6 min read

Good image file size

Target KB sizes for heroes, content photos and thumbnails, and how to hit them with WebP.

Read more
Compression5 min read

Image DPI for the web

DPI does not matter on the web: it is a metadata tag that changes neither file size nor on-screen size. Size web images in pixels; use 300 DPI for print.

Read more
Compression6 min read

Compress to an exact size

To hit an exact KB target, set the pixel dimensions first, then lower JPEG quality. Size tables for 20, 50, 100, 200, 500 KB and 1 MB, plus a free tool.

Read more