Aspect Ratio Calculator
Simplify ratios and compute missing dimensions from common presets.
The Aspect Ratio Calculator previews width and height in real time, simplifies any ratio to its cleanest form, shows the decimal ratio and orientation, and can compute a missing dimension from presets or a custom ratio. It also generates a ready-to-copy CSS value and a common size table.
Mode
Ratio
16:9
Decimal ratio
1.778
Orientation
LandscapePixels
2073600
CSS output
aspect-ratio: 16 / 9;Common sizes
| Width | Height | Ratio |
|---|---|---|
| 320 | 180 | 320 × 180 |
| 480 | 270 | 480 × 270 |
| 640 | 360 | 640 × 360 |
| 720 | 405 | 720 × 405 |
| 768 | 432 | 768 × 432 |
| 960 | 540 | 960 × 540 |
| 1024 | 576 | 1024 × 576 |
| 1280 | 720 | 1280 × 720 |
| 1440 | 810 | 1440 × 810 |
| 1536 | 864 | 1536 × 864 |
| 1920 | 1080 | 1920 × 1080 |
| 2560 | 1440 | 2560 × 1440 |
How to use
- Choose From dimensions or Missing dimension mode.
- Enter width and height, or pick a preset and set a custom ratio with the known side.
- Review the preview, simplified ratio, orientation, common sizes, and copy the CSS output.
Frequently asked questions
How is the ratio simplified?
Both values are divided by their greatest common divisor; decimal ratios are converted to integers before simplifying.
Can I use custom ratios?
Yes, type something like 16:9, 16/9 or 1.78.
How do I share the current result?
The mode, dimensions, ratio and known side are stored in URL query parameters, so you can share the link directly.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
XML Formatter
Pretty-print and indent XML documents.
YAML Formatter
Format YAML and convert between YAML and JSON in both directions.
CSV to JSON
Convert CSV tables into JSON data.
JWT Decoder
Decode JWT header, payload and expiration.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.