The guide
How to check an image’s pixels, density and color depth
Read the dimensions stored in an image file and compare them with the density, depth and size your delivery requires.
- 24 × 16 px stored dimensions of the larger PNG example
- 3∶2 aspect ratio of the larger example
- 72.009 dpi density declared on each axis in the larger example
- 24 files maximum number inspected per selection
Read the full guide Fold the guide
An image can have a precise number of pixels across even when every application shows it at a different size. An image editor can fill its window with a miniature thumbnail. A web page can shrink a large photograph to a card. A print layout can place either image at a chosen number of inches. The Image Dimension Checker reads the width and height declared in the file, so you can compare the delivered asset with a specification expressed in pixels.
The larger built-in example is a PNG measuring 24 pixels across and 16 pixels down. Its 384 pixels have a width-to-height ratio of 3 to 2. Choose the second example to see how the measurements and the 3D frame change for a square image. The clay frame preserves the ratio while scaling the longer edge to a common length on screen. Use the result labels when you need the absolute pixel values.
Read the stored canvas
The tool recognizes PNG, JPEG, GIF, WebP and BMP signatures in the file bytes. A filename extension can suggest how to open a file, but changing the characters after the dot leaves its contents intact. If a file has a conflicting name, the report follows what the header declares. If the file is empty or its header cannot supply dimensions, its result explains the problem and the remaining files still get checked.
A PNG records width and height in its image header, together with information about color type and depth. This checker verifies that the first chunk has the expected shape and a matching checksum. A JPEG supplies its stored dimensions in a frame marker. The checker reads the early JPEG segments so that comments and metadata before the frame can still be present. The result reflects the encoded frame dimensions before an application applies display rotation.
An animated GIF sets up a logical screen shared by its frames. A WebP with an extended header declares its canvas size. A small frame inside an animation can occupy only one part of that canvas. The size in the result describes the complete canvas for those formats. If you need the bounds of an individual frame, inspect the animation in an editor that exposes its frame sequence and offsets.
BMP files with a Windows information header can store their scan lines from top to bottom or from bottom to top. A negative stored height identifies one of those row orders. The checker uses its magnitude as the number of rows. A file measuring 800 pixels by 600 pixels describes the same canvas either way. A BMP file holding a much older header layout can require a different reader, even when its extension and signature match.
Keep density apart from pixel count
Pixel density gives a suggested length for a chosen number of pixels. If a square 1,200-pixel image has a declared density of 300 pixels per inch, its nominal size at that density is four inches on each side. With the same pixels assigned a density of 150 per inch, the nominal size becomes eight inches on each side. A layout application can set a different placed size. Consult the size in the final layout when checking effective print resolution.
The checker shows the horizontal and vertical values separately when a supported header provides both. The larger sample uses a PNG physical-pixel chunk that declares 2,835 pixels per meter in each direction. Since an inch is exactly 0.0254 meters, multiplying 2,835 by 0.0254 gives 72.009 pixels per inch. The UI displays those values under declared density, labeled dpi in the familiar image-editing convention. Printer ink dots can be a different measurement.
For JPEG, the checker reads explicit Exif resolution values first and uses an absolute JFIF density when no supported Exif value is present. It also reads a PNG physical-pixel chunk with meter units and positive BMP pixels-per-meter fields. A descriptor can give just a relative pixel shape or leave the density blank. An unavailable value means the tool did not find a supported absolute density in the header slice. Check the export settings when a production workflow requires specific values.
If delivery calls for a six-inch print at 300 pixels per inch, that edge needs 1,800 pixels at the placed size. Compare the count in the intended crop with that requirement. A 2,400-pixel original may satisfy it, while an exported crop that is 1,500 pixels across provides 250 pixels per inch over six inches. Use the pixel count of the crop you are placing. Changing the export’s density tag leaves those sample counts as they were unless the export also resamples the image.
Compare depth within each format
Sample depth and palette index size describe different storage choices. A truecolor PNG can store eight bits for each of three samples per pixel. A palette-based PNG instead stores an index that refers to a palette entry. Its index can fit in a few bits while the palette describes the shades in greater detail. The checker labels the two cases explicitly so that an eight-bit palette index and an eight-bit color sample are easy to distinguish.
JPEG results name the frame sample precision and component count. BMP provides a bits-per-pixel field in its information header. For GIF, the checker reports the global palette index size when that palette exists. Individual frames may carry local palettes. WebP results focus on the stored width, height and file size. These readings are useful for comparing an export with a format-specific requirement before inspecting color profiles or decoded image quality in a dedicated editor.
Verify a delivery in batches
Select up to 24 local files and look for mismatches in width and height before comparing compressed file sizes. Two images can have the same canvas dimensions and very different byte counts. Color variation, compression settings, metadata and animation all affect the number of bytes. Keep the pixel requirement and the upload byte limit as separate checks. Export the JSON report if you need to compare the same set after editing or share the results with a colleague.
For website delivery, compare the shape of the stored image with the aspect ratio of its intended slot. For a slot 1,200 by 800, the relevant ratio is 3 to 2. A 1,600 by 900 image has a 16 to 9 ratio. Filling the slot with that image can crop the sides, while fitting the entire image can leave space above and below. The tool’s two clay rulers make the difference visible as you switch between files. Pick the necessary crop before comparing the final byte limits.
The JSON records the file names and the exact byte counts together with whichever header fields were available. Use the names to find each result again, especially when there are two exports at different sizes. A report can contain readable rows and error rows from the same selection. If you need to pass on the measurements without disclosing the working file names, review those values before sharing the downloaded report.
Use the report from the actual file you intend to send. A messaging service may create and send a resized copy, while an image editor may preserve the original pixels and change only metadata. Rotated photos can also appear wider or taller in a viewer because it follows the orientation tag. The measurements here start from the stored frame before that rotation. Compare both the encoded file and its displayed orientation when the receiving system specifies which one it uses.
The checker reads the first 2 MiB of each selected file, one at a time. Your images stay on the device. This cap keeps the work bounded when a batch includes large assets. A file whose relevant marker is unusually far from the beginning can exceed that inspection window. Successful header inspection gives the dimensions, bytes and the supported metadata a header declares. Opening the final image in its destination remains the direct way to confirm that the full payload renders as intended.
Sources
Every source consulted for this guide. Links checked November 23, 2026.
- Portable Network Graphics, Third Edition W3C
- JPEG coding requirements and guidelines, T.81 ITU-T
- JPEG File Interchange Format, T.871 ITU-T
- Exchangeable image file format standards CIPA
- Graphics Interchange Format 89a CompuServe, hosted by W3C
- RFC 9649, WebP Image Format RFC Editor
- BITMAPINFOHEADER structure Microsoft
- HTML image decoding and natural dimensions WHATWG
- File API W3C
- SI units of length and the inch NIST