About this tool
The Image Dimensions Checker reports the exact pixel width and height of any image you drop into the page, along with the aspect ratio and the megapixel count that follow from those two numbers. Because the whole read happens in your browser through the Canvas API, the file itself never leaves your device - there is no upload, no queue, and no server step between choosing a file and reading its true dimensions.
The value of a dimension check is that it reveals the real, uncompromised size of a file rather than the size it appears to be when displayed. HTML and CSS can scale a photo down until it occupies a tiny box, and background images may render at whatever the container dictates. The checker reads the intrinsic bitmap size - the native pixel grid stored in the file - which is the number that actually drives print, crop and publishing decisions.
Beyond the raw pair of numbers, the readout derives two pieces of context. The aspect ratio expresses width and height as a simplified pair such as 16:9 or 4:3, telling you which layout shapes the image already fits. The megapixel figure - width times height divided by one million - condenses the total amount of image data into a single number, so files of very different sizes can be compared without opening each one.
Supported inputs are JPG, PNG, WebP, AVIF, GIF, BMP and SVG. Raster formats report their true pixel grids; SVG files, being vector descriptions rather than pixel arrays, report the logical size declared in their viewBox or width and height attributes. That distinction matters more than it sounds: a crisp SVG logo can read as a modest number and still render sharply at any size, which is exactly the behaviour of a vector rather than a bitmap.
Typical reasons to run a check include verifying a submission meets a publisher's minimum size, confirming that a batch of exported thumbnails share one width, and catching the classic situation of a huge camera file that a platform will only accept after being resized down. Because the check is instant and fully local, it becomes a natural bookend: run it before publishing to confirm a file qualifies, and run it again after a resize to confirm the output landed where intended.
Two limits are worth knowing before you start. Files above roughly 25 MB may exceed comfortable browser memory and fail to decode, so very large source exports should be compressed or cropped first. And this checker reports pixels, not print density - if your question is DPI or PPI for print, the Image Resolution Checker is the closer fit. Throughout, the original file is left untouched: reading dimensions creates nothing, writes nothing and deletes nothing except the copy in temporary memory that the browser already owns.
How to use Image Dimensions Checker
-
Drop or select an image (up to 25 MB) in the tool area.
-
Read the width, height, aspect ratio and megapixel count shown immediately.
-
If the dimensions are wrong for your project, resize the image and run the check again to confirm.
What this tool does
-
Width/height in pixels.
-
Aspect ratio.
-
Megapixel count.
Specifications
| Input formats | JPG, PNG, WebP, AVIF, GIF, BMP, SVG |
|---|---|
| Processing | Local browser (Canvas API) |
| Uploads | None — files stay on your device |
| Max file size | 25 MB per file |
| Original file | Never modified |
| Supported formats | JPG, PNG, WebP, AVIF, GIF, BMP, SVG |
| Output | Width, height, aspect ratio, megapixels |
In-depth Guide
Intrinsic pixels versus on-screen pixels
Every raster image is a grid of color samples, and that grid has a fixed width and height in pixels no matter how the file is displayed. The tool reads this intrinsic grid by drawing the image onto an off-screen canvas and asking for the canvas width and height back - the same numbers a layout engine consults when it needs to reason about the image on its own terms, rather than through the lens of a styled container.
Display scaling changes how large an image looks, never how many pixels it holds. A 4000 by 3000 photo shown at 400 pixels wide is still a 4000 by 3000 pixel file. Browser zoom, window resizing and high-density monitors all shift the rendered size and the number of physical screen pixels used, but the file's intrinsic dimensions stay fixed, which is precisely the value the checker reports.
- CSS and HTML scaling only affect the rendered box, never the stored pixel grid.
- Device-pixel-ratio values such as 2x and 3x change how many screen pixels each CSS pixel covers, not the image's own dimensions.
- Crop and compress tools change the intrinsic grid; display tools only change its presentation.
- A thumbnail that renders sharply can still be a huge file underneath - the readout shows the truth.
Common target dimensions at a glance
A dimension check is only useful when you have a target in mind, and different publishing contexts expect different pixel footprints. Keeping a short reference in mind turns the raw readout into an instant yes-or-no verdict: does this file qualify for where I am sending it?
The table below lists the size bands most destinations work with today. They are frequent real-world starting points drawn from typical web and print practice - your project's own documented requirements always take precedence over any general list.
| Use case | Typical dimensions | Aspect ratio |
| Full-width web hero | 1920 x 1080 px | 16 : 9 |
| Standard blog article image | 1200 x 800 px | 3 : 2 |
| Square social post | 1080 x 1080 px | 1 : 1 |
| Vertical story or short | 1080 x 1920 px | 9 : 16 |
| E-commerce product tile | 800 x 800 px | 1 : 1 |
| Print-quality photo | 2400 x 1800 px minimum | 4 : 3 |
Megapixels and what each band buys you
Once width and height are known, the megapixel count summarizes the total pixel inventory. It converts a two-number pair into one comparable figure - 12 megapixels versus 24 megapixels is a quick way to gauge image data without multiplying anything by hand. The summary is coarse, though: two files at the same count can differ widely in quality, because sensors, exposure and lenses do the actual heavy lifting.
Megapixels also describe how much room you have to crop or enlarge. A 45 MP file can survive a deep crop that a 2 MP file cannot, simply because it starts with more pixels to give away. The table below groups realistic output targets by the pixel budget they tend to need.
| Megapixels | Approximate dimensions | Realistic use |
| 1 - 2 MP | 1600 x 1200 | Thumbnails, email, small web graphics |
| 6 - 8 MP | 3264 x 2448 | Standard web content, social posts |
| 12 MP | 4000 x 3000 | Web heroes, modest print jobs |
| 24 MP | 6000 x 4000 | Print up to A3, comfortable crop headroom |
| 45+ MP | 8256 x 5504 | Large-format print, archival, deep cropping |
Aspect ratio is a shape, not a size
Aspect ratio reduces width and height to two integers divided by their greatest common divisor, so 3840 by 2160 becomes 16:9 and 4032 by 3024 becomes 4:3. Hundreds of pixel pairs collapse into a small set of familiar shapes, which makes the ratio the fastest way to know whether an image will fit a destination frame without cropping surprises.
The ratio says nothing about quality, file size, or how many pixels exist. A 1280 x 720 and a 3840 x 2160 file are both 16:9; they differ enormously in resolution yet share a shape. When a destination rejects an image for the wrong proportions, it is the ratio - not the megapixel count - that is out of agreement.
- 16:9 suits widescreen heroes, video frames and TV-safe crops.
- 4:3 and 3:2 reflect typical camera sensors and classic print proportions.
- 9:16 is the vertical counterpart for stories, shorts and reels.
- 1:1 squares feed grids, avatars and product tiles.
SVG reveals the vector exception
SVG is not a grid of pixels but a set of drawing instructions - shapes, paths and fills rendered on demand. Because there is no fixed bitmap, the checker reports the logical width and height the author declared, usually through the viewBox attribute or width and height properties. That number is a canvas suggestion, not a pixel count.
This is why an SVG can report a modest size and still look perfectly crisp blown up to a billboard. It is also why comparing an SVG to a raster JPG on numbers alone is misleading; the two formats measure different things. When a project demands a concrete pixel grid, export the SVG to a raster format and check the result instead.
Turning the number into a decision
A dimension readout is diagnostic, not decorative. If the file falls short of a minimum requirement - a print shop asking for 2400 px on the long edge, a newsroom requiring 1600 px width - the gap is now a number you can act on. If it exceeds every target, you have room to downscale and shrink file size without losing anything that matters.
The same number tells you when not to act. An image that already matches its destination needs no resize, and resizing would only degrade or bloat it. The check also exposes assets that are effectively undersized for their stated job, such as a 640 px wide file labeled as a hero image.
- Compare against the documented minimum, not a guess.
- Resize, then re-check, to confirm the output landed correctly.
- Batch-check a folder to catch a single off-size export.
- Pair the readout with a format check when the extension is in doubt.
How it works
Canvas API pixel extraction
The browser draws the image onto an invisible canvas and reads back the intrinsic bitmap dimensions. This returns the true pixel count regardless of how the file was named or where it came from.
No server round-trip
All analysis happens inside the browser tab. Once you close or reload the page, the file data is discarded from memory.
Example result
| Before | After |
|---|---|
| File: hero-banner.jpg | — |
| Info: Appears large on screen but may be a scaled thumbnail. | — |
| — | Width: 3840 px |
| — | Height: 2160 px |
| — | Aspect ratio: 16 : 9 |
| — | Megapixels: 8.3 MP |
Results are driven by your actual file. The values below are illustrative.
Pro tips
Re-check after every resize
Resizing tools are reliable, but a rounding error or an unlucky preset can still yield a slightly off target. Run this checker on the downloaded result before publishing; it takes a second and catches mistakes at the source.
Keep a target sheet open
Store the minimum dimensions for each destination you publish to - print lab, hero slots, social grids - and compare every readout against it. You will be able to green-light a file in about two seconds.
Audit batches by width
For a row of product tiles or thumbnails, uniformity matters as much as absolute size. Check several files and sort by the width readout to find the one export that slipped through with different proportions.
Watch EXIF orientation
Cameras store an orientation flag that browsers apply when decoding, so the readout usually reflects the corrected, upright image. If the numbers look swapped for a portrait photo, check the file's rotation before trusting your crop math.
Mind animated GIF frame size
Animated GIFs report the dimensions of the shared image grid. A postage-stamp-sized frame is usually a deliberate file-size choice, not a bug in the checker - read the number as the actual grid the animation uses.
Resolve the file, not the dialog
If a platform reports one size and this tool reports another, trust the intrinsic readout and re-export. Platforms often recompress on upload and advertise their stored copy, not the file you started with.
When to use it
Great for Image Dimensions Checker
- Checking whether a photo meets the minimum pixel dimensions required by a print shop or stock agency.
- Verifying banner and social-media image sizes before publishing.
- Confirming that a batch of thumbnails all share the same width.
Watch out for
- When you need DPI or PPI metadata - use the Image Resolution Checker instead.
- When you want to know the file format or MIME type - use the Image Format Checker.
- When you need to compare two images visually - use the Image Compare slider.
Privacy
Edits never overwrite your original file. Every result is a new download, so you always keep the source image. Read the privacy policy.
Troubleshooting
SVG files report viewBox-based dimensions, not raster pixel counts. If you need pixel dimensions, export the SVG to a raster format first.
Browser memory limits vary. Files above roughly 25 MB may fail to decode on Canvas. Try compressing or cropping the image first.
Frequently asked questions
Pixel dimensions are the raw width and height in pixels. DPI (dots per inch) is a print metadata value that tells a printer how closely to space those pixels. The same 3000 x 2000 px image can be 300 DPI at 10 inches or 72 DPI at 41 inches - the pixels do not change.
No. The tool reads the intrinsic bitmap size of the file, not how it is displayed on screen.
Yes. The tool reports the dimensions of the first frame, which for most animated GIFs is the same as every other frame.
They are exact. The tool draws the decoded bitmap onto a canvas and reads back its width and height, so the values match the file's intrinsic pixel grid precisely, limited only by the source file being valid and decodable.
SVG has no fixed pixel grid; the checker reports the logical dimensions declared in the viewBox or width and height attributes. A viewer can stretch that canvas to any display size, which is why the numbers describe proportion rather than resolution.
Most browsers apply the EXIF orientation flag while decoding, so you see the corrected width and height. If another viewer ignores that flag, the two numbers can appear transposed until the file is physically rotated and re-saved.
No. Conversion alone preserves pixel dimensions; only resampling or cropping changes them. A 4000 x 3000 file stays 12 MP whether saved as PNG, JPG, WebP or AVIF - the format swap affects file size, not resolution.
No. DPI and PPI are print metadata that describe spacing when the image is printed; they change nothing about the pixel grid. This checker reports pixels only, so a file's DPI tag has no influence on the numbers you see.
Files at or above 25 MB may exceed comfortable browser memory and fail to decode. Compress, crop, or export a lower-resolution copy first, then run the check on that version. Your original remains untouched throughout.
Technical details
| Decode path | Image file -> browser decode -> Canvas drawImage -> canvas.width / canvas.height |
|---|---|
| SVG handling | Reads width/height or viewBox attributes from the SVG source |
| Memory lifecycle | Pixel data lives in a TypedArray until tab close or page reload |
| Aspect-ratio math | Greatest common divisor reduced to simplest integer ratio |
| Browser support | Any browser supporting Canvas 2D context (all modern browsers) |
Tool last updated: September 2026. Browse all image tools.