Aspect Ratio Calculator — Responsive Dimensions

Calculate aspect ratios, resize dimensions proportionally, and get CSS code for responsive containers. Supports common presets like 16:9, 4:3, and 1:1.

What the Aspect Ratio Calculator does

The Aspect Ratio Calculator computes the missing dimension of a rectangle given a width, height, or a target ratio. It also generates the CSS padding-bottom hack for responsive containers.

Tip: The CSS padding hack lets you keep an aspect ratio on any container, even when the width is unknown or fluid.