Image Aspect Ratio Calculator
TOOL OVERVIEW
Check image dimensions and aspect ratio
Use the image aspect ratio calculator to get the pixel dimensions for a new size or find the exact width-to-height ratio for an image. To see the dimensions for a photo, choose an image. Then see what it would look like cropped or padded. If you already know the width and height, enter them in the manual calculator instead.

GET STARTED
How to use the image aspect ratio calculator
1
Select Choose images or drop a supported image to import an image. Once you’ve added multiple files, use the current image to switch between them.
2
To check the dimensions of an image online, open Image details and privacy, and then read the width and height. The exact ratio describes those dimensions. Also, the nearest common ratio gives you a familiar figure to compare against.
3
Choose a target ratio preset or enter your own ratio width and height. If you want to keep the picture’s current proportions, choose Use source ratio instead.
4
Use the Crop & Fit preview to determine the best aspect ratio. Then select Download image to save the image.
Enter the width and height in pixels in the Manual calculator. The ratio updates as you type. Then select Copy result if you want to save the calculation to your clipboard.

THE CALCULATION
How to calculate the aspect ratio of an image
Start with the pixel width and height of the image (in that order). Then, find the largest whole number that divides both without leaving a remainder. In this case, it means that the height divides the width perfectly.
Reduced ratio = (width ÷ GCD) : (height ÷ GCD)
The GCD of 1600 and 1000 is 200. Therefore, the ratio of 1600:1000 is reduced to 8:5. For decimal ratios, the height is divided by the width. In this case, 1600 ÷ 1000 = 1.6. The decimal ratio is 1.6:1.
When reducing a ratio to its simplest term, use the actual pixel dimensions of the image, as the image's aspect ratio may be changed by the web browser.

WORKED EXAMPLES
Two worked examples
1920 × 1080 becomes 16:9
Divide 1920 and 1080 by 120, and you’ll get 16 and 9. Since 16 is greater than 9, we say that the orientation is landscape.
4032 × 3024 becomes 4:3
Divide 4032 and 3024 by 1008 to get 4 and 3. A smaller image can have the same shape. For example, 1600 × 1200 also reduces to 4:3.
You can type in either pair in the manual calculator to get a result. A shared ratio indicates the same shape. However, factors such as the number of pixels and file size may differ.

CHOOSE A SHAPE
Common image aspect ratios
Portrait aspect ratios generally work better with vertical frames, and landscape aspect ratios with horizontal frames. For example, an aspect ratio of 4:5 is used in portraits and 16:9 in landscapes.
Ratio
Frame or Use
Example in Pixels
1:1
Square product tile or profile crop
1200 × 1200
4:3
Moderately wide photo or slide
1600 × 1200
3:2
Landscape photo or 6 × 4 print shape
1800 × 1200
16:9
Widescreen image or presentation
1920 × 1080
9:16
Tall vertical image
1080 × 1920
4:5
Portrait photo or vertical card
1080 × 1350
Each site may require different pixel sizes. Before exporting, consider your site's or printer's size specifications.
Use our passport-size photo maker to resize your images to the exact specifications of Pakistani passport photos.

KEEP THE PROPORTIONS
Find a missing width or height
The image resize calculator is useful when you have one size and wish to maintain proportions. Enter the side you know, then select Find height or Find width.
Height = known width × ratio height ÷ ratio width
Width = known height × ratio width ÷ ratio height
For example, at 16:9, an 800-pixel width gives you a height of 450 pixels. Similarly, a height of 720 pixels equals a width of 1280 pixels.
A width of 1000 pixels gives a height of 562.5 pixels at 16:9. Rounding up gives a height of 563 pixels. Use the tools provided to obtain precise 16:9 aspect ratios. Also, from the available options, consider 992 × 558 or 1008 × 567.

FIT THE FRAME
Fit an image without stretching it
Resizing a photo to 600 × 450 from the original size of 1200 × 900 retains the aspect ratio and shows the entire image. To get a 600 × 600 square, you can crop or get a padded fit.
Crop: A 900 × 900 region is kept from the original photo and then resized to 600 × 600. As a result, the original photo loses 25% of its area with this method.
Fit with padding: The entire original photo is resized to 600 × 450 and is positioned in the center of a 600 × 600 square canvas. As a result, you get 75 pixels of padding at the top and another 75 at the bottom, covering 25% of the canvas.
A crop & fit preview shows the options available. If the crop line is positioned over a part of the photo you wish to keep, you can move the line or choose padding. The amount of area removed is shown as a percentage. The size of the file is determined by the compression and format it is saved in.

PREVIEW AND EXPORT
Position the crop and export
Drag the crop in the source preview, or adjust the crop position, the sliders, or the crop alignment. To use touch crop, first turn touch crop on. Next, to use the scrolling preview, leave the touch crop off.
Select Crop or Fit with Padding in Output. Start with maximum crop resizing. If you want a specific canvas size, then change Output sizing to Target dimensions and enter the width and height. Also select the lock output ratio. That will then constrain the other field to the target.
Choose PNG, JPEG, or WebP, then select Download image. However, WebP export is dependent on your browser. In the advanced output settings, rounding, padding, background color, and alignment are adjustable. The quality slider doesn't affect PNG export, but it does for JPG export.
Turn on Allow Upscaling to enlarge the image. Upscaling will not produce a lossless export and therefore will not restore original image details. Edges of the image will appear blurred. Use the preview to check image quality. Before exporting, view the output size to check the image dimensions in pixels.

BATCH CHECK AND EXPORT
Check several images before exporting
Use the batch ratio audit to spot images that won’t fit a shared layout. Then it compares the batch to your selected target ratio, analyzes the first image it finds, or determines the most common exact ratio in the selection.
Choose Exact match when every image must have the same proportions. Use a tolerance-based match if you can accept a small difference. Therefore, set both minimum height and width so the image doesn't just match the ratio and be unusable due to a lack of pixels.
You can view results, identify mismatches, or generate a CSV/JSON. The audit keeps the export settings, so feel free to adjust for the best quality. To change export settings for the selected images, use the audit target for selected exports.
Export several sizes in one ZIP
Use multiple-size ZIP export to create up to 12 width-and-height combinations for the current image or selected images. Each ZIP can contain up to 120 outputs. The Image Aspect Ratio Calculator reuses the same relative crop position across sizes, so check that your subject stays in view in each layout. If an output is missing, check the ZIP manifest for errors.

COMMON MISTAKES
Three results worth double-checking
Width and height in the right order
A 1920 x 1080 image has an aspect ratio of 16:9. In contrast, a 1080 x 1920 image has an aspect ratio of 9:16. Images are exported in their current orientation.
Pixel dimensions and file size
You can check the image resolution online via Image Details & Privacy. In that section the width and height of the image are given in pixels. As you know, file size (in KB) is a measure of how much space the image takes up online.
If the upload has a KB limit, you can use our online image compressor to decrease file size.
An exact ratio and a close match
A ratio of 1919:1080 is very similar to 16:9, but not quite the same. Tolerance depends on what limits you set. For example, if you set your limits to 0.1, an image with an aspect ratio of 1916:1080 would pass.

QUICK ANSWERS
Image aspect ratio questions
How do I find the ratio without selecting a file?
Enter the pixel dimensions of an image using the manual calculator. You can find the dimensions of an image using the Image Aspect Ratio finder. Select the image of your choice, and the tool will retrieve the dimensions.
Which image formats can I select?
Currently, only images in the formats JPEG, PNG, and WebP are supported at this time. To process other formats (i.e., GIF, AVIF, HEIC, SVG, etc.), you must convert them to JPEG, PNG, or WebP.
Why did the calculator reject my image?
Check the dimensions and file size. The maximum file size accepted by the tool is 20 files of 20 MiB each, with a total of 80 MiB. In addition, each source can contain up to 12,000 pixels on each side. The tool limits sources to no more than 24 megapixels. Moreover, an export can have up to 16 megapixels and 8,192 pixels on each side, and the limit for ZIP files is 100 MiB.
Does the calculator upload the images I choose?
Images are processed locally in your browser. The Image Aspect Ratio Calculator also saves ratio presets, as well as user preferences for light or dark mode. However, your edits are not saved. Once you're back, choose your pictures once more.
Why do I see different dimensions after rotating a photo?
Some images retain data about their orientation in their EXIF data. The Image Aspect Ratio Calculator displays the actual dimensions of the image, the resized dimensions based on the orientation data, and the resized working dimensions based on edits made in the calculator.
Can I use a decimal ratio such as 2.35:1?
To edit, enter the equivalent whole-number ratio in the corresponding fields. For example, to edit an aspect ratio of 2.35:1, enter 235:100 or 47:20.

