PhotoSizeCheck

How Our Image Checker Works

The checker reads the file you choose inside your browser. Nothing is uploaded.

What happens when you choose an image

  1. Your browser gives the page access to that one file. The page cannot see any other files on your device.
  2. The page reads the first part of the file and identifies the format from its signature (the first few bytes that every JPEG, PNG, WebP and so on begins with). The file name and extension are ignored for this.
  3. From the file header it reads the stored width and height, the EXIF orientation (rotation) flag, any DPI value and whether the image is animated.
  4. It asks your browser to decode the image, which confirms the file is intact and gives the displayed size after rotation. That decode also produces the preview.
  5. It calculates file size units, aspect ratio and megapixels, and shows the results.

None of these steps sends data over the network. The page makes no requests while it checks an image, and the site loads no analytics, advertising or other third-party scripts. You can confirm this in your browser's developer tools (Network tab) while checking an image.

Supported formats

FormatMeasuredPreview
JPEG, PNG, GIF, WebP, BMPYesYes, in all current browsers
AVIFYesYes, in current browsers
HEIC / HEIFYes, from the file headerOnly where the browser can decode it (Safari)
SVGNo: vector images have no fixed pixel size–
TIFF, RAWNo–

Limits

  • Maximum file size: 50 MB.
  • Images over 100 megapixels are measured from the header without being decoded, because decoding them could use more memory than a phone has available.
  • For animated images, the size of the first frame is reported.
  • DPI is shown only when the file stores it (JFIF, EXIF or PNG pHYs). We never guess a value.
  • If a file is damaged, the checker tells you and shows nothing it could not actually read.

How we test it

The parsing and calculations have automated tests that run against real files: JPEG (baseline, progressive, with an EXIF rotation and DPI), PNG (still and animated, with DPI), GIF (still and animated), WebP (lossy, lossless, animated), BMP, a renamed text file and a truncated JPEG.