Image Aspect Ratio Calculator

Select images
or drop / paste here
JPG, PNG, WebP · Files stay in your browser
No image selected. Manual calculations work independently.
Target ratio
Target16:9Settings apply to the current image.
Saved ratios & other presets
Image details & privacy
Image details will appear here.

Static JPEG, PNG and WebP only. Up to 20 files, 20 MiB each and 80 MiB combined. Source limit: 24 megapixels and 12,000 pixels per side. Export limit: 16 megapixels and 8,192 pixels per side; 100 MiB per ZIP.

Images are processed locally. Originals are unchanged. Export removes metadata and may change colour profiles. Only saved ratio presets and the light/dark preference are stored in this browser.

Crop position
Choose an image to preview your crop
Rotate, flip & image settings

Each image keeps its own ratio, crop position, rotation, format and output settings. Applying settings copies output options, not rotation or crop position. Undo is separate for each image and does not undo file removal.

Output size—
Crop loss—
Fit padding—
Manual calculator
16:9
Scale dimensions
Exact ratio & rounding details

Missing dimensions use the selected target ratio above. Manual width and height are independent of your image. Pixel rounding and exact multiples use the advanced output settings.

Crop & fit previews
Crop
—
Fit with padding
—
Crop & padding measurements

Crop loss measures removed source area, not file size or visual importance. Padding measures output-canvas area. The checkerboard is a preview aid and is never exported.

Output
Advanced output settings

JPEG always uses a solid background. PNG is lossless and ignores quality. Upscaling adds no real detail. For bounding-box mode, use the width and height fields above as maximum limits. Exact multiples choose the largest reduced-ratio multiple inside the requested output.

Compare ratios
Multiple-size ZIP export

Export the current image or selected images at several exact pixel sizes. Each image keeps its own treatment, format, quality, rotation and relative crop position. These sizes override its output dimensions and target ratio. Upscaling stays off unless enabled for that image.

Up to 12 sizes and 120 outputs per ZIP; 100 MiB total. A manifest lists successes and failures.
Batch ratio audit
Deviation = absolute(source ratio − target ratio) ÷ target ratio × 100. Orientation-insensitive matching does not rotate images. Audit crop loss uses the audit target. Export uses each image’s own settings. Minimum dimensions are checked independently.
Ready. Select images or use manual dimensions.

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.

Three photo prints in landscape, square, and portrait shapes on mint stands.

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.

A hand holds a landscape photo above a ruler on a mint desk.

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.

A grid shows 1600 by 1000 pixels reduced to 8:5 by dividing both sides by 200.

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.

Two diagrams show 1920 by 1080 reducing to 16:9 and 4032 by 3024 reducing to 4:3.

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.

Six frames compare square 1:1, landscape 4:3, 3:2, and 16:9, and portrait 9:16 and 4:5.

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.

A 16:9 diagram shows that an 800-pixel width needs a 450-pixel height.

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.

One vase photo appears as a proportional resize, a square crop, and a square with padding.

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.

Hands position a white mounting mat over a photo of a flower-covered doorway.

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.

Six photo prints in mixed landscape, square, and portrait shapes on a gridded mat.

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.

A landscape sailboat photo hangs beside a memory card.

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.

Two photo prints, a translucent print and a film strip on a mint surface.
Scroll to Top