Check image dimensions:
width, height and file size
Check image dimensions by opening a picture. The tool reads its width and height in pixels, aspect ratio, megapixels, format and exact file size in bytes, and says whether an orientation tag turns the photo. It runs in your browser, and you can copy the details or download them as a JSON file.
Files stay on your device
Choose an image
Check one image at a time. Open a file or drop it below.
Drop an image here, or
JPEG, PNG, WebP, GIF, BMP, TIFF, ICO, AVIF and SVG. Other images depend on your browser’s decoders.
Choose an image to see its details.
Image details
Displayed pixels include orientation, before this thumbnail is scaled. DPI and print size are not assumed.
How to check the size of an image
Select Choose image and pick a file, or drop one image onto the box. The status line reports progress, then the Image details table and a preview appear. The preview is scaled to fit the page and the original file does not change.
The table lists File name, Displayed pixels, Encoded pixels, Aspect ratio, Megapixels, Format, File size and Orientation. Select Copy details to put all eight rows on the clipboard as plain text, or Download JSON to save them as image-dimensions.json. Select Clear to empty the page, or Replace image to check the next file.
- Choose an image
Select Choose image, or drop one picture onto the box.
- Read the pixel and file sizes
Compare Displayed pixels and Encoded pixels in Image details, then check the aspect ratio, megapixels and byte count.
- Copy or save the details
Select Copy details or Download JSON to keep the numbers. Select Replace image to check another picture, or Clear to empty the page.
The format comes from the bytes of the file, not from its name. A PNG saved with a .jpg extension still shows PNG.
What each row in the details means
Displayed pixels is the width and height of the picture as your browser shows it, after any rotation from an orientation tag. Encoded pixels is the grid stored in the file, read from its header for JPEG, PNG, WebP, GIF and BMP and from the decoded first page of a TIFF. Other formats show that the stored size was not read.
Aspect ratio reduces the displayed width and height to the smallest whole numbers and adds a decimal. A 1920 × 1080 image gives 16:9 (1.778:1) and 2.0736 MP. A 1200 × 800 image gives 3:2 (1.5:1) and 0.96 MP. A square such as 512 × 512 gives 1:1 with no decimal.
Megapixels is width times height divided by one million. File size uses decimal units, where 1 KB is 1,000 bytes, and adds the exact byte count in brackets: 245,760 bytes shows as 245.76 KB (245,760 bytes).
Why a phone photo can show two sizes
A phone often stores a portrait photo as a landscape grid and adds an orientation tag that tells viewers to turn it. Encoded pixels shows the stored grid, and Displayed pixels shows the picture after the turn. For a photo stored at 4000 × 3000 with a tag for a quarter turn, the rows read 4000 × 3000 px and 3000 × 4000 px.
The Orientation row then names the tag, here Rotated 90° clockwise. Aspect ratio and megapixels use the displayed size, so this photo is 3:4 (0.75:1) and 12 MP. A JPEG or WebP without a tag shows No orientation tag, and GIF and BMP show that the format does not use one.
The tag is read for JPEG, PNG, WebP and TIFF. Some browsers ignore a tag inside a WebP file. When that happens, the Orientation row says the tag is present but was not applied or not confirmed, and the displayed size stays as your browser decodes it.
Pixels, file size and DPI
This tool measures pixels and bytes. It does not report DPI or a print size in inches or centimeters, and it does not assume one. A print size depends on the pixels per inch you choose when you print, so the same 3000 × 2000 photo can print small at a high density or large at a low one.
File size is the byte count of the original file, including any metadata it carries. Two files with the same pixel dimensions can differ a lot in size, because compression and format change the bytes without changing the width and height. A PNG screenshot and a JPEG photo of equal dimensions rarely match.
To read or set the density a JPEG or PNG stores for printing, use the DPI tool linked below. To change the width and height themselves, use the resize tool. This page only reads the file, so the numbers here describe the picture exactly as it was saved.
Limits
The tool reads one image at a time. Dropping two or more files shows a message asking for one image. JPEG, PNG, WebP, GIF, BMP, ICO, AVIF, TIFF and SVG open in current browsers, and other formats such as HEIC depend on the decoders your browser has.
Animated and multi-image files give one still image. A TIFF uses its first page, and an ICO uses the image your browser picks, so the result is not a list of every frame or icon size. An SVG is measured at the pixel size it is drawn at, not by counting its shapes, and its scripts and external files are not loaded.
There is no file size or pixel limit set by the tool. A very large image can still exceed the memory your browser allows, and then an error message appears. If the clipboard is blocked, Copy details shows the text in a box you can select, and Download JSON still works. A successfully read image replaces the previous result. If reading fails or you select Cancel, the previous details remain available.
The preview is a raster thumbnail. HDR and wide-gamut colors may appear different. SVG scripts and animation do not run, external resources are not fetched, and missing fonts use the bundled fallback. These preview changes do not modify the original.
Questions
How do I know the actual size of an image?
Open it with Choose image and read two rows. Displayed pixels gives the width and height in pixels as the picture appears, and File size gives the exact number of bytes on disk. A photo with an orientation tag also shows Encoded pixels, the size stored before the turn, which can have width and height swapped.
What size is a 1920x1080 image?
A 1920 × 1080 image is 1,920 pixels wide and 1,080 pixels tall. The tool reports its aspect ratio as 16:9 (1.778:1) and its megapixels as 2.0736 MP. Its file size depends on the format and compression, so two 1920 × 1080 files can differ a lot. Open the file to see its exact byte count.
How do I check the size of a JPEG image?
Choose the JPEG like any other picture. Format shows JPEG, Encoded pixels shows the width and height read from the JPEG header, and File size shows the byte count. If the camera saved an orientation tag, the Orientation row names it and Displayed pixels shows the size after the rotation.
Can I see the image size in centimeters or inches?
No. The tool reports pixels and bytes, and a size in centimeters or inches needs a DPI value that decides how many pixels fill each inch. Divide the pixel width by the DPI you plan to print at to get inches. For example, 3000 pixels at 300 DPI print 10 inches wide.
Why does my image show a different size than I expected?
The preview is scaled down to fit the page, so read the pixel numbers in the table and not the size on screen. A rotated phone photo swaps width and height between Encoded pixels and Displayed pixels. A file renamed to another extension still shows its real format, because the tool reads the bytes.
Does my image leave this device?
No. The image is read and measured in your browser on this device. The tool does not upload, log or store the file or its name. Copy details writes to the clipboard only when you select it. Clear and leaving the page release the image from the page. A successful replacement releases the previous image. If the replacement fails or you cancel it, the previous image stays available.
Related tools
- Resize an image to new pixel dimensions: set a new width and height once you know the current size.
- Read and change the DPI of a JPEG or PNG: set the print density without changing the pixels.
- View and remove photo EXIF metadata: see camera tags, including orientation, and download a cleaned copy.
- Compress an image to a smaller file size: shrink the bytes and compare the result before you download.
- Convert an image to another format: save a compatible copy when another app cannot open your image.