Fast, Private & Client-Side Developer Suite
100% Client-Side • Private
Converters

Aspect Ratio Calculator

Calculate 16:9, 4:3, 21:9 image and video aspect ratios with proportional resizing.

Loading tool...

Related Tools

Continue with PX to REM & EM Converter, CSS clamp() Fluid Calculator, SVG Placeholder Generator.

How to Use Aspect Ratio Calculator

  1. Enter original width and height in pixels (or pick a standard preset like 16:9 or 4:3).
  2. Inspect the automatically simplified ratio (W:H).
  3. Enter a new target width to calculate the proportional height.
  4. Copy the modern CSS aspect-ratio snippet.

Frequently Asked Questions

How is the aspect ratio simplified?

The calculator determines the Greatest Common Divisor (GCD) between width and height to produce the simplest whole-number ratio (e.g. 1920x1080 simplifies to 16:9).

How do I use the proportional resize tool?

Enter your original width and height, then type your new target width to automatically calculate the exact proportional target height.

Sources & References

Primary references: MDN: CSS gradients; WHATWG HTML Living Standard.

Review policy: references and behavior notes are checked whenever the tool implementation changes.