Image Dimensions Viewer
Instantly view an image's width, height, aspect ratio, and megapixel count.
Calculate the aspect ratio from a width and height, or work out a dimension from a ratio.
The Aspect Ratio Calculator calculates the aspect ratio from a width and height. It includes presets for common ratios like 16:9, 4:3, and 1:1, a lock feature that keeps values in sync with the current ratio, and a reverse calculator that finds a matching dimension from a target size.
No image upload is needed — all calculations happen entirely in your browser.
Yes, it is completely free to use. No image upload is required.
The greatest common divisor of the width and height is found and used to divide both, producing the simplest integer ratio.
Based on the ratio calculated above, entering a "target width" shows the matching height, and entering a "target height" shows the matching width.