🧮 Calculators & Daily Life

Aspect Ratio Calculator

Compute simplified ratios and CSS aspect-ratio from width×height or presets. Paste resolution strings or lock a ratio while editing. Everything stays in your browser.

Examples (click to try)
Ratio
CSS aspect-ratio
Decimal (W/H)

How to Use the Aspect Ratio Calculator

Enter width and height, pick an example chip, or paste a string like 1920×1080 into the resolution field. The calculator reduces the dimensions to the simplest ratio and gives you a copy-ready CSS aspect-ratio value.

Turn on ratio lock when you want to resize an image, video frame, thumbnail or layout box without stretching it. Change either width or height, and the matching dimension updates from the current ratio.

Examples

  • 1920×1080 → 16:9 / aspect-ratio: 16 / 9
  • 1080×1080 → 1:1 / aspect-ratio: 1 / 1
  • 1024×768 → 4:3 / aspect-ratio: 4 / 3
  • 1080×1920 → 9:16 (vertical video / stories)
  • Ratio lock ON, width set to 1280 → height 720 (16:9 preserved)

Common Use Cases

  • Finding the ratio for video exports, YouTube thumbnails and social images.
  • Writing modern CSS with aspect-ratio: 16 / 9 instead of padding hacks.
  • Resizing screenshots and product images while preserving their proportions.

Ratio Is Not Resolution

An aspect ratio describes shape, not pixel count or image quality. Both 1920×1080 and 1280×720 are 16:9, but they contain different numbers of pixels. Placing an image into a frame with another ratio also requires either empty space or cropping.

Check the destination's recommended resolution first, then use ratio lock to obtain integer dimensions. Use Image Crop to change the actual framing and the DPI & Print Size Calculator for physical output size.

FAQ

Is my data sent to a server?
No. All calculations run in your browser; nothing is transmitted or stored externally.
What ratio is 1920×1080?
1920:1080 simplifies to 16:9. In CSS: aspect-ratio: 16 / 9.
How do I write CSS aspect-ratio?
Use the reduced width and height with a slash: 16 / 9, 4 / 3, 1 / 1. Integer ratios read clearer than decimals like 1.7778.
What is ratio lock for?
Keep a ratio such as 16:9 fixed while changing width — height recalculates automatically. Handy when adjusting export resolution without distorting.
Can I paste a ratio such as 16:9 directly?
No. The resolution field only accepts the 1920×1080 form, with × x X or * as the separator and integers only. A colon-separated 16:9 is not parsed, so type 16 and 9 into the width and height fields, or use an example chip.
Why does ratio lock sometimes show something like 1000:563?
With the lock on, the other dimension is rounded to a whole number, so a width that does not divide evenly produces a ratio that cannot be reduced. Locking 16:9 and setting the width to 1000 gives 562.5, rounded to 563, and the decimal shifts to 1.7762. Pick a width that is a multiple of 16 (640, 960, 1280, 1920) and the height stays a whole number.