Runs locally — your images are never uploaded

Image Aspect Ratio Calculator

Calculate the missing dimension to keep an image proportional, or upload a photo to detect its exact aspect ratio.

Ratio

How to use the Image Aspect Ratio Calculator

  1. Use the "Calculate a dimension" tab to enter your original width and height, then a new width or height to auto-calculate the other.
  2. Or switch to "Detect from an image" and upload a photo to instantly see its exact dimensions and simplified aspect ratio.
  3. The result updates live as you type or upload.

About the Image Aspect Ratio Calculator

Keeping an image proportional when resizing is essential to avoid a stretched or squashed result, but manually calculating the correct matching dimension involves a small bit of ratio math that's easy to get wrong under time pressure. Given an original size and a target width, the matching height is: new height = original height × (new width ÷ original width) — simple in principle, but tedious to redo by hand every time a new size requirement comes up.

This tool handles that calculation directly: enter your image's original dimensions, then enter either a target width or height, and the missing value is calculated automatically to preserve the exact same proportions. The simplified ratio (like 16:9 or 4:3) is also shown, which is useful context when a platform specifies its size requirements in ratio form rather than exact pixels. A second mode lets you skip the manual entry entirely — upload the actual image, and its exact pixel dimensions and aspect ratio are detected automatically.

It's used by designers and developers who need to resize an image for a specific slot in a layout without distorting it, video editors matching thumbnail dimensions to a target ratio, and anyone submitting a photo to a platform with strict aspect ratio requirements. The image detection mode runs locally by reading the file's dimensions directly in your browser, with nothing uploaded to a server.

Frequently asked questions

What does the simplified ratio, like 16:9, actually mean?+
It expresses the width-to-height relationship in its simplest whole-number form — a 16:9 image is exactly the same shape whether it's 1920×1080 pixels or 320×180 pixels, since both reduce to the same 16:9 ratio.
Can I calculate width from height, not just height from width?+
Yes, enter a value into either the "New width" or "New height" field and the calculator will automatically compute the other to match your original proportions.
Does the image detection mode work with any image format?+
Yes, it reads the image's pixel dimensions directly, which works the same way regardless of file format (JPG, PNG, WebP, GIF, etc.).
Is my image uploaded anywhere in the detection mode?+
No, dimensions are read directly in your browser without uploading the file anywhere.

Related tools