Back to all questions

How to Check the Aspect Ratio of an Image or Video?

Roei Hazout
Compression
October 29, 2024

To check the aspect ratio of an image or video, you need to divide the width by the height of the file in question. This simple division will give you a value that determines the aspect ratio (like 16:9 or 4:3). There are also online aspect ratio calculators or software tools that can quickly help you find it.

What Is Aspect Ratio?

Aspect ratio is simply the ratio of the width to the height of an image or video. It defines the shape and proportions of the screen, frame, or content you are working with. For example:

  • A 16:9 aspect ratio means the image/video is 16 units wide for every 9 units in height.
  • A 4:3 aspect ratio would mean the image/video is 4 units wide for every 3 units high.

This number matters because it determines how content will appear on different screens, whether it fits correctly or needs to be cropped, resized, or adjusted to avoid distortion.

How to Find Image Size

Before you can determine the aspect ratio of an image, you’ll need to know its size (width and height in pixels). Here’s how you can easily find the dimensions of an image:

  1. On Windows:
    • Right-click the image file.
    • Select Properties.
    • Go to the Details tab, where you’ll find the image dimensions (width and height) under “Image.”
  2. On macOS:
    • Right-click the image and select Get Info.
    • Under the "More Info" section, you’ll see the dimensions listed (width x height in pixels).
  3. Online Tools: You can upload your image to an online aspect ratio calculator or finder, and it will automatically detect the image size for you, helping you skip the manual steps.

How to Determine Aspect Ratio Manually

If you have an image or video file and you know its dimensions (in pixels), determining the aspect ratio is straightforward:

  1. Find the Dimensions:
    • For an image, right-click on the file and view its properties. You should see the pixel dimensions listed (e.g., 1920x1080 for a Full HD image or video).
    • For videos, you can use a media player or video editor to check the resolution. If you’re on Windows, you can right-click the video file, select "Properties," and go to the "Details" tab, where the dimensions will be shown.
  2. Divide the Width by the Height:
    • For instance, if the resolution is 1920x1080 (width by height), divide 1920 by 1080.
    • The result is 1.78, which rounds to 16:9 when simplified (1.78 is the decimal form of 16 divided by 9).
  3. Simplify the Ratio:
    • Sometimes the result won’t be a common ratio like 16:9, but you can simplify it. If the width is 1440 and the height is 1080, dividing 1440 by 1080 gives you 1.33, which is equivalent to the 4:3 ratio.

Using an Aspect Ratio Finder or Calculator

Manually determining the aspect ratio is easy enough, but if you want to skip the math or need to handle multiple files quickly, you can use an aspect ratio calculator or an aspect ratio finder

These tools let you input the width and height, and they’ll instantly give you the aspect ratio.

  1. Choose an Online Tool: There are many online aspect ratio calculators you can use. Just search for terms like “aspect ratio calculator” and you’ll find tools that ask for the dimensions.
  2. Enter the Dimensions: Input the width and height of your image or video. The calculator will give you the aspect ratio immediately.

    For example, if you input 2560x1440, the calculator will tell you the aspect ratio is 16:9.
  3. Optional: Resize While Keeping Aspect Ratio: Many calculators also let you input new dimensions and will automatically scale the width or height to maintain the same aspect ratio, ensuring your image or video doesn’t get distorted when resized.

Example Tools

  • AspectRatioCalculator.com: Simple tool to enter width and height and get the aspect ratio instantly.
  • CalcTool: Another online aspect ratio finder that lets you adjust dimensions and see the aspect ratio change in real-time. A bit overkill for current use case though. 

Tools and Software for Checking Aspect Ratio

If you work regularly with images or videos, you can also use specific software to determine aspect ratios automatically. Some of the most common tools include:

  1. Image Editors (like Photoshop or GIMP):
    • Open the image in Photoshop or GIMP.
    • Go to Image > Image Size or similar. You’ll see the width and height in pixels, which you can use to manually calculate or enter into an aspect ratio calculator.
  2. Video Players (like VLC or QuickTime):
    • In VLC Media Player, right-click the video, select Tools > Codec Information, and find the video resolution under the "Video" tab. You can use these dimensions to calculate the aspect ratio.
    • In QuickTime Player, open the video, and under Window > Show Movie Inspector, you’ll see the dimensions listed, which will give you the info needed to determine the aspect ratio.
  3. Video Editing Software (like Adobe Premiere or Final Cut Pro):
    • These programs typically display the aspect ratio alongside the video resolution in the project settings. You can adjust the frame size here and lock the aspect ratio to ensure that any changes keep the same proportional relationship.

Images of almost every aspect ratio can be cached by your CDN, making their delivery faster and more efficient.