2026-06-28 · Updated 2026-06-30

How to Check Image Size, Dimensions, and File Format

Find an image's exact pixel dimensions, file size in KB or MB, DPI, and format. Methods for Windows, Mac, iPhone, Android, and online, plus what each value means.

How to Check Image Size, Dimensions, and File Format

Last updated: June 30, 2026

Before you resize, compress, or upload an image, you need to know what you are starting with. An image carries several measurements — pixel dimensions, file size, DPI, and format — and each tells you something different about whether the image will work for its destination. This guide covers how to check all of them on every platform, and what the numbers mean for your next step.

How do you see an image's width, height and file size?

Every computer and phone can show the pixel dimensions (width × height) and the file size of the image file itself, without extra software. Follow the steps for your device, then compare the numbers you read with your upload limit or target size.

Windows

  1. Open File Explorer and right-click the image.
  2. Choose Properties and open the Details tab.
  3. Read the width × height in pixels and the file size in KB or MB.

macOS

  1. In Finder, select the image.
  2. Press Command-I, or choose File > Get Info.
  3. Size under General is the file size; open More Info to see the dimensions in pixels.

iPhone

  1. Open the photo in the Photos app.
  2. Swipe up on the photo, or tap the Info button (ⓘ).
  3. The info panel lists the width × height in pixels and the file size.

Android

  1. Open the photo in Google Photos.
  2. Swipe up on the photo to open its details.
  3. The details list the file size and the resolution in pixels. Other gallery apps, such as Samsung Gallery, show the same under Details.

In a browser

  1. Open Imagic AI's image resizer or image compressor and choose the image. Choosing it does not upload it: nothing is sent until you press Resize image or Compress image.

  2. Read the caption at the bottom of the preview: file name · width × height · file size. In the resizer, the Width (px) and Height (px) fields also start at the image's own size.

  3. If the browser cannot display the format (HEIC in many browsers), the caption shows a dash instead of the dimensions, but the file size still shows. Another way: drag the file onto an empty tab in Chrome, Edge or Firefox, and the tab title shows its width × height.

Quick answer: how do you check an image's size and dimensions?

Open the file's details: Properties > Details on Windows, Get Info on a Mac, the info panel in Photos on iPhone, the details in Google Photos on Android, or the caption in Imagic AI's resizer or compressor in any browser (steps above). Each one shows the width × height in pixels and the file size. Once you know both, decide whether to resize, compress, or convert the image before publishing.

What do the different image measurements mean?

Images carry several distinct measurements, and confusing them leads to wrong decisions. Dimensions, file size, DPI, and format each answer a different question.

Measurement What it tells you Units
Dimensions The pixel width and height Pixels (e.g. 4000×3000)
File size How much storage it uses KB, MB
DPI / PPI Print resolution density Dots per inch
Format The encoding and capabilities JPEG, PNG, WebP
  • Dimensions decide how large the image can display or print.
  • File size decides load time and whether it fits an upload limit.
  • DPI only matters for print; screens ignore it.
  • Format decides quality, transparency, and compression behavior.

How do you check image file size?

File size is the number that decides whether an image will load fast or hit an upload limit. Read it with the steps above for your device and compare it against your target.

File size and pixel dimensions are independent. To test it, I resized one 4288x2859 photo to 1600x1066 and saved it four ways. The pixel count never changed, but the files ranged from 229 KB (JPEG quality 60) to 2.7 MB (PNG):

Bar chart: the same photo at 1600x1066 is 229 KB to 2.7 MB depending on format and quality, and an 800x533 PNG is 723 KB

Destination Target file size
Web hero image Under 200 KB
Web inline image Under 100 KB
Email attachment Under 1 MB each
Social upload Platform-dependent
Print Size is less critical than resolution

If the file is larger than the target, the fix is compression — but only after resizing to the display dimensions. Compressing a 4000-pixel image that displays at 800 pixels wastes effort; resize first, then compress. The image file size guide covers the relationship between dimensions, format, and bytes in depth.

Checking DPI and resolution

DPI tells you the print density, and it matters only if the image is going to print. To check it, open the file properties (Windows Details tab) or an image inspector that reads EXIF metadata. For the relationship between DPI and printable size, the DPI guide explains how pixels divided by DPI gives printed inches.

Terminal output of ImageMagick identify: pixel dimensions, DPI, format and file size for one photo, then for a folder

  • Screen images ignore DPI; do not optimize it for web.
  • Print images need 300 DPI for close viewing.
  • A high DPI value does not mean high quality if the pixel dimensions are low.

How big is a photo in centimeters or inches?

A photo has no size in cm or inches until it is printed. That size follows from two numbers you have already read off the file: the pixel dimensions and the DPI.

  • Size in inches = pixels ÷ DPI
  • Size in cm = size in inches × 2.54

Example: a photo that is 1800 × 1200 pixels at 300 DPI prints 1800 ÷ 300 = 6 inches wide and 1200 ÷ 300 = 4 inches high. In centimeters that is 6 × 2.54 = 15.24 cm wide and 4 × 2.54 = 10.16 cm high, the usual 6 × 4 inch print size.

The other two answers are read straight off the file, with no arithmetic:

  • Format: the extension at the end of the file name, .jpg, .png, .webp or .heic (the format iPhones save by default).
  • File size: shown in the file properties in KB or MB, where 1 MB is about a thousand KB. It is the weight of the file, not its pixel dimensions, so photos with the same pixels can have different file sizes.

To change one of these values, use the tool that matches it. The DPI changer sets a new DPI on a JPEG or PNG and leaves the pixels alone, so the print size in cm or inches changes; the resizer changes the pixel dimensions; the converter changes the format; and the compressor reduces the file size.

Checking image format

The format — JPEG, PNG, WebP, GIF, and others — decides how the image compresses, whether it supports transparency, and what tools can open it. Check it in the file properties or by the file extension. For deciding which format to use for a given job, the format comparison lays out the trade-offs. If the format does not match your need, convert it before publishing.

Terminal output showing screenshot.jpg is really a PNG: file reports PNG and its first bytes are the PNG signature

Common mistakes when reading image size

The numbers are easy to misread, and a few errors come up repeatedly. Recognizing them saves wasted work.

  • Confusing megapixels with megabytes. A 12-megapixel image is not 12 MB. Megapixels count the total pixels (width times height); megabytes count the stored bytes after compression. A 12 MP JPEG might be 3 MB or 8 MB depending on content and quality.

  • Assuming a big file means high resolution. A poorly compressed 2 MB image can be lower resolution than a well-compressed 500 KB one. File size and dimensions are independent.

  • Treating DPI as a quality score. A 72 DPI photo with 6000 pixels can print larger and sharper than a 300 DPI photo with 1000 pixels. DPI alone tells you nothing without the pixel dimensions.

  • Trusting the filename extension. A file named .jpg can actually be a PNG or WebP internally. An inspector that reads the actual format header is more reliable than the extension.

The reliable way to confirm what you have is to read the file's metadata directly rather than inferring it from the name or the folder. Most inspectors show the real format header, the true pixel dimensions, and the embedded DPI in one panel.

Verifying size for specific destinations

Each destination has its own limits, and checking against the right target prevents rejection or slow loads.

Destination Check before uploading
Website Dimensions fit the layout, file under 200 KB
E-commerce listing Platform's required pixel dimensions
Email Total attachment under provider limit
Social media Platform's aspect ratio and size limits
Print 300 DPI at the intended physical size

For website images, the most useful check is the rendered size — open the page in a browser, inspect the image element, and confirm the file being served matches the display dimensions. Serving a 4000-pixel image into a 600-pixel slot is a common performance problem that the file properties alone will not reveal. The responsive images guide covers serving the right dimensions to each screen.

What to do once you know the numbers

Checking the image is the diagnostic step; the fix depends on what you found. The WebAIM guide to image accessibility documents how dimensions and file size interact with accessibility and performance, and the Mozilla image format reference explains what each format supports. Once you have the measurements, the path is straightforward: resize to display dimensions, compress to the target file size, convert to the right format, and the image is ready for its destination.

Frequently asked questions

How do I check the resolution (width x height) of an image?

Resolution here means the width and height in pixels. On a computer, open Properties > Details (Windows) or Get Info > More Info (Mac); on a phone, open the photo's info panel in Photos (iPhone) or its details in Google Photos (Android). In any browser, choose the image in the image resizer: the caption under the preview shows its width × height, and the Width (px) and Height (px) fields start at the same numbers.

How do I see how big a photo file is?

Check the file itself instead of guessing from the camera or the pixel count. The file size in KB or MB is in Properties (Windows), Get Info (Mac), the photo's info panel in Photos (iPhone) and its details in Google Photos (Android). In a browser, choose the photo in the image compressor: the caption under the preview shows its file size, and after you compress it the result shows the size before and after. Photos with the same pixel dimensions can have very different file sizes depending on format, quality and content, so read the number for each file.

What is the difference between file size and dimensions?

Dimensions are pixels (width × height); file size is bytes on disk. A 4000px image can be a small file if well compressed, or huge if not. Both matter: dimensions for display sharpness, file size for load speed.

How do I check DPI?

In an editor's Image Size dialog, or with ImageMagick (identify -format "%x x %y" file.jpg). DPI matters for print; for screens, pixel dimensions are what count. See the resolution and DPI guide.

What format is my image?

Check the file extension first, but verify with a tool — extensions can be wrong. ImageMagick identify or the browser DevTools report the true format. Knowing the format tells you what compression and transparency options apply.

How do I check image size in bulk?

A command-line tool reports dimensions for a whole folder at once — ImageMagick identify *.jpg prints each file's dimensions and bytes. For a quick audit of a web folder, this is far faster than opening each file. Use it to catch the one oversized image dragging down a page before you ship it.