Aspect Ratio Calculator — Free Online Tool

An aspect ratio calculator helps you preserve proportions when resizing images, videos, and UI components. Enter width and height to get a reduced ratio (like 1920x1080 -> 16:9), or set a new width/height and compute the missing dimension. Developers use this to avoid stretched media, prevent layout shift, and document standard media sizes in design systems.

Features

Frequently Asked Questions

What is an aspect ratio?

It is the proportional relationship between width and height. 16:9 means width is 16 units for every 9 units of height.

Is 1920x1080 always 16:9?

Yes. 1920:1080 reduces to 16:9. Reducing ratios makes it easy to compare assets of different sizes.

Why does my image look stretched?

You are forcing width and height values that do not match the original aspect ratio. Preserve ratio or use object-fit to crop/contain.

How does CSS aspect-ratio help?

It reserves layout space before media loads, improving layout stability (reducing CLS).

Can I use this for video encode sizes?

Yes. It helps you choose new encode dimensions that preserve the original ratio.

What is the difference between 1.777... and 16:9?

1.777... is the decimal ratio (width/height). 16:9 is the simplified fractional form.

Does rounding matter when resizing?

Sometimes. If you resize to widths that do not divide evenly, you may get fractional results. Round intentionally based on your constraints.

How can I avoid layout shift with images?

Specify width/height attributes or use CSS aspect-ratio so the browser can reserve space before the image loads.

What happened to smalldev.tools?

smalldev.tools is no longer available. Prism by SWEDevTools offers the same developer tools and more, with offline support, pipeline chaining, and completely free usage — no signup required.