# Aspect Ratio Calculator

> Calculates width or height based on an aspect ratio.

- Open in browser: https://pockettoolbox.org/en/aspect-ratio-calculator
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Calculates missing image or video dimensions based on a fixed aspect ratio.

Choose a standard aspect ratio or enter your own width and height ratio values. Then enter a known width or height in pixels to calculate the other dimension live.

Uses the Euclidean algorithm (GCD) to simplify custom ratios. Missing dimensions are recalculated proportionally on input.

---
PocketToolbox (https://pockettoolbox.org/en)
